Welcome to all phpBB2 Refugees!This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.
Posted: Sat May 04, 2013 9:28 am Post subject: Last visit bug
I have a nuked site which has a derivative of phpbb2 on it which has been customized considerably over 10 years !
I have a problem that has only recently come to light but one which is causing considerable issues with my user base
the problem is all based around the user_lastvist field
one part of our website that is used a lot is the posts since my last visit page and this is basically a search of all the posts made since the users last visit date/timestamp
This suddenly stopped working, now caveat I was working on many addons for the site over the course of a month and the issue may have been running for a while before it was actually reported, I have tried to back out of some of the changes but afaik none of them should cause issues with this functionality
The symptom is the user_lastvisit field is set to todays date / time so of course no posts are displayed in the new posts page
I have found some references to the lastvisit field in nuke_users but I am unclear about how actually the session works within phpbb
i.e. if i am browsing my site and then just walk away and come back 3 hours later, what happens is the user_lastvisit field is updated immediately to now and so no new posts show, whereas i "think" it should not do this, can some one more in the know tell me how this field and contents interact with the code / sessions / cookies so I can try and get to the bottom of it ???
Posted: Sat May 04, 2013 1:29 pm Post subject: Re: Last visit bug
If I remember correctly, user_session_time is updated as soon as a user logs in, and user_lastvisit becomes its previous value. So you should probably look through your files for anything that edits either of those values, or check that your last visit page is using the right one.