{"id":4599,"date":"2020-01-20T22:00:36","date_gmt":"2020-01-20T21:00:36","guid":{"rendered":"https:\/\/www.axew3.com\/w3\/?p=4599"},"modified":"2026-11-08T10:00:40","modified_gmt":"2026-11-08T09:00:40","slug":"phpbb-wordpress-template-integration-iframe-v5","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2020\/01\/phpbb-wordpress-template-integration-iframe-v5\/","title":{"rendered":"phpBB WordPress template integration (iframe v5)"},"content":{"rendered":"\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>V5 version<\/strong> (for the cool people)<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\"><span style=\"color: #008000;\"><strong>JS code<\/strong> &#8211; updated on<strong> 24 Jul 2024<\/strong><\/span><\/p>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\"><a href=\"https:\/\/www.axew3.com\/w3\/2022\/02\/the-awesome-iframe-template-integration-using-shortcode\/\" target=\"_blank\" rel=\"noreferrer noopener\">shortcode files<\/a> <span style=\"color: #008000;\">&#8211; updated on<strong> 30 Jun 2024<\/strong><\/span><br><em>addons\/page-forum.php<\/em> &#8211; <span style=\"color: #008000;\">updated on<strong> 30 Jun 2024<\/strong><\/span><\/p>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\">Help steps <span style=\"color: #008000;\">&#8211; updated on<strong> 06 Jul 2024<\/strong><\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">NOTE:<\/mark><\/strong> since plugin version 2.8.7&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\"><strong>WordPress phpBB iframe template integration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do an awesome<strong> Template integration by Shortcode<\/strong>, that&#8217;s compatible with any WP theme, <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">it is not required<\/mark> to build the page-forum into the plugin admin<\/strong> page, but just to add the same code, as explained more below on this page, into the <strong>overall_header<\/strong>.html and <strong>overall_footer<\/strong>.html phpBB template files, recompile the phpBB template, and then read here:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-axew-3-com wp-block-embed-axew-3-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ERhyTIRHkQ\"><a href=\"https:\/\/www.axew3.com\/w3\/2022\/02\/the-awesome-iframe-template-integration-using-shortcode\/\">The (awesome) iframe template integration using shortcode<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cThe (awesome) iframe template integration using shortcode\u201d \u2014 axew3.com\" src=\"https:\/\/www.axew3.com\/w3\/2022\/02\/the-awesome-iframe-template-integration-using-shortcode\/embed\/#?secret=zfnLL8bJhB#?secret=ERhyTIRHkQ\" data-secret=\"ERhyTIRHkQ\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-large-font-size\"><strong>WP_w3all template integration steps<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If using the page-forum.php<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">NOTE:<\/mark><\/strong> <strong>if your WP theme is built using Guntenberg and the new way that WordPress use to manage themes<\/strong>, then <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">YOU HAVE <strong>NOT<\/strong> TO USE<\/mark> the template integration using page-forum(orWhateverNamed).php <strong>and you have to REMOVE it from the template folder<\/strong>, whenever you have built or copied\/pasted adding it into the theme folder. Into themes like the WP <strong>Twenty Twenty-Four<\/strong>, it is NOT possible to use the template integration using page-forum, but only the <a href=\"https:\/\/www.axew3.com\/w3\/2022\/02\/the-awesome-iframe-template-integration-using-shortcode\/\">shortcode template integration<\/a>. So you have to follow here below, only sections about the <em>overall_header.html<\/em> and <em>overall_footer.html <\/em>js code that require to be added.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Build\/create the WP forum template page via option<br><em>WP_w3all phpBB embedded on WordPress Template<\/em><br>on <em>WP_w3all admin config page,<\/em> and the <strong><em>blank page<\/em><\/strong> on WordPress Admin <em>-> Pages -> Add New, <\/em>titled the same, so <span style=\"color: #0000ff;\"><em>forum<\/em><\/span> or <span style=\"color: #0000ff;\"><em>board<\/em><\/span>\u00a0 etc (then you&#8217;ll have into your active WordPress template folder a file named <em>page-forum.php<\/em> or <em>page-board.php<\/em> etc), then <strong>to complete the procedure and get the responsive iframe height for the embedded\/iframed phpBB into WordPress template page you need<\/strong>:<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-x-large-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>overall_footer.html code<\/strong><\/mark><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Open with a text editor <strong>your phpBB template<\/strong> file <em>overall_footer.html<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>and<\/strong> just before the closing <strong><em>&lt;\/body&gt;<\/em><\/strong> tag, <strong>add this code<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- IF not S_IS_BOT --&gt;\n&lt;script type=\"text\/javascript\"&gt;\n\/\/ START MANDATORY CHANGES\nvar w3allAllowDomain = 'https:\/\/w3host.com'; \/\/ MANDATORY! Set\/Change this value to fit the absolute domain (DO NOT ADD\/INCLUDE final slash here)\nvar wordpress_url_page_forum = 'https:\/\/w3host.com\/forum'; \/\/ MANDATORY! (DO NOT ADD\/INCLUDE final slash here) Url that point to the wordpress forum page\nvar w3all_custom_wp_w3fancyurl = 'w3'; \/\/ MANDATORY! If changed the default w3 to have 'fancy URL' query string into the related WP plugin admin option, then change this value to match the same as it is the fancy URL setting\n\/\/ END MANDATORY CHANGES\n\nvar w3allappend = false;\nvar w3all_BoardUrl = \"{BOARD_URL}\";\nw3all_BoardUrl = w3all_BoardUrl.slice(-1) != '\/' ? w3all_BoardUrl + '\/' : w3all_BoardUrl;\n\nfunction w3allNormalize_phpBBUrl(href){\n\/\/ try to 'normalize' passed relative links: needed all after last slash \/\n\/\/ exception are kind of passed urls like: \/phpbb323\/app.php\/help\/faq\n\/\/ and if SEO mods that may assign some different kind of links values\n\/\/ by the way, SEO absolute urls http(s) should be (all?) already considered here ...\nvar phpbbRUrl = href.split(\/^.+?(\\w+.+)$\/);\nif( href.indexOf('app.php') &gt; -1 ){ \/\/ since the previous do not 'normalize' this type of passed value (and may miss something else)\n   phpbburl = href.split(\/^.+?(app\\.php.+)$\/);\n   w3allappend = phpbburl&#91;1];\n } else if ( \/^https?\/ig.exec(href) !== null ){ \/\/ absolute http(s) passed: try to 'normalize' a possible seo mod\n   phpbburl = href.split(w3all_BoardUrl);\n   w3allappend = phpbburl&#91;1];\n } else if ( phpbbRUrl&#91;1] &amp;&amp; phpbbRUrl&#91;1].length &gt; 1 ){ \/\/ 'normalize' any other\n   w3allappend = phpbbRUrl&#91;1];\n } else if ( phpbbRUrl&#91;0].length &gt; 1 ){\n   w3allappend = phpbbRUrl&#91;0];\n   }\n\/\/ ... if still not normalized\nif(\/^\\W\/ig.exec(w3allappend) !== null){\n  w3allappend = w3allappend.split(\/^.+?(\\w+.+)$\/);\n  if(w3allappend&#91;1]){\n    w3allappend = w3allappend&#91;1];\n  }\n  if ( w3allappend&#91;1] &amp;&amp; w3allappend&#91;1].charAt(0) == '\/' ){\n    w3allappend = w3allappend&#91;1].substr(1);\n  }\n}\nreturn w3allappend;\n}\n\n$(document).on(\"click\", \"a\", function(e) {\n  var href = $(this).attr(\"href\");\n  var w3all_onview_attach = (href.indexOf('file.php') &gt; -1);\n\nif( this.getAttribute('target') !== null ){\n  e.preventDefault();\n  window.open(href,'_blank');\n return;\n}\n\nif ( href.charAt(0) == '#' || href.indexOf('\\.\/download\\\/file\\.php') &gt; -1 ){ return; }\n\n\/\/ external link?\nif ((this.href.indexOf(w3all_BoardUrl) &gt; -1) != true){\n if(\/^(f|ht)tps?:\\\/\\\/\/i.test(href))\n {\n  e.preventDefault();\n  parent.location.replace(href);\n return;\n }\n}\n\/\/ admin ACP?\nif ( \/\\\/adm\\\/\/ig.exec(href) !== null )\n{\n  e.preventDefault();\n  parent.location.replace(href);\n  return;\n}\n\nif ( href.indexOf('view=print') &gt; -1 !== false || \/\\\/adm\\\/\/ig.exec(href) !== null )\n{\n e.preventDefault();\n window.open(href,'_blank');\n return;\n}\n\nif ( href.indexOf('quickmod') &gt; -1 ) {\n   w3allNOappend = true;\n    return;\n}\n\nif( \/posting\\.php\\?mode=&#91;reply|post|bump]\/ig.exec(href) !== null || \/mcp\\.php\\?\/ig.exec(href) !== null ){\n  w3allNOappend = true;\n}\n\nif(w3all_onview_attach !== false){\n e.preventDefault();\n window.open(href,'_blank');\n return;\n}\n\nw3allappend = w3allNormalize_phpBBUrl(href);\n\nif ('parentIFrame' in window){\n  if( typeof w3allNOappend == 'undefined' || w3allNOappend == false ){\n    window.parentIFrame.sendMessage(w3allappend);\n  }\n }\n});\n\n\/\/ w3all UPDATES for phpBB events\n\nif(window.self !== window.top){\n\n\/\/ Lightbox scroll fix, #phpbb_confirm scroll fix, #phpbb_alert scroll fix, #bbcode_wizard + abbc3_button fix\n$(\".dropdown-contents-cp,.abbc3_button,.postimage,.dropdown-contents li a,#add_files\").on(\"click\", function(e) {\n  var g = $($(this.getBoundingClientRect().top));\n  var t = parseInt(g&#91;Object.keys(g)&#91;0]]);\n  $(\"#bbcode_wizard,#phpbb_alert,#phpbb_confirm\").animate({top: t+'px'}, 100);\n\n const w3LBfixImgs = setInterval(exec_w3LBfixImgs, 500); \/\/1000\n function exec_w3LBfixImgs() {\n   var imh  = parseInt($('.lb-image').css(\"height\"));\n   var lbOh = parseInt($('#lightboxOverlay').css(\"height\"));\n   var totH = imh+t;\n    if(totH &lt; lbOh){\n      $(\"#lightbox\").animate({top: t+'px'}, 400);\n    } else {\n      t = parseInt((lbOh-imh)-100);\n      $(\"#lightbox\").animate({top: t+'px'}, 400);\n    }\n   clearInterval(w3LBfixImgs);\n }\n});\n\nvar pmn = \"{PRIVATE_MESSAGE_COUNT}\";\nvar w3all_phpbb_u_logged = \"{S_USER_LOGGED_IN}\";\n\nvar hash = window.location.hash.substr(1);\n\nif( hash == 'unread' ){\n var postN = 1;\n $( \"h3 &gt; a\" ).each(function (e) {\n  ns = this.href.split('#p');\n  if( typeof ns != 'undefined' &amp;&amp; \/viewtopic.php\\?p=\/ig.exec(this.href) != null ){\n   if(ns&#91;1] &gt; postN){\n     w3lh = ns&#91;1];\n    }\n  }\n })\n\n if( typeof w3lh != 'undefined' ){\n  hash = \"p\" + w3lh;\n }\n}\n\n$( document ).ready(function() {\n \/\/ fix vertical iframe centered in certain cases\n   var bd = document.getElementsByTagName(\"body\");\n   var t = document.getElementById(bd&#91;0].getAttribute(\"id\"));\n\n   if( typeof t != 'undefined' || t != false )\n   {\n         t.setAttribute(\"style\", \"position:fixed;top:0;left:0;width:100%;padding:0\");\n      \/\/t.setAttribute(\"style\", \"position:fixed;top:0;left:0;width:100%;\");\n   }\n});\n\nif( typeof w3allNOappend == 'undefined' || w3allNOappend == false )\n{\n $( window ).on( \"load\", function()\n {\n  location.hash = \"#\" + hash;\n  if( ! $(window.location.hash).length || location.hash.length &lt; 2 ){\n    var w3all_lochash = 0;\n  } else {\n    var w3all_lochash = $(window.location.hash).offset().top;\n  }\n\n  var w3appendevents = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + w3all_lochash;\n\n  window.parent.postMessage(w3appendevents, w3allAllowDomain);\n\n });\n}\n} \/\/ END if(window.self !== window.top){\n&lt;\/script&gt;\n&lt;div data-iframe-size=\"\" style=\"height:0;max-height:0;border:0;margin:0;padding:0;\"&gt;&lt;div&gt;\n&lt;script type=\"text\/javascript\" src=\"https:\/\/forum.w3host.com\/iframe-resizer.child.js\"&gt;&lt;\/script&gt;\n&lt;!-- ENDIF --&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>after you added this code into the phpBB overall_footer.html<\/strong> <span style=\"color: #ff0000;\"><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>edit following lines<\/strong>:<\/mark><\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ START MANDATORY CHANGES\nvar w3allAllowDomain = 'https:\/\/w3host.com'; \/\/ MANDATORY! \/\/ Set\/Change this value with your WordPress URL (example: https:\/\/axew3.com)\nvar wordpress_url_page_forum = 'https:\/\/w3host.com\/forum'; \/\/ MANDATORY! \/\/ (DO NOT ADD\/INCLUDE final slash here) Url that point to your wordpress forum page\nvar w3all_custom_wp_w3fancyurl = 'w3'; \/\/ MANDATORY! If you changed the default w3 to have 'fancy URL' query string into the related WP plugin admin option, then change this value to match the same as it is the fancy URL setting\n\/\/ END MANDATORY CHANGES<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">change the <strong><em>w3allAllowDomain<\/em><\/strong>  var value to fit your WP URL.<span style=\"color: #ff0000;\"><br><\/span>Now check the other line to change:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var wordpress_url_page_forum = 'https:\/\/w3host.com\/forum'; \/\/ MANDATORY! (DO NOT INCLUDE final slash here) Url that point to your wordpress forum page (without final slash)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color: #ff0000;\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">MANDATORY!<\/mark><\/span> change value on this line that need to point to the URL of the WordPress created\/named forum page (do not add final slash and change http or https as needed) <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If needed, change the <em>w3<\/em> value of the line<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>var w3all_custom_wp_w3fancyurl = 'w3';<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>to fit the value<\/strong> that you may changed (default is <em>w3<\/em>) into the plugin admin, where there is the option: <em><strong>Fancy URL query string for the WordPress page forum that embed phpBB<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Finally,<\/strong><strong> check this line<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\" src=\"https:\/\/forum.w3host.com\/iframe-resizer.child.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">in the code you added (penultimate line): it should point to the <strong><em>iframe-resizer.child.js<\/em><\/strong><em> file that <strong>you&#8217;ll go to add into the phpBB root folder <\/strong><\/em> or somewhere else: the file can be found into the folder <code>\/wp-content\/plugins\/wp-w3all-phpbb-integration\/addons\/<strong>iframeresizer<\/strong><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the absolute URL (<strong>http<\/strong> or <strong>https<\/strong>, and adjust the url to fit your needs). It&#8217;s mandatory or the resizer won&#8217;t work<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">src=\"https:\/\/www.yoursite.com\/your-phpbb-folder\/iframe-resizer.child.js\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">AFTER EDITED, save and load the modified <em>overall_footer.html<\/em> into your phpBB template folder, overwriting the default one (or rename the default into something else), and so<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">load into the phpBB root folder (or where you choose), the file <strong>iframe-resizer.child.js<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After this, <\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>phpBB require to recompile the template<\/strong><\/mark> files, or the applied modifications will not be updated. Open phpBB ACP, and so under:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Server Configuration -&gt; Load settings -&gt; Recompile stale style components<\/em> <\/strong> set to <strong>YES<\/strong> and save. Load one time the frontend to see the result and leave as is at moment, especially if you follow adding the code into the <strong>overall_header.html<\/strong> so to redirect any phpBB URL request to the iframed phpBB into the WordPress page: after tested that all work fine, you&#8217;ll return to ACP, resetting to NO and save. This step is needed to load\/rebuild template modifications in phpBB if there are, <strong>but this option should be ever set to NO<\/strong> into an online\/production site so to let the cache system to do his work. It should be set to yes only while on testing\/devel time so to apply modifications on phpBB templates files (or your phpBB will result to be slower because in this state it is not using the cache for the template parsing\/rendering).<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-x-large-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>overall_header.html code<\/strong><\/mark><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If you want to redirect any phpBB URL request to your WordPress forum page follow this step:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open with a text editor <strong>your phpBB template<\/strong> file <em>overall_header.html<\/em> and may <strong>immediately after<\/strong> the closing <em>&lt;\/title&gt;<\/em> tag <strong>add the following code:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- IF not S_IS_BOT --&gt;&lt;script&gt;\n\/\/ START MANDATORY CHANGES\nvar wordpress_url_page_f = 'https:\/\/subdomain.w3host.com\/wordpress\/forum'; \/\/ MANDATORY! \/\/ (DO NOT ADD\/INCLUDE final slash here) Url that point to your iframed wordpress forum page\nvar w3all_custom_wp_w3fancyurl = 'w3' \/\/ MANDATORY! If you changed w3 to have 'fancy URL' query string for the WP page forum, then change this value to match what your fancy URL setting is after you changed it on plugin admin page\n\/\/ END MANDATORY CHANGES\n\nfunction w3all0Normalize_phpBBUrl(u){\n\tvar bu = \"{BOARD_URL}\";\n\tw3allappend = \"{BOARD_URL}\"; \n if ( \/^https?\/ig.exec(u) !== null ){ \n   phpbburl = u.split(bu);\n\t w3allappend = phpbburl&#91;1];\n } \nif(\/^\\W\/ig.exec(w3allappend) !== null){\n \tw3allappend = w3allappend.split(\/^.+?(\\w+.+)$\/);\n \tif(w3allappend&#91;1]){\n \t\tw3allappend = w3allappend&#91;1];\n \t}\n \tif ( w3allappend&#91;1] &amp;&amp; w3allappend&#91;1].charAt(0) == '\/' ){\n \t\tw3allappend = w3allappend&#91;1].substr(1);\n \t}\n}\nreturn w3allappend;\n}\n \nif ((window.self !== window.top) != true) {\n  if(\/adm\\\/\/ig.exec(window.location.href) === null){ \/\/ avoid x ACP \n  var w3all_r = window.location.href.replace(\/sid=.+\/gi, '');\n w3all_r = w3all0Normalize_phpBBUrl(w3all_r);\n if(\/adm\\\/index\\.php\/ig.exec(w3all_r) == null){\n  hrefEnc = window.btoa(unescape(encodeURIComponent(w3all_r)));\n  href0 =  wordpress_url_page_f + '\/?'+ w3all_custom_wp_w3fancyurl + '=' + hrefEnc;\n  document.location.replace(href0);\n }\n}}\n\/\/ END force w3all redirect\n&lt;\/script&gt;\n&lt;!-- ENDIF --&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On the added code change the URL value, that should point to your WP forum page:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>var wordpress_url_page_f = 'https:\/\/subdomain.w3host.com\/wordpress\/forum';<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">it need to point to the <strong>WordPress<\/strong> iframed <strong>forum page<\/strong>: DO NOT ADD final slash and setup as <em>http<\/em> or <em>https<\/em> as needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change the default <em>w3<\/em> value of the line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">var w3all_custom_wp_w3fancyurl = 'w3'<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">to fit the value that you may changed into the plugin admin, where there is the option: <em><strong>Fancy URL query string for the WordPress page forum that embed phpBB<\/strong><\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reset to No the Recompile phpBB template option after some test. So before to follow <strong>READ THE NEXT IMPORTANT NOTE<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>NOTE:<\/strong><\/mark> if you need to disable\/edit the <strong>overall_header.html<\/strong> javascript code for some reason and you cannot access the phpBB at the real URL because there is a forced redirect to the WP forum page, after applied the <em>overall_header.html<\/em> code, and you have reset the Recompile Stale Template to NO (so you are always redirected to the WP forum page) <strong>you can&nbsp;disable the javascript on your browser<\/strong>, then access to the ACP and set to YES the <em>Recompile Stale Template<\/em> option to yes. It is also !important to remember this if in trouble with login, and recompile Stale Template option in phpBB is set to Off at this time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the iframe do not display and you get mixed insecure content on console, you have to fix it doing this: open your WP <strong>header.php<\/strong> template file, and may just before others header meta tags add the follow:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;meta http-equiv=\"Content-Security-Policy\" content=\"upgrade-insecure-requests\"&gt;<\/code><span style=\"color: #ff0000;\"><br><\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">For testing purpose or for any other reason<\/mark>, into the <em>overall_header<\/em> added code can be commented the line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>document.location.replace(href0);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">changing it into this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/document.location.replace(href0);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">so the requests to phpBB will not be forced\/redirected to the WP page. But you can open the WP page-forum to see the phpBB iframed result. Remember that to apply template modifications, phpBB require to recompile templates files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy your awesome WordPress phpBB template integration!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Appreciations: <a href=\"https:\/\/www.paypal.com\/paypalme\/alessionanni\/\">https:\/\/www.paypal.com\/paypalme\/alessionanni\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u00a9 2024 axew3.com<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Iframe resize library by: <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/davidjbradshaw\/iframe-resizer\" target=\"_blank\">https:\/\/github.com\/davidjbradshaw\/iframe-resizer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>V5 version (for the cool people) JS code &#8211; updated on 24 Jul 2024 shortcode files &#8211; updated on 30 Jun 2024addons\/page-forum.php &#8211; updated on 30 Jun 2024 Help steps &#8211; updated on 06 Jul 2024 NOTE: since plugin version 2.8.7&gt; WordPress phpBB iframe template integration To do an awesome Template integration by Shortcode, that&#8217;s [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[204,42,177,178,41],"class_list":["post-4599","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration","tag-iframe-code-v5","tag-phpbb","tag-phpbb-wordpress-template-integration","tag-template-integration","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/4599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/comments?post=4599"}],"version-history":[{"count":2,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/4599\/revisions"}],"predecessor-version":[{"id":11566,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/4599\/revisions\/11566"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=4599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=4599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=4599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}