![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2008
Posts: 2
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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.
|
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |