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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.