Page 1 of 1

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

Posted: Mon Mar 26, 2012 1:07 am
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?

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

Posted: Mon Mar 26, 2012 1:59 am
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

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

Posted: Mon Mar 26, 2012 2:08 am
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!

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

Posted: Mon Mar 26, 2012 2:12 am
by JelvinJS7
no problem. :)