Python Forum
Threads always marked as read
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threads always marked as read
#5
From MyBB forums the response i got to this problem was...
Quote:Thank you for pointing to this issue!

As I already read about a third of the source files to understand the inner workings of MyBB, in the pursuit of finding out how to highlight unread posts in my MyBB threaded view project, I already wondered whether this can work:

In function mark_thread_read (in file inc/functions_indicators.php) the table mybb_threadsread 
gets set as indicated in the MyBB documentation.

However at the end of function mark_thread_read the function fetch_unread_count (in same module) gets called.
Looking at this function you can convince yourself that table mybb_posts' field "dateline" does not get queried at all.

Thus the function fetch_unread_count cannot work correctly because of that incomplete and thus incorrect query.

ATM I am busy with other things but later tonight I'll try to find time to fix that function and post a patch.
Recommended Tutorials:
Reply


Messages In This Thread
Threads always marked as read - by j.crater - Sep-19-2016, 06:46 AM
RE: Threads always marked as read - by Kebap - Sep-19-2016, 09:07 AM
RE: Threads always marked as read - by j.crater - Sep-19-2016, 09:56 AM
RE: Threads always marked as read - by metulburr - Sep-19-2016, 10:30 AM
RE: Threads always marked as read - by metulburr - Sep-19-2016, 04:44 PM
RE: Threads always marked as read - by metulburr - Sep-20-2016, 12:33 AM
RE: Threads always marked as read - by j.crater - Sep-20-2016, 05:53 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020