Welcome Guest Search | Active Topics | Log In | Register

Storage of read/unread flag for topic Options · View
Kai2
#1 Posted : Saturday, October 18, 2008 10:11:54 AM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 5
Hi all,
I've searched the board here and the SQL-Tables but did not find the place where the read/unread flag is stored for each user for a topic. I've found it for the PMs but not for the topic. In which SQL-Table is this flag stored?
Thanks!
Jaben
#2 Posted : Sunday, October 19, 2008 12:29:46 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,045
Location: Honolulu, HI
It's not stored in the DB. It's based on the last visit time for a user and the last updated time for the topic.
"When you are grateful, fear disappears and abundance appears”."

ddscart
#3 Posted : Sunday, October 19, 2008 2:40:31 AM
Rank: Member



Joined: 10/2/2008
Posts: 17
Location: Georgia
Next question is where can the comparing code be found. The name of the file.
www.ddscart.orgddscart@ddscart.org
Disabled Dachshund Society of Georgia


Kai2
#4 Posted : Sunday, October 19, 2008 8:06:24 AM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 5
Ah ok, I hoped it's stored somewhere as it's stored for private message. Thanks for the answer!
Jaben
#5 Posted : Tuesday, October 21, 2008 10:17:14 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,045
Location: Honolulu, HI
ddscart wrote:
Next question is where can the comparing code be found. The name of the file.

Take a look at the /pages/forum.ascx.cs.
"When you are grateful, fear disappears and abundance appears”."

Kai2
#6 Posted : Tuesday, October 21, 2008 11:23:23 AM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 5
Jaben wrote:
It's not stored in the DB. It's based on the last visit time for a user and the last updated time for the topic.
When I now look at the Bugs-Board I see that topics from the last 1-2 days are marked as unread, except my own. So YAF seems to know that I have read this already. But how? I've then tried an opened a currently unread topic, went back to the board and refreshed the page, and now this topic is also marked read.... So somehow YAF seems to know what you've read, next to the comparison of the dates....


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.068 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET