Displaying unread posts
Moderator: General Moderators
Displaying unread posts
Hi, I am creating a custom fourm for myself and I want to know how phpBB and vBulletin allow each user to see which fourms and topics they haven't read yet. I know that you can display the posts since last visist, but I want to know how to display unread posts, not the posts since last visit. Also, when a user signs up, I want them to have been marked as read all posts, so it is only the new posts after they log in. Any ideas?
Ya, I fiured that one out, but when a user logs in and there are 10 new posts, and they view one of those new posts, then I want there to be 9 unread posts, and if they leave to go have dinner, or whatever, and come back an hour later, they can still see that they didn't read those 9 posts. It is not so much a question of posts since last visit, as it is a question of unread posts. Thanks for your reply!
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
It really is too much effort to store which posts each user has seen and not seen, as imagin on a big forum like this where there is like 100000 posts, you either have to store that 1000 users havent seen a post, or that 1000 users have seen a post. If you store this client side on a cookie, then this has to be sent back and forth all the time so the load time is huge, or if you store it server side you waste alot of space.
Its best as feyd said to just have like a 2 hour limit to show new posts, i.e. all posts from the time you came on the site, to 2 hours in the future are considered new - then you assume that the user has read them - or wasnt interested in them.
Its best as feyd said to just have like a 2 hour limit to show new posts, i.e. all posts from the time you came on the site, to 2 hours in the future are considered new - then you assume that the user has read them - or wasnt interested in them.