G
G
Googlus2015-11-26 18:03:38
CMS
Googlus, 2015-11-26 18:03:38

What algorithm is used to calculate "new posts" on the forums?

Hello!
On forums, usually, an icon is displayed to the left of the topic:
-there are new messages
-there are no new messages How
do they work? How is it better to consider whether there are new messages in the topic or not: since the last entry / or since the user opened the topic, or in some other way?
Who knows by what algorithm it works in Vbulletin & IPB & Simple Machine ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Neocaridina, 2015-11-26
@Googlus

In the database of users, each user has a field like last-visited. When the user connects, there is a comparison: if last-visited is less than the date of the post -> the post is new.
For guests, you can also cook additionally for cookies, as in the server, for example, the recipe is the same, only we gnaw cookies. Unreliable, but that's why they are guests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question