next Posted July 29, 2008 Share Posted July 29, 2008 How does this feature works? I'm building a forum and about to get to this part, but have absolutely no idea on how to implement it. Could anyone explain please? Thanks. Quote Link to comment Share on other sites More sharing options...
obsidian Posted July 29, 2008 Share Posted July 29, 2008 The basic premise is that you store the time of the person's last visit (session time) in the DB so that you can easily query against the database for any topics with posts that have been made since the member's last activity. Quote Link to comment Share on other sites More sharing options...
d.shankar Posted July 29, 2008 Share Posted July 29, 2008 You need to look at www.phpbb.com Dont put yourself in strain to reinvent the wheel ! Quote Link to comment Share on other sites More sharing options...
revraz Posted July 29, 2008 Share Posted July 29, 2008 While I would agree with this most of the time, it depends on what his purpose is. If it's to learn how to code, then there is nothing wrong with writing his own. If we all didn't reinvent the wheel once in awhile, we'd still be using wheels made of stone. You need to look at www.phpbb.com Dont put yourself in strain to reinvent the wheel ! Quote Link to comment Share on other sites More sharing options...
TempleDMDKrazd Posted July 29, 2008 Share Posted July 29, 2008 well, since all the threads should be timestamped then it should be relatively easy...the question you need to ask yourself is how many new posts should be shown? query the mySQL database server and ORDER BY timestampVariable DESC LIMIT 10; if you want the 10 most recent ones... Quote Link to comment Share on other sites More sharing options...
d.shankar Posted July 29, 2008 Share Posted July 29, 2008 yes revraz... sorry next Quote Link to comment Share on other sites More sharing options...
next Posted July 29, 2008 Author Share Posted July 29, 2008 Thanks! Quote Link to comment Share on other sites More sharing options...
d.shankar Posted July 29, 2008 Share Posted July 29, 2008 Click "Topic Solved" please. Quote Link to comment 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.