TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 12:52:32 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 63
  • Total: 63

Recent Topics Block

Started by b4pjoe, August 08, 2014, 02:29:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b4pjoe

Link to my site: not needed
SMF version: 2.0.8
TP version: 1.108
Default Forum Language: English
Theme name and version: Inferno 2.0
Browser Name and Version: Safari 7.0.5 / Google Chrome 36.0.1985.125 / Firefox 31.0
Mods installed:Sitemap
TinyPortal
Aeva Media
httpBL
Add IP2Location to Track IP
SMF 2.0.8 Update
Bookmarks
Recent Topics On Board Index
Recent Topics On "Recent Posts" Page
Related Error messages: None.

With the Recent Topics Block when you click the "New" link it takes you to the LAST UNREAD post in a thread instead of taking you to the FIRST UNREAD post in that thread. Which means you have to start backtracking the recent posts to find the FIRST UNREAD post. It would be ideal if the link took you to the FIRST UNREAD post. Is there a way to change this behavior?

bloc

"New" works like this in SMF too, its not actually "newest" as such, just what you have not read yet. So if you visited the topic once, the next time only the posts posted after that date will be "new" to you - hence this behavior.

Recent Topics block uses SSI.php so its not easily changed.

b4pjoe

I have just recently changed from PortaMX to TinyPortal and it works the way I had described in PortaMx so I was hoping it was possible to change it. I'll probably survive though. :) Thanks for the info.

b4pjoe

After thinking about this I remembered that I had this same problem with PortaMX at first and they changed it to work the way I had suggested which is for the text link to go to the last new post and the "New" button link to go to the first new post which the SMF ssi function does. When I create a php block and just enter:

ssi_recentTopics(15);

the links work as I would like them too.

The text link URL is:

mydomain dot com/index.php?topic=2193.msg254960;topicseen#new

which is the last unread post

while the "New" button link is:

mydomain dot com/index.php?topic=2193.msg252484;topicseen#new

which is the first unread post.