Jump to content

OLD, NEW, HOT posts...?


Roland_D

Recommended Posts

Hello everybody,

 

I have a question I've been striving with for a while and I was wondering if someone more experienced than me could have an answer or point me in the right direction.

 

I'm building a website with an integrated forum what is the best system to detect and return which post is 'new', which one is 'hot' and which one hasn't changed from the user's last visit?

 

In my user's table I store the last time the user logged in and the last time the user browsed a page... but it seems to be not enough to accurately return the information I need...

 

Any suggestion is appreciated.

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/246728-old-new-hot-posts/
Share on other sites

The thread points out some tricks. Most of which are inaccurate.

 

Generally, the lighter you want to be with this solution, the less accurate your outcome will be.

 

The common one is to use last viewed date along with last post date to decide if it's been added or modified since your last visit.

Link to comment
https://forums.phpfreaks.com/topic/246728-old-new-hot-posts/#findComment-1267162
Share on other sites

The thread points out some tricks. Most of which are inaccurate.

 

Generally, the lighter you want to be with this solution, the less accurate your outcome will be.

 

The common one is to use last viewed date along with last post date to decide if it's been added or modified since your last visit.

 

Yes I saw... I currently use the last_action table to match the last post in the forum and update the last action when the user clicks on the thread... the problem as you can imagine is that when you go back to the thread list your last action's time is updated so you won't be able to see which post is new...

Link to comment
https://forums.phpfreaks.com/topic/246728-old-new-hot-posts/#findComment-1267207
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.