Sep-19-2016, 04:44 PM
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: