Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: PLEASE Create 2 Versions of bbpress!

@davidbaldwin

Member

lolos,

first of all, if you are doing this with WordPress 2.6 or newer, you have to run 1.0-alpha. If you are running an older version of wordpress you can use the stable version. I attempted to roll back to an older version of wordpress, but i was unsuccessful, so this method is for 1.0-alpha users.

I found the intigration information at:

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

https://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk#post-21572

you need to add the following to the bb-config.php file, after <?php

if ( !defined( 'ABSPATH' ) ) {
include_once( '/Full/Path/To/wp-load.php' );
}

require_once('/Full/Path/To/wp-blog-header.php');

the full paths have to be absolute paths on the servers, not the domain paths.

this will load wordpress when bbpress is loaded.

and then you need to add this line to the very top of every page that has this line: <?php bb_get_header(); ?>

<?php get_header(); ?>

please note that the line above has to be line #1 in every page that already calls the bb header, if it does not call the bb header, do not add this, the final result should look like this:

<?php get_header(); ?>
<?php bb_get_header(); ?>

this will load the wordpress header when the bbpress header is called. you can edit the bbpress header to remove all the unnecessary code. (like the title, etc.)

and then you need to add this line to the very bottom of every page that has this line: <?php bb_get_footer(); ?>

<?php get_footer(); ?>

please note that the line above has to be the last line in every page that already calls the bb footer, if it does not call the bb footer, do not add this, the final result should look like this:

<?php bb_get_footer(); ?>
<?php get_footer(); ?>

this will load the wordpress footer when the bbpress footer is called. you can edit the bbpress footer to remove all the unnecessary code. (like the title, etc.)

I hope this helps. if you have any questions, please feel free to ask!

david

Skip to toolbar