Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a wordpress site, which is running fine. Beside that site, I have a forum www.mywordpresssite.com/forum running. Now I want to integrate this forum (phpbb) into my wordpress site.

What I would like to do is adding a menuitem called forum, and link this to a file called forum.php, with following content:

<?php get_header(); ?>

<div id="content"><!-- if it's not in the header, that is... -->
<iframe src="http://www.mywordpressite.com/forum" width="100%" height="80%" />
</div>

<?php get_footer() ?>

This way, I suppose I can preserve my header & footer from my wordpress site en between them, my forum can be displayed.

My question: how can I call this file forum.php? I created the file and put it in the theme directory.

share|improve this question
5  
Easiest way to integrate forum in WordPress is using bbPress –  Mamaduka Mar 31 '12 at 9:02
    
Use include, require, or bbPress. –  soulseekah Mar 31 '12 at 10:07
1  
I agree with using bbPress. If you install the latest SVN version (2.1-bleeding), then you even get a converter from phpBB to bbPress with it, so you can then move all you topics, forums, etc across. It is still in alpha, but I've been running it on localhost for a while now and there were no problems that I could see. It's just something you need to be aware of. Might take another few weeks forf the stable version to come out. –  shabushabu Mar 31 '12 at 13:05
    
I run bbPress 2.1 on two of my support sites and it works perfectly. –  Pippin Jul 22 '12 at 14:12
add comment

3 Answers

You can use this file as custom template file. http://codex.wordpress.org/Pages#Page_Templates

Create a page for your menuentry and use your custom template file for this page.

share|improve this answer
add comment

Use bbPress. It has a fully-built backend, and allows you to assign specific users to moderate the forum, and not access the rest of the website. It's the quickest, easiest, and probably most secure solution.

share|improve this answer
add comment

If you still intend to go ahead with phpBB, then an easier approach would be to customize the templates of phpBB.

Assuming you are using the default set of templates (or any of the basic level templates such as Afterburner, et al), then you should be easily able to find the phpBB theme files (overall_header.html and overall_footer.html).

Edit these two files and put your header and footer code in there.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.