Hello, I ve made this tutorial I wanna share about integrating miniBB forums in your WordPress layout matching perfectly the style you use with the most easy and transparent way, without making lots of changes, in a way that we can upgrade both scripts without having to make all things from the start each time.
Notes before we start:
If you want to synchronize miniBB with WordPress (that means share the same user table) you 'd better read this link: http://www.minibb.com/forums/11_4389_1.html and it is NOT
covered with this tutorial. Before you begin backup everything, both WordPress and miniBB (databases AND files) just in case you want to revert back without losing half of your hair!!! Testing it at a localhost installation will be perfect.
- A working WordPress installation, preferably the latest one.
- A working miniBB installation, preferably the latest one.
- MiniBB should be installed in a separated folder INSIDE
your WordPress folder.
- MiniBB should be in classic style so make sure you have $startPageModern=FALSE;
and that is because you ll have WordPress sidebar(s) around and that won't look good.
- Ability to edit php files with a text editor like Notepad or (better) Notepad2.
- For the purpose of this tutorial we assume that WordPress is in the ROOT of our domain and miniBB installation folder is named forums
. That means your Wordpress should appear in http://YOUR_DOMAIN/ and miniBB should appear in http://YOUR_DOMAIN/forums/ In case you use different structure or names adjust accordingly.
So here we go...Step 1
According to miniBB manual about "Including in your own PHP script
" we must make a file which will include a header and a footer and minibb index.php file. To make things a bit easier RENAME miniBB index.php file to something else like forums.php so you can use the name index.php for the file that will include header, footer and our newly forums.php
So the old index.php should be named forums.php and then create a new index.php which will have this code inside:
/* Output your header here */
/* Output your footer here */
Going to http://YOUR_DOMAIN/forums/ should appear your miniBB forums along with the word header at the top and the word footer at the end of the page. Anytime you want to revert back just rename forums.php to index.php and you 'll have your forums like you did without any header or footer.Step 2
Now what we need to change is SOME of the files that are inside miniBB templates directory so you should better have a backup
of them before you do it.
First open main_header.html file and REMOVE
everything from and UP
. Then open main_footer.html file and REMOVE and