justwannapost Posted February 9, 2009 Share Posted February 9, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/144497-forum-thread-how-to-show-image-when-new-posts-are-posted/ Share on other sites More sharing options...
premiso Posted February 9, 2009 Share Posted February 9, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/144497-forum-thread-how-to-show-image-when-new-posts-are-posted/#findComment-758237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.