Title: phpbb3 embedding into WP fails
Last modified: June 16, 2017

---

# phpbb3 embedding into WP fails

 *  Resolved [alexk2307](https://wordpress.org/support/users/alexk2307/)
 * (@alexk2307)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/)
 * Hi,
 * I’m running pure.mansui.com, a WoW Community Site. In Jan 2017 we installed the
   website and we integrated the forum into WP using WP_w3all. A few days ago, the
   integration didn’t work anymore. I don’t know if anything has changed on our 
   server, which has lead to the malfunction. Step-by-step redo the installation
   procedure didn’t solve the problem.
 * Do you guys have any hints for me?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235195)
 * hello, can you please link the wp page used x phpBB embedded iframe?
 * p.s The new coming 1.7.2 resolve many problems about iframe, make it very easy
   to be installed, remove the modal login (not more needed!) and fix some bug about
   correct redirect.
 *  Thread Starter [alexk2307](https://wordpress.org/support/users/alexk2307/)
 * (@alexk2307)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235287)
 * Hello,
 * the page is: [https://pure.mansui.com/](https://pure.mansui.com/)
 * Integration Page is [https://pure.mansui.com/community/](https://pure.mansui.com/community/)
   
   Forum is found under [https://pure.mansui.com/forum](https://pure.mansui.com/forum)
 *     ```
       vi ./styles/black/template/overall_footer.html
   
       [...]
       <!-- EVENT overall_footer_body_after -->
       <script type="text/javascript">
       // x SUBDOMAIN install read this:
       // if WP installed on subdomain (wpsite.mydomain.com) and phpBB on domain (mydomain.com/myforum)
       // to avoid javascript 'Origin Error':
   
       document.domain = 'pure.mansui.com'; // un-comment and set this value to YOUR domain (ex. axew3.com) if js error "Blocked a frame with origin ... from accessing a cross-origin frame ..." on including the iframe, comment out this line and the same line you'll find into page-forum.php
   
         $(document).on("click", "a", function() {
          var href = $(this).attr("href");
         $(this).attr("href", href.replace('iframe=true&', '')); // remove! or get loop in htaccess if our var has been appended before ...
          var w3allappend = href;
          var w3all_parent_element_id = $(this).parent().get( 0 ).id; // detect click x ... (ex: return ID smiley-box, onclick post smiles) ... // detect and avoid/allow certain behaviors
          var w3all_onclick_smile  = (w3all_parent_element_id.indexOf('smiley-box') > -1);
          var w3all_onview_topic  = (href.indexOf('viewtopic.php') > -1);
          var w3all_onview_attach  = (href.indexOf('file.php') > -1);
          var w3all_onview_post = /#p[0-9]+/ig.exec(href);
          var w3all_ck_quickmod  = (href.indexOf('quickmod') > -1);
          var w3all_onreply_topic  = (href.indexOf('mode=reply') > -1);
          var w3all_ck_onindex  = (href.indexOf('index.php') > -1);
          var w3all_onsubmit_post = /^post?/ig.exec(href);
   
       // the order of evalutation is important here // to be improved
       if (w3all_ck_quickmod == true ){
                if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend + "#nscroll");
       } else if ( w3all_ck_onindex == true || w3all_onreply_topic == true ){
               if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend + "#scroll");
         } else if ( w3all_onsubmit_post == true || w3all_onclick_smile == true || w3all_onview_topic == true || w3all_onview_post == true || w3all_onview_attach == true ) {
                       if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
         } else {
               if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
         }
       });
   
       $(document).on('click', '.quick-login', function(){
       var w3allappend = "phpbb_quick_login";
       if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend+'#scroll');
       });
   
       // TO ACTIVATE phpBB lightbox events remove /* and */ here below
       /*
       $(document).on('mouseup', '.postimage', function(){
        //var w3allappend = "getw3all_lightbox";
        if ('parentIFrame' in window) window.parentIFrame.scrollToOffset(0,0);
        //if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
       });
       */
   
       </script>
       <script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script>
       </div>
       </body>
       </html>
       ```
   
 * hth!
 * Please let me know, if you need more info!
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235397)
 * there is no code of page-forum.php
 * have you built it into wp_w3all admin config page?
    if not, set **community**
   as name for the page forum to be created and build it into wp_w3all admin config
   page. **This is mandatory** even if the file is added manually into wp template
   folder … so after the above, open folder _**wp-content/themes/nameOfYourTheme/**_
   should exist inside, a template file named **page-community.php** if it not exist,
   open folder _**wp-content/plugins/wp-w3all-phpbb-integration/addons**_ inside
   you’ll find the file _page-forum.php_ copy this file and paste it into the folder_**
   wp-content/themes/nameOfYourTheme/**_ RENAME it into **_page-community.php_**
 *  Thread Starter [alexk2307](https://wordpress.org/support/users/alexk2307/)
 * (@alexk2307)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235663)
 * Thank You!
 * The page was missing… I don’t know why or how, since no one deleted something
   on the webspace.
 * The creation was obviosly denied to permission restrictions, so fixing the file
   permissions with chmod and changing the right owner.group with chown did the 
   neccessarily rapair. After that I startet Rebuild Page Template and now it works.
 * Thank you very much for your fast support!
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235798)
 * Glad that it have return to work! 1.7.2 is coming and the documentation/code 
   about iframe mode will be updated to be more clear (despite my english) and easy.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘phpbb3 embedding into WP fails’ is closed to new replies.

 * ![](https://ps.w.org/wp-w3all-phpbb-integration/assets/icon-128x128.png?rev=3375511)
 * [WP w3all phpBB](https://wordpress.org/plugins/wp-w3all-phpbb-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-w3all-phpbb-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [axew3](https://wordpress.org/support/users/axewww/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/phpbb3-embedding-into-wp-fails/#post-9235798)
 * Status: resolved