I'm having a hard time breaking down how phpBB, vBulletin, and other message boards actually do their "New Posts!" notification on the front page (or board view).
If you could help me out, that'd be fantastic. (if you need any more information, send me a PM)
Don
Forum "New Posts Since Last Login" function
Moderator: General Moderators
I don't mean the last 10 posts or whatever that was.
In example, go to index.php and for each board, it shows an image for each board (either 'new posts' or 'no new posts'). I'm trying to figure out how they do that.
In example, go to index.php and for each board, it shows an image for each board (either 'new posts' or 'no new posts'). I'm trying to figure out how they do that.
I think it's a standard phpBB feature, since they all come with a "View posts since last visit" link on the main page.
This is just a wild guess but, maybe it records the expiration of the session for that user (as a timestamp). And when the forum session is started again, a current timestamp is compared to one within that users logged last session time. Then the db pulls all posts created within that time frame. Just a thought.
This is just a wild guess but, maybe it records the expiration of the session for that user (as a timestamp). And when the forum session is started again, a current timestamp is compared to one within that users logged last session time. Then the db pulls all posts created within that time frame. Just a thought.
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
