Recent topic, last posted message page
3 posters
Page 1 of 1
Recent topic, last posted message page
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : http://www.kephost.com/images/2018/02/21/question.png
Who the problem concerns : All members
When the problem appeared : Always been like this, I just want to know if it is possible to solve this somehow.
Forum link : http://0r1g1n4lt34m4rr0w.bestforumonline.com
Description of problem
Hey!So.. Many people complain about this thing that on the recent topic portal, when you click on the topic's name that a person is posted in it usually throws you to the last page. I use the "recent first" setting in my forums, so the last post that an user creates is on the first page, on the very top.
So, what I want to know that is it possible to solve that both ways it would throw the user the the very first page to the top, because it can be a little confusing.
Refering to the screenshot..
1. The Recent Topics portal. When you click on the topics name and it has multiple pages it throws you to the last. So for example, you have three pages and it throws you on the third one. But the newest message is on the top of the first page. I wish the change this in a way so that when I click on the topic's name it drops me to the first page just like it does with clicking the topic's title on the main forum (2. framed on the screenshot)
So basically I want them to throw the user on the same page, whatever way they choose to go to the newest post.
Thank you in advance,
Koala
Re: Recent topic, last posted message page
Go to the template Portal > mod_recent_topics
If you are using the scroll version search this (line 13)
and edit it with this:
If you are using the non-scroll version search this (line 40)
and edit it with this:
I just inserted this in both, inside the a tag to identify the links later: id="recent_link"
I didn't put the entire line because the forum replaces some special characters.
After doing that you will have to insert this javascript.
Name: Recent topics
Placement: In all pages
Hope it works
If you are using the scroll version search this (line 13)
- Code:
<a href="{scrolling_row.recent_topic_row.U_TITLE}"
and edit it with this:
- Code:
<a id="recent_link" href="{scrolling_row.recent_topic_row.U_TITLE}"
If you are using the non-scroll version search this (line 40)
- Code:
<a href="{classical_row.recent_topic_row.U_TITLE}"
and edit it with this:
- Code:
<a id="recent_link" href="{classical_row.recent_topic_row.U_TITLE}"
I just inserted this in both, inside the a tag to identify the links later: id="recent_link"
I didn't put the entire line because the forum replaces some special characters.
After doing that you will have to insert this javascript.
Name: Recent topics
Placement: In all pages
- Code:
/* Recent topics feature - Go to first post instead of the last one */
$(function() {
$('a#recent_link').filter(function() {
var href = this.getAttribute("href");
this.setAttribute("href", href.replace(/#(\d*)/, ''));
});
});
Hope it works
Wecoc- Forumember
- Posts : 144
Reputation : 111
Language : Catalan, Spanish, English
Similar topics
» What happened to message page "Your message has been posted..."?
» Recent topic on index page
» The posted message is too long.
» The posted message is too long
» The posted message is too long
» Recent topic on index page
» The posted message is too long.
» The posted message is too long
» The posted message is too long
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum