Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2008, 11:00 AM   #1
gtdev
Newbie
 
Join Date: Feb 2008
Posts: 2
Rep Power: 0 gtdev is on a distinguished road
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.
gtdev is offline   Reply With Quote
Old Feb 23rd, 2008, 1:35 AM   #2
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 170
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
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.
PhilBon is offline   Reply With Quote
Old Feb 23rd, 2008, 6:57 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't read this post kurifu Coder's Corner Lounge 4 Nov 15th, 2007 9:21 PM
How to post a question nnxion C++ 10 Jun 3rd, 2005 11:53 AM
How to post a question nnxion C++ 0 Jun 3rd, 2005 8:55 AM
How to post a question nnxion C 0 Jun 3rd, 2005 8:55 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:11 AM.

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