adamlacombe Posted August 23, 2010 Share Posted August 23, 2010 I just had a question for you guys. I am building a forum script and I'm currently stumped on the "show unread posts since last visit" feature. Not sure as to how to code it. Should I be using a mysql database to keep track of them or use cookies some how? Thanks in advanced! Quote Link to comment https://forums.phpfreaks.com/topic/211531-show-unread-posts-since-last-visit-forum-feature/ Share on other sites More sharing options...
adamlacombe Posted August 23, 2010 Author Share Posted August 23, 2010 No ideas Quote Link to comment https://forums.phpfreaks.com/topic/211531-show-unread-posts-since-last-visit-forum-feature/#findComment-1102887 Share on other sites More sharing options...
adamlacombe Posted August 24, 2010 Author Share Posted August 24, 2010 Alright...... Quote Link to comment https://forums.phpfreaks.com/topic/211531-show-unread-posts-since-last-visit-forum-feature/#findComment-1102948 Share on other sites More sharing options...
jcbones Posted August 24, 2010 Share Posted August 24, 2010 You should be logging the last time the member requested a page, then just check for (member_last_page_request < time_of_post). Quote Link to comment https://forums.phpfreaks.com/topic/211531-show-unread-posts-since-last-visit-forum-feature/#findComment-1102949 Share on other sites More sharing options...
adamlacombe Posted August 24, 2010 Author Share Posted August 24, 2010 OMFG I can't believe I didn't think of that before. Thanks lol Sorry I been thinking so complex that I didn't see the simplest idea. Quote Link to comment https://forums.phpfreaks.com/topic/211531-show-unread-posts-since-last-visit-forum-feature/#findComment-1102950 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.