2.7.5 topic has been read mistake [message #36825] |
Thu, 12 April 2007 19:48 |
Stephane
Messages: 11 Registered: September 2006 Location: The Netherlands
Karma: 0
|
Junior Member |
|
|
When there are several new posts in a topic and I use the arrow to go to the last post I get the next situation.
It goes to the newest post where I stopped reading as is correct. When the there is a new page though, and I read it too, in the category it still says there are new posts. When I hit the arrow again it goes to the next page, which I had read already but it doesn't seem to "see" that I was there already.
|
|
|
|
|
|
|
|
|
|
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: 0
|
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
|
|
|
|
|
|
|
Re: 2.7.5 topic has been read mistake [message #39980 is a reply to message #39973] |
Mon, 31 December 2007 20:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yes it would, prevloaded parameter indicates that the page has been loaded before and causes skippage of the mark-read code.
FUDforum Core Developer
|
|
|
|
|