Update: I have written an updated article after the new releases and it can be found here.
I have been working on bbPress for quiet sometime now. Since most of use using both wordpress and bbPress integrated them and create similar themes, I thought I’ll add support for the bbPress forum Themes to all the wordpress themes that I create from now onwards.
Here is primer for integrating WordPress and bbPress Themes:
$bb->wp_table_prefix = 'wp_';
You can find this information in the wp-config.php file in the wordpress installation directory.
$bb->wp_home = 'http://www.<your_website>.com/ <your_blog_directory>';
$bb->wp_siteurl = 'http://www.<your_website>.com/ <your_wp_installation_directory>';
You can find these information in wordpress admin page. Go to Administration > Options and you will find these values under the ‘General Options’ Tab. If you are installing bbPress in a folder other that subfolder of the wordpress installation, you might run into some cookie trouble. Have a look at this and fix the cookie definitions.
Set this value in the config file so the functions defined in WordPress are not redefined.
Update: Add the above statement to the config.php in bbPress. Note that this statement goes on top of the file before everything!. This will get all the functions from WordPress into bbPress.
You will have to install two plugins one for wordpress and one for bbpress. So that whenever a user signs up on either of the softwares it will add permissions for the other forum and the second one to manage how the name is displayed.
And now you are all set.
Integrating the themes is done. now you can just drop this template (Update Note: the template is outdated. You can download the latest file from here http://www.adityanaik.com/integratepress-part-i/) in my-template folder and the template is wordpress ready! All this template does is call get_header from wordpress rather that bb_get_header from bbpress. this way any change you make in wordpress template reflects in bbpress immediately.