I forgot to mention how to deal with unread comments within a thread. Store the user's last access time in a cookie. When the user opens a thread/topic/post, if that access time isn't there, all comments are new. If it is present, style all comments newer than that time as being "unread" (actually, add "Unread" class or whatever).
On Tue, Jan 20, 2009 at 2:04 PM, brian <[email protected]> wrote: > On Mon, Jan 19, 2009 at 4:28 PM, Miles J <[email protected]> wrote: >> >> Ive built my own forum from scratch. It works flawlessly, but the one >> thing I never understood is the read/unread of topics. Because storing >> that information in the database would be huge. > > Define "huge". Unless you're using MSAccess as a backend I doubt you'd > see any significant issues as long as you used a sane strategy. All > you'd need to store is the thread ID and user ID, after all. Make sure > the columns are indexed and you're on your way. > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
