A way to arrange member page profile links by name? (Activity, Friends, etc.)
My site uses a few plugins that add additional links to the top of the members profile pages. The plugins are Cubepoints, BuddyPress Wire, etc.
Is there a way to manually “move” their positions in the link menu? Is there a way to “sort” the default links in the menu?
Here is an image of the menu right now, with the plugins activated:
As you can see, Points and Wall push themselves to the front of the list. I’m trying to find a way to insert them alphabetically INTO the pre-existing links. If that’s not possible, I’d like to push them to the end of the menu.
I’d also like to arrange the pre-existing links, like Groups, Activity, Friends, etc. in alphabetical order. But I’m not sure what to change. My site uses a RocketTheme with the Gantry Framework and Gantry for BuddyPress Framework. So I don’t know if I need to edit something BuddyPress related or Gantry for BuddyPress related.
I’m looking at one of the Gantry for BuddyPress files (home.php) and it lists the following:
* BuddyPress – Users Home
* @package BuddyPress
* @subpackage bp-default
<?php do_action( 'bp_before_member_body' );
if ( bp_is_user_activity() || !bp_current_component() ) :
gantry_bp_locate_type( array( ‘members/single/activity.php’ ), true );
elseif ( bp_is_user_blogs() ) :
gantry_bp_locate_type( array( ‘members/single/blogs.php’ ), true );
elseif ( bp_is_user_friends() ) :
gantry_bp_locate_type( array( ‘members/single/friends.php’ ), true );
elseif ( bp_is_user_groups() ) :
gantry_bp_locate_type( array( ‘members/single/groups.php’ ), true );
elseif ( bp_is_user_messages() ) :
gantry_bp_locate_type( array( ‘members/single/messages.php’ ), true );
elseif ( bp_is_user_profile() ) :
gantry_bp_locate_type( array( ‘members/single/profile.php’ ), true );
elseif ( bp_is_user_forums() ) :
gantry_bp_locate_type( array( ‘members/single/forums.php’ ), true );
elseif ( bp_is_user_settings() ) :
gantry_bp_locate_type( array( ‘members/single/settings.php’ ), true );
// If nothing sticks, load a generic template
gantry_bp_locate_type( array( ‘members/single/plugins.php’ ), true );
do_action( ‘bp_after_member_body’ ); ?>
When I edited this file, nothing I rearranged carried over. So I assume I must edit this elsewhere.
Also, the Following and Followers, I believe were from a different plugin. But I see that they inserted themselves INTO the menu. I guess that’s what I’m looking to do for the other plugins like Points, Wall, etc.
Hope someone can tell me where to start. I’m baffled.
Try my BuddyPress Extended Settings plugin, to see if it works with your custom setup. I will be adding a way to specify tabs that get added via plugins. Right now plugin only includes core tabs
Your plugin was actually the first thing I tried when I noticed the problem. It’s still running on my site with the core links in the order I chose, however, it’s not seeming to put them in any order.
I was going to try and sleep on it then try to figure it out, but I can’t get to sleep knowing I have this problem. It’s my bit of OCD I suppose.
I think the main problem is that the Gantry for BuddyPress and RocketTheme template framework removes a lot of the WordPress code and replaces it with standard html in their own files. Not sure if that makes any sense… lack of sleep and all.
I didn’t know if there was any way to use a bp-custom.php to manually make the changes to the core or the additional plugin links?
Thanks for the reply. Hopefully I can think better one I get some shut-eye.
Yeah, looking at code above it seems they have changed too much core code. Shame. I do not see the value in changing BP code so much it breaks extra plugins. You can create custom templates without re-writing template tags that basically do what the original code did.
- The topic ‘A way to arrange member page profile links by name? (Activity, Friends, etc.)’ is closed to new replies.