Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb-config & wp-config

  • When integrating WP and BB

    I read that you need to put

    $bb->WP_BB = true;

    if (file_exists(‘../wp-blog-header.php’))

    require_once(‘../wp-blog-header.php’);

    else

    if (file_exists(‘../../wp-blog-header.php’))

    require_once(‘../../wp-blog-header.php’);

    in BB-config.php

    Is there something that I can put in wp-config.php that works the opposite?

    I’m trying something…

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

  • chrishajer
    Participant

    @chrishajer

    This is old but I think it’s still applicable:

    http://bbpress.org/forums/topic/load-bbpress-into-wordpress#post-294

    so bb-config.php is relatively the same as wp-blog-header.php?

    What do I change

    $bb->WP_BB = true;

    to?


    Sam Bauers
    Participant

    @sambauers

    The original post is pretty much wrong.

    http://bbpress.org/documentation/integration-with-wordpress/

    Read the whole page there.


    chrishajer
    Participant

    @chrishajer

    Sorry Sam :(

    Sam, I read that page you linked, but I didn’t see instructions on loading bbPress functions inside WordPress which is what gerikg seems to be looking for (maybe call it reverse integration.) I see the instructions for accessing WordPress functions inside bbPress.

    Do I just need to read it again?

    Chris you’re right. In BBpress I can use all the WP functions (ex. sidebar) but I can’t use any BBpress function (ex. Simple Online list code) in WordPress.

    <?php login_form(); ?> <—BBpress code in wordpress will not work.

    Thanks sambauers but I want the opposite/reverse. I want BBPress to load in full when people are in wordpress.

    My theory is if this work I can put BBPress code in the WPsidebar .

    require_once(‘path/to/wp-blog-header.php’); <– to put in BB-config

    require_once(‘path/to/????????????.php’); <– to put in WP-config


    Sam Bauers
    Participant

    @sambauers

    That may not be possible at this time.

    bbPress is supposed to “move out of the way” of WordPress, but WordPress is not as polite.

    so sad.

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

You must be logged in to reply to this topic.