TinyPortal

Development => Support => Topic started by: b4pjoe on August 08, 2014, 02:29:08 AM

Title: Recent Topics Block
Post by: b4pjoe on August 08, 2014, 02:29:08 AM
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?
Title: Re: Recent Topics Block
Post by: bloc on August 08, 2014, 06:03:24 PM
"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.
Title: Re: Recent Topics Block
Post by: b4pjoe on August 09, 2014, 01:09:23 AM
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.
Title: Re: Recent Topics Block
Post by: b4pjoe on August 09, 2014, 05:41:41 PM
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.