• Resolved smanuk

    (@smanuk)


    Hi, Sorry got another problem,

    I now have everything working good, forum and acp all resizing well till I come to making a post and then clicking on preview.

    When I click on preview it kick me out the iframe to a preview of nothing, I have looked through post on here but as of yet not found anyone with this problem or found a fix yet. I was wondering if you have come across this before and know the problem.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author axew3

    (@axewww)

    Yes! Discovered days ago. It is a bug that will be resolved as i can put eyes on it.
    The fix need to be applied into js code of page-forum.php and will be done on next coming soon release. It has been caused due to latest js additions into page-forum.php.

    Thread Starter smanuk

    (@smanuk)

    Ok, thanks for the quick reply

    Plugin Author axew3

    (@axewww)

    hello, i’m just over bugs starting resolving reported issues for next release.
    To resolve this problem, it is necessary to edit the overall_footer.html of the phpBB template, as the latest addition fail on post preview. And not maybe edit the page-forum.php as suggested. Think this is the best way to resolve.

    Open file overall_footer.html of your phpBB template.
    On code you have add for iframe, search for the following:

      $('form').on('submit', function() {
       var href = $(this).attr("action");
       var w3allappend = href;
     if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
    });

    REMOVE AND REPLACE WITH:

      $('form').on('submit', function() {
       var hhref = $(this).attr("action");
        var ck1 = '#preview';
        var ck1r  = (hhref.indexOf(ck1) > -1);
       if(ck1r == false){
        var w3allappend = hhref;
        if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
       }
    });

    Save and remember to Recompile stale style components in phpBB to apply modifications to the template.
    If any other problem come out, please report so it will be maybe fixed before the new coming release.

    The related wp_w3all installation help page about has been updated to fix this:
    embed phpBB template into WordPress -> phpBB step https://www.axew3.com/w3/2016/02/embed-phpbb-into-wordpress-template-iframe-responsive/

    • This reply was modified 7 years, 10 months ago by axew3.
    • This reply was modified 7 years, 10 months ago by axew3.
    • This reply was modified 7 years, 10 months ago by axew3.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘phpBB3 Post Preview’ is closed to new replies.