View Full Version : User Posts- Read/Unread
DanKD
09-06-2004, 11:04 PM
By default when a user posts in a thread and then visits the forum, it shows that thread as unread. How do I change it so that if it's the user that posts, the thread is marked as read?
Help is appreciated.
DanKD
09-08-2004, 04:36 PM
Wow, no one with any ideas? I've seen a few vbulletin sites that did this.
CarCdr
09-08-2004, 04:44 PM
You are not worried that while you are entering a post, someone else is as well? If your post hits the database after any others since you last visited the thread, you will not know there are unseen/new posts in the thread.
Of course, you could make the hack you require more complicated by including a check for this case.
If you just want any reply to mark the thread as viewed (not new), then try this:
In version 3.0.3, showthread.php, CHANGE line 1373 from:
if (!$posted AND $displayed_dateline AND $displayed_dateline > fetch_bbarray_cookie('thread_lastview', $threadid))
to:
if (/* !$posted AND */ $displayed_dateline AND $displayed_dateline > fetch_bbarray_cookie('thread_lastview', $threadid))
DanKD
09-09-2004, 09:50 PM
Thanks! In our field, the two other company sites that use vbulletin both use this method, so it's what our customers are used to.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.