Page 1 of 8

url segments not propagating

Posted: Wed Oct 12, 2016 2:41 pm
by mikotoiii
Hey, not sure if this has been covered or not, but I noticed that my urls do not change like yours do, so there's not any url re-writing happening when you change pages in the forums. This makes linking to a particular topic impossible. Just wondering if you might have some insight as to how to get that working.

Re: url segments not propagating

Posted: Wed Oct 12, 2016 3:12 pm
by axew3
url segments not propagating
there are some points that need to be fixed about, but you report that your page not return same as here, this can be the reason:

or you have not rebuild page-forum.php that has been changed respect older versions, depend when you have rebuilt/build it (or you have copy/paste it into your WP template folder) OR
your overall_footer.html of phpBB template do not contain the follow code, as explained here
https://www.axew3.com/w3/2016/02/embed-p ... esponsive/

Code: Select all

<script type="text/javascript">

$(document).on('mouseup', '.postimage', function(){
      var w3allappend = "getw3all_lightbox";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});

  $(document).on("click", "a", function() {
   var href = $(this).attr("href");
   var w3allappend = href;

 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);

});
</script>
<script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script>
:?:

Re: url segments not propagating

Posted: Wed Oct 12, 2016 3:34 pm
by mikotoiii
Looks like I might have been using an older version of the code from overall_footer:

Code: Select all

<!-- EVENT overall_footer_after -->
<script type="text/javascript">

$(document).on('mouseout', '.postimage', function(){
      var w3allappend = "getw3all_lightbox";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});

  $(document).on("click", "a", function() {
   var href = $(this).attr("href");
   var w3allappend = href;

 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);

});
</script>
<script type="text/javascript" src="./iframeResizer.contentWindow.min.js" defer></script>
<!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
{$SCRIPTS}

<!-- EVENT overall_footer_body_after -->
I'll try the one you posted first. Also I rebuild my template every time I update the plugin.

Re: url segments not propagating

Posted: Wed Oct 12, 2016 3:55 pm
by mikotoiii
So none of that seemed to help, my iframe is still responsive, and that all works, but the urls still do not re-write.

Re: url segments not propagating

Posted: Thu Oct 13, 2016 8:34 am
by axew3
By the way you'll have recompile of course phpBB template also after the change on overall_footer.html if you have change code on it. But this was not the problem as supposed, so remain only the page-forum(or board etc).php file on WP template.

This in attach is the actual page-forum.php here running, i'll check well all things after as soon i can, fixing if something was maybe lost (in case i'm sorry). P.S It is not required that at any plugin update you substitute the page-(forum or page etc).php into your WP template folder: it will be necessary only when new additions are done on it, that will be always reported in case on each release info. Please let know if this has finally resolved.
page-forum.zip
(3.38 KiB) Downloaded 208 times

Re: url segments not propagating

Posted: Thu Oct 13, 2016 1:29 pm
by mikotoiii
Gave that template a try, both from the automatic side, and by manually putting it into my template folder, and it didn't work. Made sure that my caching was turned off as well. Not sure what it could be at this point.