Jump to content

Forum thread => how to show image when new posts are posted


justwannapost

Recommended Posts

You can see an image displayed in most forums when someone else has made a post in a thread.

 

I was wondering how you display it.

 

It can't be cookies, if you change pc all the threads would look the same.

 

Maybe a timestamp on the threads (in mysql) to see when it was last modified. But then you would need the same for every user, or am i wrong?

You should have a timestamp on the thread anyways, but that is not how it goes.

 

I have never coded a forum, but I would image that they have a third table "thread_viewed" which simply has the viewedid, threadid, userid when the user views that thread the entry is created in that table. If there is an entry, do not show it as new, if not show it as being new.

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.