Forum Replies Created
-
Author
-
adamParticipant
Sorry – I still can’t get the tabs to reorder. Seems like I am having difficulty because the arrays are in two different functions. Can you paste the code in the correct order based on what I provided above?
I’m trying to change the order of tabs to: “About Us”, Partner 1 Name, Partner 2 Name, “Our Photos”.
Thank you!
adamParticipantNot sure if this is what you’re looking for, but these two are rated well it seems:
http://wordpress.org/plugins/cubepoints-buddypress-integration/
http://wordpress.org/plugins/achievements/I haven’t tried them.
adamParticipantI moved the one already there to my social bar and want to have the join free button towards the bottom of my homepage image 🙂
adamParticipanthi @gideon – you may need to change your div classes. here is a link to my header.php code if it helps:
adamParticipantI did this following:
https://archived.seventhqueen.com/forums/topic/editing-header-phpOctober 19, 2013 at 20:27 in reply to: Show username in Members directory instead of full name #4652adamParticipantadamParticipantYou’re the BEST! This works perfectly. My only other question is how can I reorder the tabs now?
Here is my final code:
add_action(‘bp_after_member_header’,’kleo_my_custom_tab’, 0);
function kleo_my_custom_tab()
{
global $bp_tabs;$bp_tabs[] = array(
‘type’ => ‘regular’,
‘name’ => bp_get_member_profile_data( ‘field=Partner 1: First Name’ ),
‘group’ => ‘Partner1’,
‘class’ => ‘regulartab’
);$bp_tabs[] = array(
‘type’ => ‘regular’,
‘name’ => bp_get_member_profile_data( ‘field=Partner 2: First Name’ ),
‘group’ => ‘Partner2’,
‘class’ => ‘regulartab’
);
}
/* Add more */
add_action(‘after_setup_theme’,’kleo_my_tabs’, 1);
function kleo_my_tabs() {
global $bp_tabs;
//remove default tabs
$bp_tabs = array();//add here other tabs as the array examples
/* Change About me to About Us & Add Our Photos tab on profile */
$bp_tabs[‘base’] = array(
‘type’ => ‘regular’,
‘name’ => apply_filters(‘kleo_extra_tab2’,__(‘About Us’, ‘kleo_framework’)),
‘group’ => ‘About Us’,
‘class’ => ‘regulartab’
);/* rtMedia tab – only if plugin installed */
if (class_exists(‘RTMedia’))
{
$bp_tabs[‘rtmedia’] = array(
‘type’ => ‘rt_media’,
‘name’ => __(‘Our photos’, ‘kleo_framework’),
‘class’ => ‘mySlider’
);
}
/* Bp-Album tab – only if plugin installed */
elseif (function_exists(‘bpa_init’) AND sq_option(‘bp_album’, 1) == 1)
{
$bp_tabs[‘bp-album’] = array(
‘type’ => ‘bp_album’,
‘name’ => __(‘Our Photos’, ‘kleo_framework’),
‘class’ => ‘mySlider’
);
}The order of tabs is currently: “About Us”, “Our Photos”, Partner1 Name, Partner2 Name
How can I change this to: “About Us”, Partner 1 Name, Partner 2 Name, “Our Photos” ?adamParticipantGot it! I put this in bp-custom.php:
function remove_profile_view() {
bp_core_remove_subnav_item( ‘profile’, ‘public’ );
}
add_action( ‘bp_setup_nav’, ‘remove_profile_view’, 100 );adamParticipantI’ve added this to bp-custom.php:
function ray_remove_public_nav() {
global $bp;
bp_core_remove_subnav_item( $bp->profile->slug, ‘public’ );
}
add_action( ‘bp_setup_nav’, ‘ray_remove_public_nav’ );but still can’t get it to remove the View tab. i refreshed my cache too in case that was the issue. any other ideas? thanks for your help.
adamParticipantHi @sqadmin – this code worked, thanks! but, how do I get rid of the View tab? it’s still shows to the left of Edit, even though when you click on it it reverts back to edit.
adamParticipantI assume it can be done like they show here: http://wpmu.org/daily-tip-how-to-remove-mentions-from-buddypress/ (which was something I wanted to do).
I’ve tried adding this to functions.php:
function ray_remove_view_nav() {
global $bp;bp_core_remove_subnav_item( $bp->profile->slug, ‘view’ );
}
add_action( ‘init’, ‘ray_remove_view_nav’ );But, it’s not working. My guess is ‘view’ is the wrong slug name, but I don’t know what it is.
adamParticipantI’m going to check out keypic. Currently I’m using http://wordpress.org/plugins/bp-security-check/ which I like a lot because it’s simple math instead of captcha and integrates really well with this theme.
adamParticipantThis removes it from the profile edit, but I’m not sure how to remove it from the registration page. Any ideas?
adamParticipant@gideon1210 this should do it for you:
.field-visibility-settings-toggle {
display:none;
}
.field-visibility-settings-notoggle {
display:none;
}adamParticipantit’s still nowhere near a finished project yet 🙂 but, send me an email at emailadamrose@gmail.com and i’ll shoot you over a link.
adamParticipantha, no problem 🙂 Inspect Element in Google Chrome or Firebug for Firefox is a lifesaver for figuring out how/where to edit CSS.
adamParticipant.top-links { text-align: right; color: #0296c0; padding: 4px 0; border-bottom: 1px solid #0784b3; background: #000; }
change the border-bottom color to whatever you like.
adamParticipantHi @sqadmin – It fits nicely under the header, but the bottom of the whole search bar is slightly cut off and the search button has disappeared (it appears correctly on the Members Directory page). Do you know how I can fix this? Thanks!
adamParticipantI was able to move the logo up by adding margin-top to the css like this:
#logo img {
display: block;
float: left;
margin-top: -20px;
}
Still can’t figure out why the text for the right signup/logout button has disappeared in the top social bar (it’s supposed to be white which I set in styling). The background of the button is blue.adamParticipantHi @sqadmin – I also moved my logo, menu, and login buttons to the top social bar and am having the same problem as @tcibene where the login/profile button text on the left is fine, but the signup/logout text on the button on the right has disappeared (font is red when I hover over it). Do you know how to fix this? Also, I need to move my logo image up slightly to align with the menu, do you know where in the CSS I can accomplish this? Thanks for your help!
adamParticipantHi @sqadmin – I have a similar question. Instead of the username or fullname, how would I display two profile fields that users complete upon registration? For example, each of my members consist of two people. On my registration page, I have 2 First Name fields. How would I display First Name & First Name (ie Adam & Jamie)? I would like to do this in the Member Directory as well. I am just not sure how to properly call this with a function (how do I know what the field ID is for each field?) and I assume I would need to include an echo to display the “&” but not sure how. Thanks for your help!
adamParticipant@Tenshi – Do you feel W3 Total Cache works well with BuddyPress? Do you mind if I ask you what settings you have enabled? I played around with it, but didn’t seem to notice a difference.
I’m using and recommend:
Autochimp (Mailchimp plugin)
BackUp WordPress (backs up the whole site on schedule or on demand)
BP Extended Friendship Request (this is one of my favorites, it allows users to send a personalized message with the friendship request and looks great with this theme)
BuddyPress Group-O-Matic (adds users directly to groups based on what they enter during registration, really cool way to get group activity going)
BuddyPress Security Check (sort of like a Captcha on registration but math-based e.g. What is 2+3? I like it because I can never read the Captcha word, this also looks great with the theme)
BuddyPress Usernames Only (shows username in member director instead of full name)
Buddypress Xprofile Custom Fields Type (i use this mainly for a birth date field on registration which I display as age on the user profile)
Events Manager (adds an Events tab to Groups)
Geo My WP (allows users to add their location and search members by location)
Nav Menu Roles (hide custom menu items based on user roles e.g. logged-in vs not logged-in)
Simple Share Buttons Adder (really nice social sharing buttons)
Ultimate Coming Soon Page (comping soon page that let’s the admin or designated users use the site while everyone else gets a coming home splash page)
Widget Logic (allows you to only show widgets on certain pages)
WP Better Emails (sends nicer looking, customizable emails from WordPress)
WP Smush.IT (makes all images on the site less bulky and load quicker)I would really like to try a chat plugin (not sure which one yet), BuddyPress Group Calendar looks nice ($19), and a plug-in for affiliate marketing.
adamParticipant@MatchDateLove go to WP-Admin->Appearance->Themes->Install Plugins and you’ll see it there. It’s included.
adamParticipant@abidbd – Slider is included with the theme. Go to WP-Admin->Appearance->Themes->Install Plugins under SweetDate-Child theme and it will allow you to install the slider and woocommerce if you like.
adamParticipantNo, do not delete functions.php from Sweetdate after you copy it to the child theme. That error is strange. I will let the author respond to that.
adamParticipantCopy the whole wp-content/themes/sweetdate/functions.php file to wp-content/themes/sweetdate-child/functions.php, open it up and add that code snippet somewhere above ?> which is the last line of code.
adamParticipantTo clarify, I know what Cometchat is, but how have you made it compatible with this theme?
adamParticipantHi @Tenshi – Can you tell me how you solved #1? I think I’d like to do this as well. Thanks!
adamParticipantRegister options: WP-Admin->Users->Profile Fields
Search options: WP-Admin->Sweetdate->BuddypressadamParticipantYour website is likely running PHP 5.2 and this plugin requires 5.3 or above.
I use Bluehost so I would go into my control panel, click on PHP Config, and change to PHP 5.3 there.
This should let you activate.adamParticipantGo to WP-Admin->Settings->Discussion and uncheck ‘Allow people to post comments on new articles’.
You can also go to WP-Admin->Pages and click on the page you created. Then open Screen Options on the top right corner of the page and a drop down menu will appear. Make sure Discussion is checked. Then scroll down the page to the Discussion section and you can check or uncheck ‘Allow Comments’. You can do this same thing with blog posts as well.
-
AuthorPosts