How to integrate WordPress theme on bbPress

bbPress is a forum script from the makers of WordPress. Its a very good piece of code and integrates very well with your existing WordPress installation. However there are very less number of themes available for bbPress as compared to WordPress. And it is very important to give the whole site a matching look if you are going to add something on your site. This tutorial will show you how you can integrate both WordPress and bbPress to use your WordPress theme on bbPress, use WordPress sidebar on bbPress and other functionalities.


Install WordPress

 


Most of you might have been already running WordPress and in case you are starting fresh, then follow the instructions to install WordPress:

  • Download WordPress.
  • Extract and copy the WordPress files to domain root.
  • Access the domain in browser (e.g. http://example.com) to install WordPress.
  • Click Create a Configuration File, then Lets Go and fill in the database details and click Submit.
  • Click Run the install, enter new blog details and click Install WordPress.

If for some reason automatic filling of WordPress database details didn’t work then proceed by following these steps:

  • Rename wp-config-sample.php to wp-config.php and open it for editing.
  • Fill in the database details.
  • Save and access the domain in browser.
  • Enter new blog details and click Install WordPress.

WordPress will be installed by now. Your username will be admin and a random password will be generated. Copy the password as you will need it to login for the first time and then you can change it.

Now login with the username and password by clicking on the button Log in. You will see a notification to change your password to one which you can remember. Go to your profile page and change it.

 


Install bbPress

 


Download bbPress and extract the zip file and copy the bbPress files to a subfolder in your domain root.

How to integrate WordPress theme on bbPress

Access the domain in browser (e.g. http://example.com/bbpress/) to install bbPress.

How to integrate WordPress theme on bbPress

Click Go to step 1.

How to integrate WordPress theme on bbPress

Fill in the database details and click on Save database configuration file.

How to integrate WordPress theme on bbPress

Click Go to step 2.

How to integrate WordPress theme on bbPress

Click Skip WordPress integration for now. We will do it once the bbPress is installed.

How to integrate WordPress theme on bbPress

Click Go to step 3.

How to integrate WordPress theme on bbPress

Fill in the details and click on Save site settings.

How to integrate WordPress theme on bbPress

Click Complete the installation.

How to integrate WordPress theme on bbPress

Copy the random password generated for the admin username you selected. (The error in the screenshot is because the email wasn’t send being on localhost)

Change the password by click on your username (this will take you to your profile page), there select Edit in the profile menu and at the bottom of the page you will have the option of changing the password.

 


Integrate bbPress with WordPress

 


Integration means we will set them to use same user database and cookies so that both existing and new users can have site wide login synchronization. You can further read benefits of integrating bbPress with WordPress.

 

Adding Keys and Salts

Open wp-config.php file for editing and locate the following lines :

define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');

Generate new keys and salts from this url – https://api.wordpress.org/secret-key/1.1/salt and replace the earlier ones with these.

It should look like

How to integrate WordPress theme on bbPress

Now open bb-config.php file for editing and locate the following lines :

define( 'BB_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'BB_NONCE_KEY', 'put your unique phrase here' );

Again copy the keys and salts you just pasted in wp-config.php file and paste those replacing the above lines. Now rename name of each of them to add BB_ as prefix.

It should look like

How to integrate WordPress theme on bbPress

Save both the files.

 

Adding WordPress Integration Settings

Now access bbPress dashboard by clicking on the Admin link or by typing /bb-admin/ at the end of the URL when you are at bbPress frontpage (http://example.com/bbpress/bb-admin/).

How to integrate WordPress theme on bbPress

Go to Settings and open WordPress Integration Settings.

How to integrate WordPress theme on bbPress

Set User Role Map as what you would like to assign to existing and new users who have no roles assigned in bbPress.

Now enter User Integration settings down the screen.

  • Enter WordPress address (URL)
  • Enter Blog address (URL)

Next 3 options will be locked as we have already defined those in bb-config.php file.

  • Enter WordPress table prefix. It is usually wp_ unless you have changed it.

Leave the remaining options and click Save Changes.

 

bbPress Integration plugin

  • Install this WordPress plugin – http://wordpress.org/extend/plugins/bbpress-integration/
  • Activate it.
  • Go to Settings and select bbPress Integration.
  • Fill in the bbPress URL and click on Save Changes. (Other two will not be applicable if you are following this tutorial only)
  • It will provide some code to add in the wp-config.php file.
  • Add the code in wp-config.php file.
  • Remove the plugin.

Simple Integration is completed now and we will proceed with deep integration now.

 

Deep Integration of bbPress with WordPress

Open bb-config.php file and add the following lines of code above where you define database connection settings.

/* Deep integration */
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST'))
{
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}

 


Theme Matching

 


I will briefly explain what are we going to do here. WordPress outputs its theme by calling

  • get_header() for header.php
  • get_sidebar() for sidebar.php
  • get_footer() for footer.php

Similarly bbPress calls bb_get_header() & bb_get_footer.

We will create new theme by copying the default theme code and then changing the function calls to make it use the WordPress functions so that bbPress content is shown inside WordPress theme.

 

bbPress theme editing

Copy the default theme of bbPress from bb-templates folder into my-templates folder. If my-templates folder doesn’t exist then create one at the same level (root of bbPress). Open style.css file for editing and change the theme name in the starting commented lines so that you can distinguish it from the original one in the dashboard. Activate this theme so that you can see the changes live when you edit it.

Before we proceed, I would recommend using Notepad++ as we will need to do make same changes in all files at once.

Learn how to search and replace multiple text quickly.

Open the main page of WordPress blog and find out which <div> contains the content of the pages by looking in the source code. In Google chrome, you just right click and select Inspect element. In firefox you would need firebug addon for the same.

Here is what it looks like for the default theme :

How to integrate WordPress theme on bbPress

The grayed line is what we are looking for. It will be <div id=”content” class=”blah blah-blah”> for most of them themes but pay attention, after header and before sidebar (if it has one) or before sidebar, it will contain all the elements of the page.

  • Replace bb_get_header(); ?> by get_header(); ?> <div id=”content class=”narrowcolumn” role=”main”> in all files.
  • Similarly replace php bb_get_footer(); by php get_sidebar(); get_footer(); in all files.

We have done all of the changes required at the bbPress end. Now we will move on to some changes in the WordPress theme where we will load the bbPress stylesheet and call bbPress functions where plugins can hook up so that no functionality is reduced.

 

WordPress theme editing

Copy the bbPress theme stylesheet, rename it to bb-style.php and put in the WordPress theme folder.

Inside header.php look for this line


Just before this line add the following line

bloginfo('stylesheet_directory'); ?>/bb-style.css" type="text/css" />

and then look for this line

<?php wp_head(); ?>

Just after this line add the following line

<?php if ( function_exists('bb_head') ) bb_head(); ?>

Similarly in footer.php file, look for this line

<?php wp_footer(); ?>

Just after this line add the following line

<?php if ( function_exists('bb_footer') ) bb_footer(); ?>

Now if you take a look at the bbPress forum, header will look somewhat messed up because of the conflict between the both stylesheets. Remove the conflicting CSS from bb-style.css or use the one I have created for this tutorial (it should work fine)

Download bb-style.css

This concludes our theme matching tutorial for bbPress by using deep integration with WordPress. Our new look is very much capable of using WordPress power without sacrificing anything bbPress has to offer.

Finally when your site has grown to a large userbase and you are looking for optimization techniques, then is the time to create a matching bbPress theme instead of using deep integration as that will help decrease the server load. You can read more about the advantages and disadvantages of bbPress deep integration.

Author:

He is a passionate freelancer web developer cum student from New Delhi, India who loves to code, blog at blog.ashfame.com and live life.

154 Comments

  1. One the best usable post I have ever read on WpWebHost.
    Nice Work, Ash.

    Thanks

  2. @Ankit
    Thanks for the appreciation!

  3. Really great post..thanks alot for this information.

  4. @Kishore
    Glad that you like it. :)

  5. hey ashfame, thanks a lot for the info you shared, i was scratching my ass from a long time to do it, you saved me :p

  6. @dhananjai
    you are welcome! :)

  7. Some thing very useful!!

    Thanks :) Looking for more cheerzzzzzz

  8. @CSSReX
    Thanks! :)

  9. This is great, does it work with child themes in wordpress?

    I am having trouble getting the header to appear. It is calling the get_header() correctly, but the result is

    Nothing appears within the header div. The footer appears as it should.

  10. the code got stripped from my comment.

    the header div appears but it is empty.

  11. @Richard
    You mean the footer is displaying correctly but the header is not. Right?
    If footer is working correctly then we need to figure out whats wrong with the header.

  12. Thanks for this post, very helpful.
    However, I completed your tutorial 3 times and for some odd reason, each time I couldn’t get it to work.

    When I go to my forum I get a blank white page. Nothing loads.

    Any ideas?

    Thanks
    Maurice

  13. I’m getting the same blank white page. Seems to be after I add the Deep Integration code to bb-config.php

  14. I had the same issue, but looking at the pasted code I noticed it was placing a ‘&’ in the if statement. Change it to ‘&&’ to fix it.

  15. Great Friend But Can you please tell me why in my site http://www.jinnahsequaid.com there is no div content portion instead of it there are div feature dive feautre right…etc many divs.
    how can i put that div.
    Thanks
    .-= Jazib´s last blog ..NRO Case, Qaim Muqam Secretary Qanoon Ki Supreme Court Talbi =-.

  16. Very nice tutorial, thanksyou for that, man

  17. I think there must be something else at play in this whole deep integration thing.

    I’ve followed maybe 20 different tutorials on the topic, and I always end up with a white screen on the forum.

    Maybe some servers behave differently?

  18. Hi, I followed your instructions but get the following error when I try to login to bbpress.

    Fatal error: Cannot redeclare class PasswordHash in /home7/mypath/public_html/wordpress/forum/bb-includes/backpress/class.passwordhash.php on line 38

    I installed wordpress using simplescripts but bbpress manually.

    Any idea?
    .-= Brian´s last blog ..Dropbox – File Sharing Software =-.

  19. @Brian
    Your error seems unusual. Never saw that one.

    And for everyone else, a white screen means php error and is more than what a non technical user can handle. sometimes it can be as simple as a syntax error in PHP and sometimes bigger issues. Try posting your error logs on bbpress forums.

    In case anyone of you would like to hire me, I am available ;)
    .-= Ashfame´s last blog ..WordPress dashboard in different language =-.

  20. Im getting the following error once i add the following code to the bb-config.php:

    /* Deep integration */
    if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))
    ..etc

    The error is:

    Parse error: syntax error, unexpected ‘;’ in /mounted-storage/home71a/sub001/sc11532-WPTM/sitename/forum/bb-config.php on line 14

  21. ^ for some reason it removed the “amp;” from the line when i posted the comment.

  22. Great tutorial, I would love to get this working but I’m getting the sme error as Brian when I try to access the admin page on bbpress after adding the deep integration code.

    Fatal error: Cannot redeclare class PasswordHash in /home/content/42/6470242/html/forums/bb-includes/backpress/class.passwordhash.php on line 38

  23. I had skipped Adding Keys and Salts because I thought I had already done that, but after following that step and doing it again, I think we are working. Thanks!

  24. @Adan
    You have a syntax error in your code. Take a look again.
    @Kevin
    Thanks for sharing!
    @Brian
    Take Kevin’s note, add salts and keys in your configuration file.

    @ALL
    Please follow the tutorial exactly and then report if there are any issues. Also let me know if you are running WordPress 3.0
    .-= Ashfame´s last blog ..Google Code Project Hosting Commit 500 Internal Server Error Fix =-.

  25. Fatal error: Call to undefined function get_header() … on line 1.

    with the exception of the forums landing page this error displays on every page. i am using wordpress 3.0

  26. @Ross
    WordPress is not loaded. Did you deep integrate WordPress & bbPress them?
    .-= Ashfame´s last blog ..Remove WordPress Multisite data =-.

  27. @Ash

    yeah, the only other error i run into is when i go to add the line from the bbpress plugin (for manual cookie settings)i get errors so if i understand correctly i can leave the plugin on and not have to insert the line into the wp-config.

    right now i am at a wall trying to figure out why wordpress isnt loading.

  28. @Ash

    you know what, i figured it out.. i accidentally over wrote the core files with the new header tag instead of the template files. i got it now. haha, what a mix up.

    but awesome guide ! :) thank you!

  29. @Ross
    Glad that you got it working :)
    .-= Ashfame´s last blog ..Remove WordPress Multisite data =-.

  30. Hello all,

    I make all this steps for integration with the Twenty Two theme, but a lot of errors appears…

    For example, the <div> distribution is completely different. How I can make this right?

    The forum URI: http://forum.esporo.net/

    Att.
    .-= Arthur Freitas´s last blog ..Tipos de biologia descobertos =-.

  31. Edit: sorry, is the “Twenty Ten” theme.

    Att.
    .-= Arthur Freitas´s last blog ..Tipos de biologia descobertos =-.

  32. When installing bbPress,

    At, go to step 1.

    Do i need to fill in “deep” as database-name and “root” as username or is this cutom and do i need to fill in the same names as the WordPress installation?

    Thanks,
    BJ

  33. @Arthur
    Try finding out which DIV houses everything in it. That is it.

    @BJ
    yeah the same as WordPress
    .-= Ashfame´s last blog ..We are on Facebook =-.

  34. Hi,

    Thanks for the tutorial.

    Please remove the annoying sharing bar. I cannot read the text since the bar is above it.

    Regards,
    Américo

  35. Thank you so much!!! You are a lifesaver!

    I have a question… which is probably a dumb question because I’m pretty much a newbie at this, but is there a simple mistake i’ve made somewhere that is preventing the wordpress links in the header navigation bar from going to the actual pages… they all get directed to the homepage instead.

    Thanks again!

  36. figured it out… i made a bb-functions.php as well and made the links a constant rather than tied to the pages in wordpress :)

  37. @Americo

    You are welcome. :)
    Regarding the floating links, its on the left hand side of content. You are probably viewing it on a small screen. And I have no control over the site, just an author here.

    @Melissa

    Glad that you got it working :)
    .-= Ashfame´s last blog ..WordPress Multisite non-WWW forwards to Signup Page Problem Fix =-.

  38. Great post Just one question in this part:

    Open bb-config.php file and add the following lines of code above “where you define database connection settings”.
    view source

    For those who are not very savvy, how to I know were I define databse connection settings. What would the code look like?

    Thanks

  39. @Bob

    Just after the comments about the file, paste it there. Make it above every other line of code in there
    .-= Ashfame´s last blog ..WordPress Multisite non-WWW forwards to Signup Page Problem Fix =-.

  40. After adding the code within the bb-config.php i get this error when trying to access blog
    Fatal error: Call to undefined function wp() in C:\AppServ\www\blog\wp-blog-header.php on line 14

  41. Hey Gorge!

    Did you edited your wp-blog-header.php?
    .-= Ashfame´s last blog ..WordPress Multisite non-WWW forwards to Signup Page Problem Fix =-.

  42. @George

    I think you have misspell one of the function names. look for a function named wp()
    .-= Ashfame´s last blog ..WordPress Multisite non-WWW forwards to Signup Page Problem Fix =-.

  43. I follow all the steps here but I got the blank white page for the forum , could you help me with it pleasse? and also on your tutrail you said “Copy the bbPress theme stylesheet, rename it to bb-style.php and put in the WordPress theme folder.” are you sure it is bb-style.php not bb-style.css?

  44. It seems work on the site now , but i use ad-minister plugin on the WordPress blog however, when goes to forum page the ad-minster image is not show, could anyone here have solution for this please?

  45. t seems work on the site now , but i use ad-minister plugin on the WordPress blog however, when goes to forum page the ad-minster image is not show, could anyone here have solution for this please?

    any helps É need it fast

  46. Thanks for your posting.
    I’m using Twenty Ten theme, so for “main page of WordPress blog and find out which contains the content of the pages” means I need to go to Twenty Ten theme dir, and search & replace?
    For instance, there is

    get_header(); ?>

    Then, I need to replace them to bb_get_header(); ?> right?

  47. Oh, for some reason, my code was not pasted completely, so I need to replace this
    get_header(); ?>

    to

    bb_get_header(); ?>

    ??

  48. I’ve done everything up to deep integration, but bb-press doesn’t access the cookies from the main site and requires the user to log in again.

  49. I followed your instructions but at the admin email part, I entered my current info. I then clicked complete installation or whatever and it gave me an error saying that the installation was not completed. I wouldn’t let me go forward or back and everything I’ve tried since just gets me an oop BBPress already installed. I deleted the BBPress folder and tried to start over but can’t get past step one even after deleting the BB config.php file.

  50. What do I need to do to allow me to restart the installation. Thanks.

  51. I seem to have lost admin access to my bbpress. Is there anyway to reset it? Thanks.

  52. I am getting the following error message after bbPress Integration plugin

    Parse error: syntax error, unexpected ‘;’ in /data/24/2/89/37/2252526/user/2475331/htdocs/darkfrequencies/bbpress/bb-config.php on line 19

  53. I am 99% there! Woo hoo! Thanks Ashfame!

    But, the 1% is weird… I have a two column layout with main content on the left and in the “side car” Pages and New Posts.

    I have setup “Page Link To” Plug-in to create a link to the Forum (bbPress install with Ashfame edits as above).

    How can I get the layout to display more like original css which was more readable?

    Thanks,
    Dave

  54. I downloaded the bb-style.css file and uploaded and it noe Perfecto!

    Much gracias, Ashfame!

  55. Hi, I am a little confused at the moment :\

    I have added these lines into my bb-config.php:
    if(!defined(‘ABSPATH’) && !defined(‘XMLRPC_REQUEST’))
    {
    define(‘WP_USE_THEMES’, false);
    include_once(dirname(__FILE__) . ‘/../wordpress/wp-blog-header.php’ );
    header(“HTTP/1.1 200 OK”);
    header(“Status: 200 All rosy”);
    }

    I changed the & to && as I was getting an error otherwise, and I also added the /wordpress part as my installation is stored in its own directory.

    Now I get no errors, but when I load utilitiessavings.co.uk/bbpress I just get a blank page, nothing in the source at all – is this correct?

    If anyone can help me it would me most appreciated, as this seems like a great tutorial and I am eager to continue, once I know I am on the right track.

    Thanks!

    Andrew

  56. Actually, I’ve sorted it by doing it all from the start again. Think it was because I didn’t skip the integration step when I initially installed. Thanks so much for this excellent tutorial. Now to tweak my stylesheets! ;)

    Dugg and buzzed. :p

  57. Ashfame, take a look at this string in bb-config.php:

    if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))

    «&» is ok? Maybe it should be AND or something. I don’t remember «&» operator.

  58. Good filter. Under & I mean «&_amp_;» (remove «_»).

  59. @mike
    Just &

  60. To be more clear, just Press (Shift + 7)

  61. I get: Fatal error: Call to undefined function get_header() in C:\wamp\www\forum\bb-templates\kakumei\front-page.php on line 1

    Can you please help me on this?

  62. /* Deep integration */

    2 if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))

    3 {

    4 define(‘WP_USE_THEMES’, false);

    5 include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );

    6 header(“HTTP/1.1 200 OK”);

    7 header(“Status: 200 All rosy”);

    8 }

    Line 5: Make sure you have the right path! For example my WordPress is in /localhost/WordPress and bbPress is in /localhost/forum so the right path will be:

    ‘/../WordPress/wp-blog-header.php’ instead of
    ‘/../wp-blog-header.php’

    Bye

  63. Ashfame,
    In the section – “Deep Integration of bbPress with WordPress”.
    You advise to open bb-config.php file and add the following lines of code above where you define database connection settings. My question is : What exactly will the database connection settings look like? I want to make sure I place the code exactly where it needs to go. Thank you!

  64. Very cool,Thanks for sharing…

  65. Hi Ashfame,

    Thanks for this great tutorial, I have it all working for a client site. I have one issue though – When either myself or the site admin (both have WP admin / keymaster accounts) try to create a new forum we get redirected to the WP dashboard without the forum being made. Tried creating a child forum too but again, no joy. Have you come across this before? Google hasn’t helped so far and I’d like to avoid adding the forums via phpmyadmin.

    Using clean installs of WP 3.01 and bbPress 1.02 into the same database using custom table prefixes (still also using wp_ and bb_ though). I’m not a PHP programmer, so be gentle with the tech explanations :)

    Best Regards, Karl

  66. Its hard to provide support here. Please reach me on my blog’s contact form – http://blog.ashfame.com/contact-ashfame/

  67. I have worked my down to deep integration however i have the following error:

    Parse error: syntax error, unexpected ‘;’ in /home/princepr/public_html/bbpress/bb-config.php on line 15

  68. All Integrated, “&&” issue…..theme bit next

  69. THANK YOU! This tutorial is great. I’ve never had so much ease getting through something I figured would take days. Deep integration achieved! Thank you again!

  70. Yes, yes, and yes! Thank you, thank you and thank you. Pictures really are worth a thousand words. After seeing your explanation on the keys and salts, I finally got my seamless login to work right for wordpress and bbpress. I will be using this to align my themes next. Thank you!

  71. I Ashfame. I have some clarifications.

    1. Please pardon my ignorance. Under Adding WordPress indicator settings, what values should I put on WordPress address and blog address respectively?

    2. After placing the Deep integration code in bb-config.php, I get the error Parse error: syntax error, unexpected ‘;’ in /home/playsite/public_html/forum/bb-config.php on line 15. I’m not sure what’s causing this. I am using WP 3.0.4

    Thank you in advance

  72. 2. After placing the Deep integration code in bb-config.php, I get the error Parse error: syntax error, unexpected ‘;’ in /home/playsite/public_html/forum/bb-config.php on line 15. I’m not sure what’s causing this. I am using WP 3.0.4

    I’m getting this same error. What is the solution?

  73. @Craig,

    Replace & with & in the code you copied.

  74. Fatal error: Call to undefined function get_header() … on line 1.

    with the exception of the forums landing page this error displays on every page. i am using wordpress 3.0

  75. This was the only site that could help me out of my bbPress/WrdPress nightmare of a day. Now I just need to integrate themes, but I’m not seeing ‘ < div id=”content” ' anywhere in the Inspect Element.. my homepage has a special slide show, but even on the other pages I'm not seeing this line & not sure which to use to replace 'bb_get_header()'. My site is gogo-gringo.com, any suggestions would be greatly appreciated!

  76. hi,

    i have problem after deep integration.I can able to see the logged in status of the user in the front page.I have made modifications to make my bbpress look like my blog.i could see my logged in when am cliking on the topic.please help.

  77. Hi
    Many thanks Ashfame for your tutorial…

    I have managed to complete everything excpet the merging of the themes (getting the forum ‘bbpress’ to look like my purchased theme)

    Can you help me please, I am getting there but I am missing something :s ?

    Mosaix

  78. @Richard (and others like me who couldn’t get wp_head() to load after WP integration using this -excellent- tutorial)

    I’m using WooThemes OpenAir theme and after deep integration bbPress would load the theme but not anything loaded via the wp_head() call in my theme’s header.php, which impacted the way it looked a good bit given some of my plugins modified the theme UI.

    I traced through threads on the bbPress site, here, and a few other places and never got a great answer.

    Finally, I made the change below and it started working, so wanted to record here in case anybody else ran into this issue.

    (Hopefully this will format right)

    In bb-config.php, change this:

    /* Deep integration */
    if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))
    {
    define(‘WP_USE_THEMES’, false);
    include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );
    header(“HTTP/1.1 200 OK”);
    header(“Status: 200 All rosy”);
    }

    To this:

    /* Deep integration */
    if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))
    {
    define(‘WP_USE_THEMES’, false);
    include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );
    header(“HTTP/1.1 200 OK”);
    header(“Status: 200 All rosy”);
    get_header(); // add this line!
    }

    After that, everything loaded by wp_head() in my WP header.php loaded and the WP site UI matched the bbPress site.

    Hope this helps someone else. I spent about 3 hours running this down!

    – Matt

  79. Fantastic goods from you, man. I’ve have in mind your stuff prior to and you are simply too great. I actually like what you have acquired here, certainly like what you are stating and the best way in which you say it. You make it enjoyable and you continue to care for to stay it sensible. I can not wait to learn far more from you. That is actually a terrific website.

  80. @Matt – Thanks a ton!

  81. @Matt
    When I use your code, I end up with BOTH bb header and wp header.

    (I was getting a syntax error until I changed &amp; to & and " to ” so thanks for that)

  82. Please Help!

    I got through all the steps up to the point where I need to change the .css file I open the CSS file of the default theme (Kakumei) but I don’t see bb_get_header or bb_get_footer anywhere?

    Thank you all for your help!

  83. Thanks a lot, used this info for a WHMCS & WordPress integration

  84. hello bro, really good tutorial got all i’ve got in her..but bro i have one problem..i followed all the instructions and i think its working all fine but on the page why does the body of the bbpress and sidebar doesn’t align…any help with this..it’ll be really appreciated…here’s the site that im working on feel free to check
    http://sleekystuff.com/bbpress

    ~acE~

  85. I added get_header() like Matt suggested but now I’m getting this error when I try to login to bbPress:

    Warning: Cannot modify header information – headers already sent by (output started at /home/holden1/public_html/thegreatestinjustice/wp-content/themes/absolum/header.php:6) in /home/holden1/public_html/thegreatestinjustice/forum/bb-includes/backpress/class.wp-auth.php on line 272

  86. Some time i really get wonder that how people write something so informative like the above details, i am really thanks full of you guys for sharing.Thanks Alot

  87. awesome tutorial…however this did not work for me. when I try to access bbpress from my domain.com/bbpress/ a blank white page appears any suggestions? thx again

  88. Dear Ash,

    First of all, thanks for this great tutorial! Haven’t found a better one yet!.

    Unfortunately i have a small problem. After using the normal integration I can’t access my bb-admin. When I go to /bbpress/bb-admin it redirects me back to the forum frontpage.

    I read almost every fix you posted on the Internet, still couldn’t found any solutions.

    Do you have new knowledge about this problem?

    Thanks in advantage,
    Nick

  89. And update…

    Fixed to problem. In your tutorial the part where you enter the ‘User Role Map’ its !important! to save the User Role Map with the Save Button under the User Role Map before you continue to the other parts down the page. The Save Button is not working for the whole page.

    Maybe you can update / change you tutorial so others don’t have the same problem.

    :-)

  90. Thanks you wpwebhost

  91. Hi Ash,

    Could you please specify what version of the plugins / wordpress is this tutorial written for ?

    It doest seem to work for the latest version of bbpress 2.0.1
    Thank you

  92. Dear Ash,

    First of all, thanks for this great tutorial! Haven’t found a better one yet!.

    Unfortunately i have a small problem. After using the normal integration I can’t access my bb-admin. When I go to /bbpress/bb-admin it redirects me back to the forum frontpage.

    I read almost every fix you posted on the Internet, still couldn’t found any solutions.

    Do you have new knowledge about this problem?

    Thanks in advantage,
    Nick

  93. hey Thanks a lot, used this info for a WHMCS & WordPress integration

  94. This page really has all the info I wanted about this subject and didn’t know who to ask.

  95. Very nice article but if i make any changes on theme every thing will go away after next theme update right .

Trackbacks/Pingbacks

  1. Match bbPress theme with WordPress via Deep Integration - [...] Here is the tutorial – Make bbPress theme match with WordPress using Deep Integration [...]
  2. Weekly WordPress Review - WPCanada - [...] Make bbPress Theme Match with WordPress by Deep Integration (WPWebHost) [...]
  3. Integrating bbPress with WordPress Theme (in Progress…) | Domain Web Center - [...] http://www.wpwebhost.com/make-bbpress-theme-match-with-wordpress-by-deep-integration/ [...]
  4. How to integrate WordPress theme on bbPress « PhpScriptBlog - [...] Open wp-config.php file for editing and locate the following lines : ? [...]

Leave a Comment

Feedback Form
Customer Feedback