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?

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.