Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP admin bar on bbpress front page


seppolaatle112
Participant

@seppolaatle112

I am using Buddypress 1.01 width Wpmu 2.7.1 and managed to get the adminbar working great without even touching Buddypress core.

All i actually did was to make sure I had :

require_once('../wp-blog-header.php');

in my bb-config.php-file, and after that i just simply added r-a-y’s code to my bb-theme functions.php file. :

function recreate_bb_admin_bar() {

echo '<div id="wp-admin-bar"><ul class="main-nav">';

bp_adminbar_logo();

bp_adminbar_login_menu();

bp_adminbar_account_menu();

bp_adminbar_blogs_menu();

bp_adminbar_notifications_menu();

bp_adminbar_authors_menu();

bp_adminbar_random_menu();

echo '</div>';

}

add_action( 'wp_footer', 'recreate_bb_admin_bar', 8 );

add_action( 'admin_footer', 'recreate_bb_admin_bar' );

add_action( 'wp_head', 'bp_core_admin_bar_css', 1 );

Works just perfect. I can’t really see any need for a plugin to do this, but I guess there’s always someone who don’t manage without them. :)

Skip to toolbar