Jump to content

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.

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.