pureDesi Posted November 13, 2006 Share Posted November 13, 2006 I'm currently creating my own forum and I was wondering how would you go about showing unread topics? I don't need any code, just the idea of how to do it. Thanks. Link to comment https://forums.phpfreaks.com/topic/27158-unread-topics-in-forums/ Share on other sites More sharing options...
fert Posted November 13, 2006 Share Posted November 13, 2006 well you could store when the last post in a forum was and then check when the last time a person has visited. Link to comment https://forums.phpfreaks.com/topic/27158-unread-topics-in-forums/#findComment-124158 Share on other sites More sharing options...
pureDesi Posted November 13, 2006 Author Share Posted November 13, 2006 I thought of that, but what if the user visited but never saw that particular post? It would say that he/she read it when they in fact did not. Or.. is this how phpBB does it? I haven't noticed. Link to comment https://forums.phpfreaks.com/topic/27158-unread-topics-in-forums/#findComment-124159 Share on other sites More sharing options...
Psycho Posted November 13, 2006 Share Posted November 13, 2006 phpBB displays posts that were made after the user last logged in as new. So, if the user does not view a particular post then logs off and back on it will show that post as read.You could save a value as to whether a particular user has read each post or not according to the last update for each post. But, that table would grow very big, very fast. For example if you had 400 users and there are 1,000 forum threads, that table would need 400 x 1,000 records - 400,000. Plus, there would need to be a lot more database activity in order to do this. The benefit is not worth the cost in reduced performance IMHO. Link to comment https://forums.phpfreaks.com/topic/27158-unread-topics-in-forums/#findComment-124161 Share on other sites More sharing options...
pureDesi Posted November 14, 2006 Author Share Posted November 14, 2006 Yeah.. For some reason I figured there was another way, but I guess not. Thanks for the help, I'll just do as you guys suggested. Link to comment https://forums.phpfreaks.com/topic/27158-unread-topics-in-forums/#findComment-124213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.