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

Home » FUDforum Development » Bug Reports » Tree View- threads not showing as read
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Tree View- threads not showing as read [message #167694 is a reply to message #167679] Thu, 30 August 2012 13:06 Go to previous messageGo to previous message
Motiak is currently offline  Motiak   United States
Messages: 15
Registered: October 2011
Karma:
Junior Member
NeXuS wrote on Wed, 29 August 2012 21:46
Shouldn't the time check be the other way around?

Right now you are saying: if the last_view timestamp is smaller than the object's timestamp (i.e. the user has seen the object BEFORE it has been updated) then mark it as read.

I am very tired and I may be wrong, but it feels that objects should be marked as read only if the user's last_view timestamp is bigger than the object's update timestamp (i.e. if the user has read the object AFTER it has been updated).


I pulled that code (altered slightly) out of tree.tmpl. My understanding of it is if your last_view is less than the timestamp (IE if you haven't looked at the post and your last_view=0) then the database is updated so that your last_view=timestamp.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Syndication enabled but not functioning
Next Topic: Error with Googlebot / Invalid links
Goto Forum:
  

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

Current Time: Wed Nov 27 08:51:01 GMT 2024

Total time taken to generate the page: 0.04200 seconds