Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress forums (general, not groups), how to get “buddybar”?


  • Wardee
    Participant

    @wardeh

    How could I get the BuddyBar to show up at the top of my Forums? This is a general forum, not group forums.

    I’ve looked at Nicola’s general forums (http://buddypressdev.org/forums) and he doesn’t have a BuddyBar at the forums, yet he does on the main site. That’s my situation now. I would like to get the BuddyBar showing in the forums.

    Hope this makes sense.

    Any ideas?

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

  • Burt Adsit
    Participant

    @burtadsit

    lol. This ‘buddybar’ thing I started is catching on. With all the right people it seems. I’m never gonna live this one down.

    The buddybar(tm) relies on lots of mu specific stuff. It gets generated on each page load in mu. We ain’t in mu no more when we get to bbpress. I’ve been thinking about this issue also. A quick think tells me I might pass a global var from mu to bbpress that holds all the menu items that are useful to me over at bbpress. Then create a bbpress menu bar that builds a menu from that global. Same look, same items just not dynamicly built for each page load. Just gens it from the global each bbpress page load.

    Just a quick think.

    PHP var space is PHP var space. bbpress is just another hunk of code in PHP var space. Gotta go do some research on this php session stuff.


    Wardee
    Participant

    @wardeh

    If you come up with anything, let me know, please?

    Hey, the ‘buddybar’ is a great name. It stuck with me after I first heard/read you using it.


    bobman024
    Participant

    @bobman024

    Yeah I agree that there should be a MU pass-through for the Buddypress plugins to work on bbpress. I don’t see why they wouldnt since everything is fully integrated, but for some reason they are not. This also, makes me wonder how Nicola gets avatars to show up on the bbpress side. I am having some issues with that as well! Any ideas? I would love to see the forum theme that Nicola is using and make my modifications off of that!


    plrk
    Participant

    @plrk

    I believe Nicola is using gravatars for both his buddypress and his bbpress installations.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I’ve noticed even if I use what bbPressers call “deep integration” (including wp-load.php in bb-config.php) on the bbPress side, bbPress still seems to blast out the BuddyPress specific content. I’ve echoed the files and I know they are all getting included, they’re just not doing anything once bbPress gets a hold of it.


    bobman024
    Participant

    @bobman024

    Sigh…


    Burt Adsit
    Participant

    @burtadsit

    When you use deep integration bbpress clears all the actions and filters. bp runs on actions. It does this as part of the load sequence.

    In bb-settings.php:

    /**
    * Remove filters and action that have been set by an included WordPress install
    */
    if ( defined( 'ABSPATH' ) ) {
    $wp_filter = array();
    $wp_actions = array();
    $merged_filters = array();
    $wp_current_filter = array();
    }

    When I’m using xmlrpc I have to manually fire up the bp globals I want to refer to like:

    function oci_bp_group_forums() {

    // only do this if the xmlrpc server is firing up and we are servicing a request
    if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ){
    // bp's globals don't get set until a 'wp' action occurs. this seems to be all that is needed.
    bp_core_setup_globals();
    groups_setup_globals();
    bp_activity_setup_globals();
    }
    }
    add_action('init','oci_bp_group_forums');

    That gets triggered by the end of the wp-load.php sequence. do_action(‘init’) is the last thing that happens there.

    bp gets woke up by listening to the ‘wp’ action. I think all of bp gets activated by ‘wp’.

    I just remember having some problems with xmlrpc and the ‘wp’ action so I manually tied things to the ‘init’ action. All the plugins for bp load, it’s lots of other stuff that gets initialized by ‘wp’.


    terryjsmith
    Participant

    @terryjsmith

    See my response here: https://buddypress.org/forums/topic.php?id=1152 for a solution as well.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘bbPress forums (general, not groups), how to get “buddybar”?’ is closed to new replies.
Skip to toolbar