Skip to content

May 7, 2010

1

Integrate a blank BuddyBar into bbPress

First add this line of code to your bb-config.php

require_once(dirname(__FILE__) . '/../wp-load.php'); (PS my forums is set up in a forums directory in the root of my site.
You may need to change the path to your wp-load.php file)

Next create a functions.php file for your theme if not already there. Then add this line of code to the functions.php file.

add_action( 'bb_foot', 'bp_core_admin_bar');

Now create your menus and add them to the bar.

PS because the buddypress plugin is not activated on a forum, it will load the buddybar with nothing in it. If you are going to copy the default buddypress functions then make sure to change the function name or you will get and error.

Alternatively you could try include the bp-core-adminbar.php file inside buddypress/bp-core if you do not want a blank bar.

Popularity: 2% [?]

1 Comment Post a comment
  1. May 12 2010

    I have changed the file that you call from wp-config.php to wp-load.php

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments