url segments not propagating

mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

url segments not propagating

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post 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>
:?:
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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.
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post 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
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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.
Locked