Refresh in iframe mode:Can we stay on topic somehow?

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Refresh in iframe mode:Can we stay on topic somehow?

Post by axew3 »

So, we can follow increasing the power of this pattern, for any phpBB link we like. The new pattern for any post and topic called within iframe and correct on refresh is like this:

Code: Select all

  var w3matches = /viewtopic\.php\?.*([0-9]+).*&(p|t)=([0-9]+)(&start=|#p)?([0-9]+)?/ig.exec(w3all_passed_url);
the new page to rebuild or update on template folder:
page-(forum-board-etc).php1.2.8_ok1.zip
(3.24 KiB) Downloaded 230 times
falcon
User www
User www
Posts: 76
Joined: Tue Apr 05, 2016 6:56 pm

Re: Refresh in iframe mode:Can we stay on topic somehow?

Post by falcon »

Nice! TY maestro.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Refresh in iframe mode:Can we stay on topic somehow?

Post by axew3 »

ah... i've click on the top wp bar, the black here on top, when the post is with many replies and i need to scroll auto to top: it scroll if you click on bar and not in links.... first time i see this behavior of the sixteen theme :) comfortable
falcon
User www
User www
Posts: 76
Joined: Tue Apr 05, 2016 6:56 pm

Re: Refresh in iframe mode:Can we stay on topic somehow?

Post by falcon »

:D me to... And work for whole WP site.

Let`s fix maybe last thing on this plugin, maybe is connected with refresh or is for new topic (if you want move post)
What is the problem? "Go back" browser button.

1. I`m at WP homepage
2. click on Forum menu button (in address bar is: http://238-lbae.com/forums/)
3. click on some forum (in address bar is: http://238-lbae.com/forums/) and topic list is opened
4. clisk on some topic (in address bar is: http://238-lbae.com/srpska-virtualna-es ... iewtopic=9) and i`m on first page of that topic
5. click on last page (in address bar is: http://238-lbae.com/srpska-virtualna-es ... &start=110) and i`m on last page of that topic
6. click on other page (in address bar is: http://238-lbae.com/srpska-virtualna-es ... 9&start=90) and i`m on that page

So now i want to back one page. [ here you maybe mean when on viewtopic and in iframe : this note added by axew3 ]

- "click to go back" - browser button and expected result must be: (5. click on last page (in address bar is: http://238-lbae.com/srpska-virtualna-es ... &start=110) and i`m on last page of that topic) but no, i`m stuck at step 6. (in browser address bar now is: http://238-lbae.com/forums/?viewforum=7 ... 9&start=90). Last viewed page is just refreshed or reloaded again.
- click again on "click to go back" - browser button - nothing happens but changed url in address bar (now is: http://238-lbae.com/srpska-virtualna-es ... &start=110)
- click again on "click to go back" - browser button - now i`m at last page of that topic (in address bar is: http://238-lbae.com/forums/?viewforum=7 ... &start=110)
- click again on "click to go back" - browser button - i`m on same page, nothing happens but changed url in address bar (now is: http://238-lbae.com/srpska-virtualna-es ... iewtopic=9)
- click again on "click to go back" - browser button - now i`m on first page of that topic (in address bar is: http://238-lbae.com/forums/?viewforum=7&viewtopic=9)
- click again on "click to go back" - browser button - i`m again on first page of that topic (in address bar is: http://238-lbae.com/forums/)
- click again on "click to go back" - browser button - i`m on index page
- click again on "click to go back" - browser button - i`m on WP homepage

Sorry for to many links but i don`t know how to explain and you can follow all steps at my site.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Refresh in iframe mode: Can we stay on topic somehow?

Post by axew3 »

ah ok ... got it, i know ... it is very easy
Now stay on topic on refresh, and you should can return back on browser history also when in viewtopic iframe forum page:

[attachment=0]page-(forum-board-etc).php1.2.8_ok2.zip[/attachment]
Attachments
page-(forum-board-etc).php1.2.8_ok2.zip
(3.24 KiB) Downloaded 273 times
falcon
User www
User www
Posts: 76
Joined: Tue Apr 05, 2016 6:56 pm

Re: Refresh in iframe mode:Can we stay on topic somehow?

Post by falcon »

Good job! TY! ;)
Post Reply