bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

bb-config & wp-config

(8 posts)
  • Started 3 months ago by gerikg
  • Latest reply from gerikg
  • This topic is not resolved
  1. gerikg
    Member

    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...

    Posted 3 months ago #
  2. This is old but I think it's still applicable:
    http://bbpress.org/forums/topic/load-bbpress-into-wordpress#post-294

    Posted 3 months ago #
  3. gerikg
    Member

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

    What do I change
    $bb->WP_BB = true;
    to?

    Posted 3 months ago #
  4. The original post is pretty much wrong.

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

    Read the whole page there.

    Posted 3 months ago #
  5. 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?

    Posted 3 months ago #
  6. gerikg
    Member

    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

    Posted 3 months ago #
  7. 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.

    Posted 3 months ago #
  8. gerikg
    Member

    so sad.

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.