Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Web Development Languages (http://www.programmingforums.org/forum40.html)
-   -   Forums - post is read (http://www.programmingforums.org/showthread.php?t=15235)

gtdev Feb 22nd, 2008 11:00 AM

Forums - post is read
 
I've been working on a ASP .NET forum for a while now, and I've hit a bit of a snag. In any forum, you want it to track which posts you have read, and ones you havn't. Whats the most efficient way to do this? I cant imagine just throwing all that data into a database so I'm thinking theres some trick i'm missing.

PhilBon Feb 23rd, 2008 1:35 AM

Re: Forums - post is read
 
You could do it based on the last time they logged in. Then whenever they click a link use CSS to change it from a "Unread" style to a "read" style.

Ooble Feb 23rd, 2008 6:57 AM

Re: Forums - post is read
 
I think he was wondering on how you retain the info on what to set to "read."

The way most forum software does it is to use cookies, along with the last session time. Record the time the user last loaded a page, and when it's been more than X minutes, mark everything as read. Until then, use a cookie to store what "unread" pages have now been read.


All times are GMT -5. The time now is 12:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC