Jump to content

[SOLVED] forum, read/unread


rempires

Recommended Posts

I've run into a problem with efficiency, again...  For my site I'm building my own forums (there are many reasons i choose to do that instead of using phpBB or SMF or something like that) , anyway my problem is i can't really seem to figure out a good way to determine if a topiuc or thread was read/unread by a user.  my forum is organized category-topic-thread-post.  The category is not something click-able or anything just a general way to organize all the topics.  I mainly want to be able to tell if the user ahs opened that topic (example: general discussion) since there has been a new thread or post posted in it.  The only way i can think of doing this is adding a field for each user in the members table that has each of the topics and when the suer last opened them and compare it to the last post/thread creation date of that topic.

 

before i do this i wanted to see if anyone here ca think of a better/more efficient way of doing this.  If this confused you please say so and i'll try to clarify what i'm saying, any ideas would be helpful.

 

thanks in advance,

john

Link to comment
https://forums.phpfreaks.com/topic/57916-solved-forum-readunread/
Share on other sites

thank you for your advice but i've actually decided to aplce cookies on each user and use the cookies to show which topics they visited at what time, so if there has been a post after that time then make it so it was unvisited, it seems to be the best way i can come up with

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.