Any generic ways of setting users's 'new/latest posts'?

Ask about a PHP problem here.
Post Reply
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

Any generic ways of setting users's 'new/latest posts'?

Post by brisk »

I have a feed showing the latest posts ordered by Time but i want to integrate some function that just displays a yellow star or something showing the newest posts since the user last visited.

Also if 2 posts have the exact same time how does php decide which one goes first?


Is this hard to implement? any tuts?
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Any generic ways of setting users's 'new/latest posts'?

Post by JelvinJS7 »

i'm just guessing here… in the `users` table have a column like "time last visited", so every time a user signs out or whatever it gets updated. then when the user logs back in and checks out the newest posts, have it display every post that was entered from the time in the database and the "current" time
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

Re: Any generic ways of setting users's 'new/latest posts'?

Post by brisk »

JelvinJS7 wrote:i'm just guessing here… in the `users` table have a column like "time last visited", so every time a user signs out or whatever it gets updated. then when the user logs back in and checks out the newest posts, have it display every post that was entered from the time in the database and the "current" time
Yeah I was thinking on that, the session closes when the window is closed so they have to log in each time anyway.

Thanks!
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Any generic ways of setting users's 'new/latest posts'?

Post by JelvinJS7 »

no problem. :)
Post Reply