Jump to content

keeping track of viewed threads for a forum?


mmosel

Recommended Posts

Ok, I'm wondering what is the most efficient way for a forum to keep track of whether or not  a member has viewed a thread or not, and that updates when a new post is made in the thread.

 

Seems like a lot of data to keep track of lol. I mean, I could create a table with member ids, thread id and a switch if it's viewed or not. And then everytime a new post is made I'd have to go through and reset the switch for every user and for every thread number. That seems like the table could get pretty massive pretty fast.

 

Had anyone dealt with this or have a clue as to the most efficient way to do it is?

 

Well, my guess is that it would be a hierarchy. That is, a table with fields such as user_id, board_id, topic_id, message_id, and a date/time.  You simply add whatever level of detail is necesarry -- if someone selects "mark board as read", leave out topic/message... etc.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.