SMF Development > Bug Reports

New post icons on board index when unread replies span more than one page

(1/2) > >>

iwords:
I've noticed a problem with the new post indicators displayed on the board index.

If there are sufficient new posts to a thread since a user's last visit to cause it to spill across onto another page, the new post indicators on the board index are not being reset correctly.

I've noticed this on two forums I run, and in testing locally I can reproduce it on a fresh install of SMF with the default theme and no plug-ins installed.

To re-create the problem:-

* Start a new thread and make a few posts.
* Log-in as another user, and click 'Show unread posts since last visit.'
* Click the 'new' icon on the new thread to read the posts made so far.
* If you return to the board index, you'll see that the new post indicator has been turned off for that section, just as it should be.
* Now log-in as the original user, return to the thread, and make several more replies so that the thread now spills across to two pages.
* Log-in as the second user, and click 'Show unread posts since last visit' again.
* Click the 'new' icon on the updated thread, and you'll be taken to your first unread post on page 1.
* Click on the link for page 2, and continue to read the rest of the posts in the thread.
* If you return to the board index, you'll see that the new post indicator is still lit for that section, despite having read all new posts.  If you click 'Show unread posts since last visit' again, it will confirm that there are no unread posts.To reset the board indicator, you have to click on that board's name, or use 'Mark all messages as read'.

Just to clarify, the problem only arises when the unread posts span more than one page.  I would guess that either the links for the page numbers need to be amended when viewing unread posts to include ?topicseen or something similar or, less preferrably, SMF should mark the thread as read when viewing the first page of unread replies.

iwords:
Out of interest, has anyone else been able to replicate this?

I've just tried again on a different platform (Windows, this time, different version of MySQL) and the issue still arises.

emanuele:
Hello iwords and thank you for the report! :)

I can indeed replicate this behaviour.

Due to the way SMF handles the board indicator I'm not sure if this is a bug or not, for sure is an inconsistency.

* emanuele goes check how this is working and see if he can do anything.

iwords:

--- Quote from: emanuele on April 12, 2012, 07:59:44 AM ---* emanuele goes check how this is working and see if he can do anything.
--- End quote ---

Hi emanuele,

Did you manage to find out anything further about this one?

MrPhil:
Are you simply returning to the index page (via Back button), or are you actually reloading it? If you just return to it, your browser may use a cached copy which still shows "New". If you reload the page (refresh it) does it still show "New"?

Navigation

[0] Message Index

[#] Next page

Go to full version