Embed phpBB into WordPress template:
iframe responsive how to

PAGE HELP – UPDATED: 25 Mag 2018
(related views/page-forum.php – updated 27 Sep 2017)

wp_w3all responsive iframe procedure

After you’ve built/created the WP forum template page via
WP_w3all phpBB embedded on WordPress Template
option on WP_w3all admin config page, and the blank page on WordPress Admin -> Pages -> Add New, titled the same of  created wp_w3all template page, so forum or board etc…, to complete the procedure and get the responsive iframe height for the embedded phpBB into WordPress template page you need:

Open with a text editor your phpBB template file overall_footer.htmlafter line

OR just before the closing </body> tag, add this code (take care to not add lines numbers column on code you copy!):

after you’ve past this code into phpBB overall_footer.html edit the second line of the code you’ve add:

change localhost with your domain name (example axew3.com), do NOT add here http(s):// OR the point in front, just add
yourdomain.com or leave localhost if on localhost. If phpBB is at subdomain.domain.com, add domain.com as value
(THIS IS MANDATORY!) or resizer won’t work

AFTER EDITED, save and load the modified overall_footer.html into your phpBB style folder, overwriting the default one, and so, load with ftp on phpBB root folder, the file
that is contained inside folder

NOTE: if your iframe do not resize, the problem is that the file iframeResizer.contentWindow.min.js isn’t loaded correctly: check the line

in the code you have add on overall_footer.html, that should point correctly to iframeResizer.contentWindow.min.js. You can also use an absolute URL (use http or https as needed)

After this, phpBB require to recompile the template, or modifications to his template files not affect (to overall_footer.html in this case). Open phpBB ACP, and so under:

Server Configuration -> Load settings -> Recompile stale style components  set to YES and save. Load one time a phpBB full forum page. So return to ACP and reset to NO, save. This step is needed one time to load the template modifications on phpBB (and any time you edit a phpBB template file to make modfications take effect), but this option should be ever set to NO into an online/production site to save server resources. It is normally set it to yes only for testing/devel purpose or to apply modifications on phpBB  templates files.

If you need phpBB email notification links to point to iframe, follow this step about htaccess:

phpBB htaccess for phpBB notification email to point WP forum page (1.6.9>)

to activate also the rewrite right click/copy links on iframe, to point iframe WP page, remove the two lines that wrap code about (as inline code explained) in the code you have add, where:

/* // remove this line to activate click /copy/paste/ links x htaccess


*/ // remove this line to activate click /copy/paste/ links x htaccess

NOTE: to get the iframe to be responsive for ACP phpBB admin panel, read this post.

If any question, use the forum here or at wordpress.org wp-w3all-phpBB