Re: 2.7.5 topic has been read mistake [message #39162 is a reply to message #36825] |
Fri, 05 October 2007 16:59 |
JanRei
Messages: 361 Registered: October 2005 Location: Germany
Karma:
|
Senior Member Contributing Core Developer Translator |
|
|
I am always a bit uncertain what to do in case Ilia doesn't answer, but in the meantime I have looked into this issue a bit. Thank you for bringing this up again.
My assumption is that this has something to do with the fact that URLs for the next pages in a thread always contain "prevloaded=1". But the messages are only marked as read if prevloaded is not set, please see the following code from msg.php:
<?php
if (!isset($_GET['prevloaded'])) {
while (@ob_end_flush());
th_inc_view_count($frm->id);
if (_uid && $obj2) {
if ($frm->last_forum_view < $obj2->post_stamp) {
user_register_forum_view($frm->forum_id);
}
if ($frm->last_view < $obj2->post_stamp) {
user_register_thread_view($frm->id, $obj2->post_stamp, $obj2->id);
}
}
}
?>
[Updated on: Fri, 05 October 2007 17:00] Report message to a moderator
|
|
|