Hi Guys - my first attempt at getting this plugin to work and I really want it to work - so please help
I am using the Astra WP theme.
I am building my WP website on localhost with a view to transferring it to the server once fully functional
In W3all setup my URL is set to localhost - is this okay?
The absolute path is fine (green)
I created a new page in WP titled MyForum, in W3all settings where I create the embedding template the page name is identical. After creating the template it is visible in the theme directory as page-MyForum.php
Upon previewing the MyForum page in WP I get a page with the site header appearing twice (one under the other) and the footer - no sign of phpBB
What have I done wrong or what could be the problem?
Phpbb doesn't show on page created for it
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Phpbb doesn't show on page created for it
Ok, so, let resume with example procedure:
-> you created a page named forums (or something different from the folder name, where phpBB reside) in Wordpress, and leaved it blank, just named forums
-> then you build the page forums, into wp_w3all plugin admin page (iframe section). At this point, you should have a page-forums.php file into your active template folder. If it is not, just copy the file /wp-content/plugins/wp-w3all-phpbb-integration/addons/page-forum.php and paste it into your active template folder, rename it into what you setup as name the wordpress page and the name of the forum page into plugin admin, so forums in this case, then page-forums.php.
At this point, you'll need also to apply this procedure about iframe:
https://www.axew3.com/w3/2018/12/phpbb- ... iframe-v3/
Done this, when you open mysite.com/forums you should have the correct result, but, to fit your template, may you'll have to do this:
open with text editor the page-forums.php you created or pasted into template folder, and follow inline instructions on HOW to build a custom page-forum, adapting it to any template.
If the last step is too hard for you, may reply with your entire template page code, you'll see soon how to setup the joke.
-> you created a page named forums (or something different from the folder name, where phpBB reside) in Wordpress, and leaved it blank, just named forums
-> then you build the page forums, into wp_w3all plugin admin page (iframe section). At this point, you should have a page-forums.php file into your active template folder. If it is not, just copy the file /wp-content/plugins/wp-w3all-phpbb-integration/addons/page-forum.php and paste it into your active template folder, rename it into what you setup as name the wordpress page and the name of the forum page into plugin admin, so forums in this case, then page-forums.php.
At this point, you'll need also to apply this procedure about iframe:
https://www.axew3.com/w3/2018/12/phpbb- ... iframe-v3/
Done this, when you open mysite.com/forums you should have the correct result, but, to fit your template, may you'll have to do this:
open with text editor the page-forums.php you created or pasted into template folder, and follow inline instructions on HOW to build a custom page-forum, adapting it to any template.
If the last step is too hard for you, may reply with your entire template page code, you'll see soon how to setup the joke.
-
- Posts: 2
- Joined: Fri Nov 08, 2019 6:29 am
Re: Phpbb doesn't show on page created for it
Thanks for the quick response. I followed the instructions and got the forum to display in my WP page but then the height of the forum display is restricted. I then followed the instructions as per the link provided above to correct the iframe height issue, without success.
Is the iframe height issue linked to the use of a theme, like in my case the Astra theme?
Would I have the same iframe height issue if used a WP theme like twenty nineteen?
Regards
Is the iframe height issue linked to the use of a theme, like in my case the Astra theme?
Would I have the same iframe height issue if used a WP theme like twenty nineteen?
Regards
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Phpbb doesn't show on page created for it
no, it is normally caused by the fact, that something is wrong into iframe js code you added, where you need to adjust values as inline js code explain.
If the site is online and you provide the link, i can in short understand what's wrong, if not, check this short list:
do you added the iframeResizer.contentWindow.min.js file into your phpBB root?
do you changed last line into overall_footer.html code you added, to point to this file, where
do you changed the values where in the code overall_footer.html code you added:
did you rebuilt then, phpBB template to modifications take effect?
If the site is online and you provide the link, i can in short understand what's wrong, if not, check this short list:
do you added the iframeResizer.contentWindow.min.js file into your phpBB root?
do you changed last line into overall_footer.html code you added, to point to this file, where
Code: Select all
<script type="text/javascript" src="https://localhost/root_integrations/phpbb323/iframeResizer.contentWindow.min.js" defer></script>
Code: Select all
document.domain = 'axew3.com'; // MANDATORY! // Set/Change this value to fit your domain (example: axew3.com (or leave localhost if on localhost))
var wordpress_url_page_forum = 'https://localhost/wp5/forum'; // MANDATORY! // (DO NOT ADD/INCLUDE final slash here) Url that point to your iframed wordpress forum page
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Phpbb doesn't show on page created for it
p.s and to be sure it resize correctly to the needed height, you'll may also find useful this, after:
how to resize for any theme:
viewtopic.php?f=2&t=1420&p=4132#p4132
how to resize for any theme:
viewtopic.php?f=2&t=1420&p=4132#p4132