Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP1.2.8 and the WP 3.1 Admin Bar


  • Avi M
    Participant

    @avim

    Hi guys!

    Thanks for the latest BP update!

    I have a question re the new WP admin bar and BP. I actually like the look and feel of the WP bar better and so was wondering if their is way to use it instead of the default BP one? Also assuming this can be done, is there an (easy) way to get the native WP bar to display (some or all of the ) BP bar links?

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)

  • Avi M
    Participant

    @avim

    Found my Answer.

    http://bpdevel.wordpress.com/2011/02/24/updating-your-buddypress-plugins-for-1-2-8/

    The BuddyBar and the WP Admin Bar Additional logic has been added to the BuddyBar loader (bp_core_load_admin_bar()) to account for the introduction of a similar admin bar in WP 3.1. (There are plans to integrate the core version BuddyBar into the WP admin bar in the future, but for now you have to choose.) By default, the BuddyBar is shown. Site admins can disable the BuddyBar in favor of the WP admin bar by defining define( ‘BP_USE_WP_ADMIN_BAR’, true ); in wp-config.php. BP_DISABLE_ADMIN_BAR continues to disable *all* admin bars, and takes precedence over BP_USE_WP_ADMIN_BAR. If your plugin or your site has made modifications to the way that the BuddyBar loads, you might want to verify compatibility with BP 1.2.8.


    Ashley Laing
    Participant

    @ashleylaing

    I have just upgraded to WP 3.1 and BP 1.2.8. Yes, admin bar came back. So I added…

    /* Remove the Admin bar */
    define(‘BP_DISABLE_ADMIN_BAR’, true);

    … tried it in both wp-config.php and bp-custom.php. Doesn’t appear to be working.

    Has this worked for others?


    ryanITLab
    Participant

    @ryanitlab

    Same trouble as @Ashley

    I would like to remove the admin bar totally – and the define(‘BP_DISABLE_ADMIN_BAR’, true); code does not seem to be working anymore :/


    Ashley Laing
    Participant

    @ashleylaing

    I’ve opened an ticket for this bug. https://trac.buddypress.org/ticket/3085


    r-a-y
    Keymaster

    @r-a-y

    Did you read the link posted by Avi M?

    The BuddyBar and the WP Admin bar are two separate things at the moment.

    The WP admin bar was introduced in WP 3.1.

    BP_DISABLE_ADMIN_BAR only disables the BuddyBar (contrary to the blog post on bpdevel.wordpress.com).

    To disable the WP admin bar, you can simply add the following in your theme’s functions.php:
    `add_filter( ‘show_admin_bar’, ‘__return_false’ );`


    Ashley Laing
    Participant

    @ashleylaing

    Thanks for clarification! I’ll try this out tomorrow.


    Ashley Laing
    Participant

    @ashleylaing

    Thanks @r-a-y

    The combination of the 2 setting did the trick.

    /* Remove the BuddyPress Admin bar */
    define(‘BP_DISABLE_ADMIN_BAR’, true);

    /* Remove the WordPress Admin bar */
    add_filter( ‘show_admin_bar’, ‘__return_false’ );

    Thanks again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘BP1.2.8 and the WP 3.1 Admin Bar’ is closed to new replies.
Skip to toolbar