Forum Replies Created
-
Upgrade to the latest version of buddyPress. I have been using it on my own installation and it is both stable and fixes this issue.
See my response here: https://buddypress.org/forums/topic.php?id=1152 for a solution as well.
Correction to the above code, this is tested:
add_filter(‘get_user_profile_link’, ‘bppro_user_profile_link’, 10, 2);
function bppro_user_profile_link($link, $uid) {
$user = bb_get_user($uid);
return(bb_get_option(‘wp_siteurl’).’/members/’.$user->user_login);
}
Terry
You could write your own simple plug-in for this as well; whenever you call user_profile_link it applies the filter ‘user_profile_link’. So you could create a plug-in with the following:
bb_add_filter(‘user_profile_link’, ‘bppro_user_profile_link’);
function bppro_user_profile_link($link, $uid) {
return(bb_get_option(‘wp_siteurl’).’/members/’.bb_get_user($uid));
}
This is of the top of my head but I think that’s right.
Hope this helps,
Terry
You should have the following folders:
/wp-content/member-themes
/wp-content/themes/buddypress-home
Both of those will come from the mu-plugins/buddypress-theme directory.
Hope this helps,
Terry
@johnjamesjacoby I know what you mean. If you really want to hack it, here are the directions:
1. Comment out this, in bp-core/bp-core-adminbar.php, line 14:
do_action( ‘bp-adminbar-logo’ );
2. Add this on the following line:
bp_adminbar_logo();
3. Comment out this, in bp-core/bp-core-adminbar.php, line 19:
do_action( ‘bp-adminbar-menus’ );
4. Add underneath it:
bp_adminbar_login_menu();
bp_adminbar_account_menu();
bp_adminbar_blogs_menu();
bp_adminbar_notifications_menu();
bp_adminbar_authors_menu();
bp_adminbar_random_menu();
5. Add the following scripts to your template’s header.php file:
mu-plugins/bp-core/js/jquery/jquery.livequery.pack.js?ver=2.7
mu-plugins/bp-core/js/general.js?ver=2.7
mu-plugins/bp-core/bp-core-ajax-handler.php
mu-plugins/bp-core/css/admin-bar.css?ver=2.7
6. Finally, add the following to your template’s footer.php:
include(‘../../../wp-content/mu-plugins/bp-core/bp-core-adminbar.php’);
bp_core_admin_bar();
7. If you’re not already, include wp-blog-header.php into bb-config.php:
require_once(‘../wp-blog-header.php’);
Note: I do not recommend this solution as upgrades, patches, etc. will break this functionality.
With that in mind, I’ll be releasing a much sexier solution in the form of a plugin soon as stated above.
Hope this helps,
Terry
I have hacked together a solution for this. I hope to release a bbPress plug-in in the coming week
I’ll post a link here when it’s done.