Embed phpBB into WordPress template:
iframe responsive how to

UPDATED: 27 Sep 2017
(related views/page-forum.php is updated at same time)

For WP_w3all 1.7.2 >

wp_w3all responsive iframe procedure

After you have activate the WP_w3all phpBB embedded on WordPress Template iframe links option on admin wp_w3all config, and built/created the forum template page under  WP_w3all phpBB embedded on WordPress Template, (read hints on wp_w3all admin config page) and the blank page on WordPress admin (Pages -> Add New, titled as the 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 you need:

Open with a text editor your phpBB template file overall_footer.htmlbefore 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 have paste 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), NOT add here http(s):// OR the point in front, just add yourdomain.com or leave localhost if on localhost. (THIS IS MANDATORY!)

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  iframeResizer.contentWindow.min.js that is contained inside YOURWP/wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer folder.

NOTE: if your iframe do not resize, the problem is that the file iframeResizer.contentWindow.min.js isn’t loaded correctly: check 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), but this option should be ever set to NO into an online/produciton site to save server resources. It is normally set to yes only for testing/devel purpose, or needed to apply done 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