|
|
| Author |
Message |
Ivan Fraer
New User
Joined: 15 Aug 2010
Posts: 5
|
Posted: August 15th 2010, 10:01 am Post subject: Wordpress / phpBB visual integration ? |
|
|
I read somewhere that it was easy to integrate phpBB into a Wordpress page (see later in this topic), but have not yet worked out how to do it.
I want to display phpBB inside a Wordpress page and here is what I found:
Everything happens in overall_header.html and overall_footer.html of the phpbb theme.
The trick is to accept php in the template files and then to integrate the wordpress template function (get_header() & get_footer()
Any help would be appreciated - Thank you very much in advance. _________________ Best regards
Ivan |
|
| Back to top |
|
 |
~HG~
Dedicated User
Joined: 08 Nov 2003
Posts: 3913
Location: Australia
|
Posted: August 15th 2010, 12:34 pm Post subject: |
|
|
I havent been to the wordpress site for some time now but I seem to recall that the integration instructions for all forum software is included on their site somewhere. _________________ ~HG~
|| rodneyangell.com || || phpbb-tutorials.com ||My Hacks |
|
| Back to top |
|
 |
Ivan Fraer
New User
Joined: 15 Aug 2010
Posts: 5
|
Posted: August 15th 2010, 2:22 pm Post subject: |
|
|
Yes but I´m searching and I´m searching, but no luck
I don´t necessarily need a full integration (common login etc.), but "only" the PHPBB forum integrated in a WP-side. _________________ Best regards
Ivan |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Ivan Fraer
New User
Joined: 15 Aug 2010
Posts: 5
|
Posted: August 17th 2010, 12:33 pm Post subject: |
|
|
| Patrick wrote:
|
Hello and welcome, Mr. Fraer.
There are some full integration options out there. But, it seems like you just want to embed a phpBB installation on your server into a WordPress page? Is that accurate?
Thanks,
Patrick
|
Thank you Patrick
Yes, that is exactly what I need
Best regards
Ivan _________________ Best regards
Ivan |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Ivan Fraer
New User
Joined: 15 Aug 2010
Posts: 5
|
Posted: August 19th 2010, 11:09 pm Post subject: |
|
|
Hello again
No, unfortunately not. An i-frame is not optimal because the user then have to scroll to the top of the page, (if you understand what I mean :-)
I guess It should have something to do with changes in overall_header.html and overall_footer.html of the phpbb theme.
The trick is to accept php in the template files and then to integrate the wordpress template function (get_header() & get_footer()
Best regards
Ivan _________________ Best regards
Ivan |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
Posted: August 20th 2010, 1:37 pm Post subject: |
|
|
Hey Ivan,
Thanks for the reply.
When you say WordPress page, do you mean an actual WordPress page? For example, in the WordPress admin area, you can post a new post or you can add a new page. You want to add a new page and include a phpBB forum in it? Or are you looking for phpBB to inherent your WordPress header and footer files, somehow?
phpBB 3 can accept PHP by default. From your phpBB 3 admin area, click "Security settings" under "SERVER CONFIGURATION" in the left menu. Then, look for "Allow php in templates." Select "Yes" and press "Submit."
You should then be able to use INCLUDEPHP like so:
| Code:
|
|
<!-- INCLUDEPHP filename.php-->
|
In that example, filename.php would have to be in your root folder (the one with viewtopic.php), I believe. You can specify the relative path of the file, though.
Thanks,
Patrick _________________ Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide |
|
| Back to top |
|
 |
Ivan Fraer
New User
Joined: 15 Aug 2010
Posts: 5
|
Posted: August 20th 2010, 2:22 pm Post subject: |
|
|
Hello again Patrick
Thank you. Well I allowed PHP in the security settings and after that I created a new blank WordPress page - Just with this "code" in it:
<!-- INCLUDEPHP http://www.gpsforalle.dk/snak/index.php-->
But as you can see on the testside (http://www.gpsforalle.dk/test/) I only got a blank page. I also tried to test with a php -file in the root, but with the same negative result.
Best regards
Ivan _________________ Best regards
Ivan |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
Posted: August 22nd 2010, 11:38 am Post subject: |
|
|
Hello Ivan,
My pleasure.
That INCLUDEPHP directive should be included in a phpBB template file, not a WordPress page. From your message, I thought you wanted to enable PHP includes in phpBB template files.
In WordPress template files, you can already use a PHP include in the standard format, such as:
| Code:
|
|
<?php include ('networkbar.html'); ?>
|
If you want to execute PHP code in a WordPress page, this might be helpful:
http://www.hongkiat.com/blog/execute-php-in-wordpress-post-page-and-widget-sidebar/
One other note: with the PHPINCLUDE directive in phpBB, you might need to set a relative path to the file. i.e., rather than http://www.gpsforalle.dk/snak/index.php, it would be ../snak/index.php.
I hope that this helps.
Thanks,
Patrick _________________ Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide |
|
| Back to top |
|
 |
|