Advertisement:

Author Topic: "New posts" icon should stay when new posts are not read  (Read 4569 times)

Offline Wolpo

  • Semi-Newbie
  • *
  • Posts: 22
"New posts" icon should stay when new posts are not read
« on: September 25, 2015, 02:46:48 AM »
Hello,


in SMF 2.0.10 and before, the "New posts" icon is shown in the respective board title line on the boards index page whenever a new post exists on that board.

That's fine.


When I click on this board title to open this board, each new post has a "NEW" icon.

That's fine too.


However, when I now click on the board index to re-open the board index page, the "New posts" icon is replaced by the "No new posts" icon. I think this is counterintuitive.

I think the "No new posts" icon should appear only when I've really read all new posts on that board, i.e. when all "NEW" icons are removed from the posts on that board.

Currently, when surfing on the forum by link-clicking (not by browser-back-clicking) I can never rely on the "No new posts" icon because there is always a chance that some NEW posts still exist on that board.


What do you think?


Regards,

Wolpo

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: "New posts" icon should stay when new posts are not read
« Reply #1 on: September 25, 2015, 07:09:09 AM »
That happens on purpose and it's due to performance improvement. It's quite expensive to know if there are real unread posts or not inside a board, thus the "soft approach" that SMF ships with.

You can use this to fix the behavior, do note the performance concerns though ;)
http://custom.simplemachines.org/mods/index.php?mod=3380
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Wolpo

  • Semi-Newbie
  • *
  • Posts: 22
Re: "New posts" icon should stay when new posts are not read
« Reply #2 on: September 25, 2015, 10:09:16 AM »
Thanks! That's exactly what I was looking for.

I did asssume it's done like this on purpose for performance reasons. However, I didn't expect the additional costs were so significant. The same check has to be performed whenever the main page has been clicked at session start, and it is always shown without delay.

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: "New posts" icon should stay when new posts are not read
« Reply #3 on: September 28, 2015, 11:57:39 AM »
SMF tracks whether you've "read" a board by comparing the time when you last viewed the board (or when you clicked the "Mark as Read" button on the board index) with when the last post within a board was made. Trying to track whether you've viewed every single post in every single topic in all the boards you can see would be a huge pain, especially on larger forums.
Michael Eshom
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org