Redirect to the lastest post?
3 posters
Page 1 of 1
Redirect to the lastest post?
My forum: http://1000sunny.forumvi.com/
ver: Phpbb3
-----------------------
Is there any script to help me solve a problem of the link of a topic will lead to its latest post/page but not the #1post/page
I don't want to just use the small icon lead to the latest post. But just click to the link of topic title and redirect right to the latest.
ver: Phpbb3
-----------------------
Is there any script to help me solve a problem of the link of a topic will lead to its latest post/page but not the #1post/page
I don't want to just use the small icon lead to the latest post. But just click to the link of topic title and redirect right to the latest.
Last edited by Yuushishio on March 4th 2016, 2:52 pm; edited 1 time in total
Re: Redirect to the lastest post?
It depends on which area of the topic links you want to modify. Generally speaking you can add the following query to the end of a topic URL to go directly to the most recent post.
and a quick example of modifying the topic links.
- Code:
?view=newest
and a quick example of modifying the topic links.
- Code:
$(function() {
for (var a = $('a[href^="/t"]'), i = 0, j = a.length; i < j; i++) a[i].href += (/\?/.test(a[i].href) ? '&' : '?' ) + 'view=newest';
});
Re: Redirect to the lastest post?
@Ange Tuteur it worked but it caused another big problem.
Now when I click to a topic, it link to the latest (newest post) but the pagination becomes not working. I can't click the number to go back to the previous page. When I click it still lead me to the latest
Now when I click to a topic, it link to the latest (newest post) but the pagination becomes not working. I can't click the number to go back to the previous page. When I click it still lead me to the latest
Re: Redirect to the lastest post?
That's because the script needs to be isolated to a specific area. Allow me to reiterate :
That is ; where do you want this script to work, specifically. ( e.g. topiclist, last post, etc.. )It depends on which area of the topic links you want to modify.
Re: Redirect to the lastest post?
I want it to apply in home page and in every forum.
Just click to a title of a topic link, and it lead to the latest post of that topic.
Actually your last code worked well but as I say, it also made the pagination bar lost control.
So please help me fix it.
Ahh sorry ! I get it now. I just have to choose where to apply it in the Java script module.
Thank you very much.
Problem solved.
Just click to a title of a topic link, and it lead to the latest post of that topic.
Actually your last code worked well but as I say, it also made the pagination bar lost control.
So please help me fix it.
Ahh sorry ! I get it now. I just have to choose where to apply it in the Java script module.
Thank you very much.
Problem solved.
Re: Redirect to the lastest post?
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Lastest post won't show
» Post Redirect
» Redirect from "Arcade" to post
» Help with Redirect.
» Log in Redirect
» Post Redirect
» Redirect from "Arcade" to post
» Help with Redirect.
» Log in Redirect
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum