Welcome Guest, Not a member yet? Register   Sign In
Please help - showing new posts
#1

[eluser]trinic[/eluser]
Here's my problem:

When a user logs in, each section is compared to the last time the user visited that section and the number of posts since then is shown by the link. Works great, However, the part of the code that resets the session variable is in the controller so a person visits the "post" page, the count is reset and the date he visited that section is updated. The problem I have is that I would like to show which of the posts are new. Once the person views the new posts the counter needs to reset (they just have to see the page, not visit every new one for it to reset).

My question is where is the best spot to put the code so it can still find the new posts, but also resets the count and updates the date visited?




Theme © iAndrew 2016 - Forum software by © MyBB