Jump to content

Help with forum logic, new posts


CrazeD

Recommended Posts

I am working on some custom forums and I'm a little stuck with this one. I can't really think of a logical way to handle how the forum dictates whether a post/reply is new to that user or not. I have tried to paw through different forum software to see how they handled the problem, but quickly grew impatient searching the dozens of files.

 

I sort of found a couple ways, though. One was to just make all replies within a certain time frame new to everybody even if they have read it, I don't really like that option. Another is to use a database row to store viewed post ID's and then match against it and if it's not found, it must be new. The problem I see with this is that the row will quickly grow very large and I'm a little worried about performance issues once there are a lot of active users and a lot of posts.

 

What would you guys suggest I do?

 

Also, for the record (not sure if this is relevant information) my sessions are held in a database table.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/162345-help-with-forum-logic-new-posts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.