rockinaway Posted September 8, 2007 Share Posted September 8, 2007 You know how on forum software they show the new posts, and then mark them as old.. how is this usually done? Is it via cookie, with all the ids stored in an array, or some other way? Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/ Share on other sites More sharing options...
ToonMariner Posted September 8, 2007 Share Posted September 8, 2007 either cookies or storing the views a user makes in a database table - the latter will take up A LOT of space on your server unless you do some good periodic cleanups - most places do it with a cookie for this very reason. Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/#findComment-344313 Share on other sites More sharing options...
jscix Posted September 8, 2007 Share Posted September 8, 2007 Theres no one way to do anything, be creative. :-) That cookie file would get enormous after a while. I'd say, you could create a temporary tables and use timestamps. (time stamp of users last login, vs timestamps of posts made) etc.. might work, no? Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/#findComment-344314 Share on other sites More sharing options...
rockinaway Posted September 8, 2007 Author Share Posted September 8, 2007 Well there would be an economical way of storing them as you see huge forums having this facility... I thought it was just be storing the topic ids in a cookie array.. andthat was it.. am I wrong? Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/#findComment-344315 Share on other sites More sharing options...
rockinaway Posted September 9, 2007 Author Share Posted September 9, 2007 Anyone? Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/#findComment-344663 Share on other sites More sharing options...
ToonMariner Posted September 9, 2007 Share Posted September 9, 2007 use a cookie - just perform some cleanup every now and then - like delete all from over a month ago - that should help keep the cookie size down a bit. if you notice on this forum if you clear your cookies all those post you have read show up as new.... Link to comment https://forums.phpfreaks.com/topic/68498-latest-posts/#findComment-344723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.