Skip to:
Content
Pages
Categories
Search
Top
Bottom

The buddybar is showing on the forums page onfthis site; how do we do it?

  • Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    I would like to add the Buddybar onto my bbPress forums page. They are already integrated and work fine.

    But I cannot figure out how to add the Buddybar so that it shows up on my forums pages.

    I have checked the threads on this, but have yet to find what appears to be a final solution.

    Thanks!

Viewing 19 replies - 26 through 44 (of 44 total)
  • Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Okay, so here’s what I’ve done:

    1. Added this code to the beginning of the bb-config.php file (I have WPMU installed at the root):

    require_once( $_SERVER['DOCUMENT_ROOT'] . ‘/wp-blog-header.php’ );

    2. Added this code to the bbPress footer (before the closing /html tag):

    <?php wp_footer() ?>

    3. Added this code to the bbPress header (before the /head tag):

    <?php wp_head() ?>

    4. Added this code to my bbPress header theme:

    <div id=”search-login-bar”>

    <?php bp_search_form() ?>

    <?php bp_login_bar() ?>

    <div class=”clear”></div>

    </div>

    The result: I am getting a white space above the bbPress header where the bar should be and the login bar is showing up in that space. But there is no CSS flowing (I changed the buddybar color) and I don’t see any of the buddybar menu items.

    Hope this helps those who are newly joining the conversation.

    Any further help would be appreciated. :)

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jfcarter-

    Is this still an issue? If so, would you please provide a link (assuming your site is not on you local server) so that we can look into this more closely.

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    @Jeff

    It is still an issue.

    The site url is http://the-suitespot.com

    bbPress (where I want to add the buddybar) is at http://the-suitespot.com/forums

    The buddybar is green (like the header and has a customized menu)

    Thanks for your help.

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Additional guidance would be appreciated!

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jfcarter-

    Okay, looking at the two links, it appears that everything is there except for the positioning is off. Is this correct? Or, do I need to be logged in to see the issue.

    If it is the former, I’ll take a look at the CSS in more detail later today or tomorrow. Just post a friendly reminder here if I don’t get back to you in 24 hours!

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Thanks, Jeff! I think it is the positioning and the CSS (which may be the same thing). The rest of the buddybar menu items aren’t showing. I’ve added the login form to the buddybar, so at least that is showing.

    http://wspinacze.pl/forum/ – I followed all your instruction and wordpress and buddypress are loaded (there is user avatar visible for logged in user) but there is no admin bar. any suggestions?

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jfcarter-

    Okay, one more time! Since you did not provide me a friendly reminder when I failed to get back to you within 24 hours, are you still have issues with this problem?

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    @Jeff,

    I am still having trouble. Didn’t want to keep reminding you; there are other people on the board who need help also.

    But yes, I am still trying to get this resolved.

    to Jfcarter

    we have the same problem – but i think after reading the post replies here and trying to analyze everything i realized and was able to bring what you MIGHT like to see in your forum section ..

    use the bb default template in folder bb-templates

    kakumei

    bb-config.php

    put code below

    require_once( $_SERVER['DOCUMENT_ROOT'] . ‘/wp-load.php’ );

    in the header.php that you mentioned include the get_header

    this is how buddypress template files using bphome in your wp-content/themes

    instead of using <?php wp_head() ?> use the one below

    <?php get_header(); ?>

    <div id=”search-login-bar”>

    <?php bp_search_form() ?>

    <?php bp_login_bar() ?>

    <div class=”clear”></div>

    </div>

    it works for me but i have to edit more on the templates

    http://morebearing.com/forums/

    Avatar of Arturo
    Arturo
    Participant

    @arturo84

    johnvill on your forum u don’t have the buddybar but only the search/login bar… and this is my, jfcarter and the other users problem…

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Okay, still no luck! Can anyone help us get the buddybar added to the forums page? I am currently using the search/login bar, but really need the buddybar to be included.

    Based on the help posted, here’s what I’ve done:

    1. Added this code to the beginning of the bb-config.php file (I have WPMU installed at the root):

    require_once( $_SERVER['DOCUMENT_ROOT'] . ‘/wp-blog-header.php’ );

    2. Added this code to the bbPress footer (before the closing /html tag):

    <?php wp_footer() ?>

    3. Added this code to the bbPress header (before the /head tag):

    <?php wp_head() ?>

    4. Added this code to my bbPress header theme:

    <div id=”search-login-bar”>

    <?php bp_search_form() ?>

    <?php bp_login_bar() ?>

    <div class=”clear”></div>

    </div>

    The result: I am getting a white space above the bbPress header where the bar should be and the login bar is showing up in that space. But there is no CSS flowing (I changed the buddybar color) and I don’t see any of the buddybar menu items.

    Hope this helps those who are newly joining the conversation.

    My forums are posted at: http://the-suitespot.com/forums

    Thanks! :)

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jessica-

    Upon inspection, it does not appear that the buddybar is being called and loaded. There is a call in bp-core-adminbar.php to hook into wp-footer and load the buddybar when the footer is outputted. Looking at your source, I do not see that happening.

    I need to think about this a little more.

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jessica-

    I’ve thought about this some more and I only have one suggestion which might do the trick. Normally I would say this wouldn’t matter. But, I have seen this make a difference is some cases. Since it seems like you’ve tried everything and have deep integration setup and working, it is worth a try.

    If it does not work, then please contact Burt or jjj and ask for their advice. I am not a bbPress-integration expert.

    Try changing these two lines in their appropriate places:

    <?php wp_head() ?>

    <?php wp_footer() ?>

    to this:

    <?php wp_head(); ?>

    <?php wp_footer(); ?>

    Notice the change? It is the inclusion of the semicolon. It could be important to use these here as they indicate the end of a PHP statement. I’ve had theming issues in the past when I’ve left these off on certain PHP statements. It will probably not make a difference, but it is worth a shot.

    Try making those two changes and let me know what happens.

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    I made the changes and there is still no buddybar. The thing is, the user avatar and name translate over from BP. Is there a loader of some kind we can use?

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Jfcarter, this thread helped me:

    http://buddypress.org/forums/topic.php?id=1152

    I have posted what worked for me in that thread.

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jessica-

    You mention this:

    Added this code to the bbPress footer (before the closing /html tag):

    <?php wp_footer() ?>

    Did you add the call to wp_footer before the closing html tag, or just before the closing body tag? In other words, it should look like this:

    <?php wp_footer(); ?>

    </body>

    </html>

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Hi Jeff,

    It looks like what you’ve suggested.

    Jessica

    R-a-y, I’ll check it out.

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Jessica-

    I can’t remember if you’ve tried this yet. If not, it is worth a shot.

    Switch to the standard bbPress theme. Place the calls to wp-head and wp-footer in the appropriate places. Don’t worry about the calls to the search-login-bar. We’re only doing a test to see if we can get the top menu bar to appear.

    Also, does your BuddyBar show for logged in users but just not for those who are logged off?

Viewing 19 replies - 26 through 44 (of 44 total)

You must be logged in to reply to this topic.