FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » 2.7.5 topic has been read mistake
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: 2.7.5 topic has been read mistake [message #39162 is a reply to message #36825] Fri, 05 October 2007 16:59 Go to previous messageGo to previous message
JanRei is currently offline  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

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Page expired (V2.7.2)
Next Topic: rss feed for last messages in the forum contains very old items
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 21:15:26 GMT 2024

Total time taken to generate the page: 0.03866 seconds