phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

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.

Last visit bug


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
fuzioneer
Board Member



Joined: 04 May 2013

Posts: 2



PostPosted: 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 ???
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 439
Location: Qu├ębec


flag
PostPosted: 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.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 317
Location: U.S.A


flag
PostPosted: Tue May 07, 2013 3:05 pm 
Post subject: Re: Last visit bug

Are you using the more efficient method developed by Lanzer (Gaia) for this function?
_________________
http://www.jlaforums.com
Back to top
fuzioneer
Board Member



Joined: 04 May 2013

Posts: 2



PostPosted: Sun May 12, 2013 1:47 pm 
Post subject: Re: Last visit bug

looks like on my system the session time is being copied into lastvisit field and so if a session lapses then the next time you refresh the page then go to new posts then no posts exist

No not using any new function for it
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 317
Location: U.S.A


flag
PostPosted: Sun May 12, 2013 2:21 pm 
Post subject: Re: Last visit bug

fuzioneer wrote:
looks like on my system the session time is being copied into lastvisit field and so if a session lapses then the next time you refresh the page then go to new posts then no posts exist

No not using any new function for it


You should perhaps consider revising your code to use the updated functionality provided by Lanzer. If you need the code, let us know and we'll post it here.

_________________
http://www.jlaforums.com
Back to top
MaFt
Board Member



Joined: 09 Jul 2019

Posts: 4



PostPosted: Tue Jul 09, 2019 1:27 pm 
Post subject: Re: Last visit bug

Hi all,

I'm fully aware that this post is over 5 years old but I was wondering if someone could post the 'Lanzer' script mentioned here?

For background our host rebuilt the server from scratch and forced a PHP and MySQL upgrade. We've worked around most of the issues but a consistent thing being reported by our users is that the 'last logged in' time seems over-keen. I.e. if the user logs into the forum then the current time is logged as their last visit and so the 'view posts since last visit' simply doesn't work (as there's been nothing since 'now').

Thanks in advance!
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 585
Location: North West UK


flag
PostPosted: Tue Jul 09, 2019 6:44 pm 
Post subject: Re: Last visit bug

Have two "Last visit" mods but neither by Lanzer.

Will post them if any use to you.
One is by Debillus and the other by imrich

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
MaFt
Board Member



Joined: 09 Jul 2019

Posts: 4



PostPosted: Wed Jul 10, 2019 9:15 am 
Post subject: Re: Last visit bug

Hi Jim,

That would be great - something to try at least as it's getting annoying now lol

MaFt
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 585
Location: North West UK


flag
PostPosted: Wed Jul 10, 2019 10:09 am 
Post subject: Re: Last visit bug

Hi
Hope they can be of help to you.

Jim



lastvisit100.zip
 Description:

Download
 Filename:  lastvisit100.zip
 Filesize:  1.91 KB
 Downloaded:  69 Time(s)


last_visited_1.1.1.zip
 Description:

Download
 Filename:  last_visited_1.1.1.zip
 Filesize:  3.83 KB
 Downloaded:  70 Time(s)


_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
MaFt
Board Member



Joined: 09 Jul 2019

Posts: 4



PostPosted: Wed Jul 10, 2019 10:16 am 
Post subject: Re: Last visit bug

Thanks Jim,

Just looking at the content/description of these and I'm not sure these will do what I was wanting.

Thanks anyway!
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 317
Location: U.S.A


flag
PostPosted: Sat Oct 19, 2019 9:06 pm 
Post subject: Re: Last visit bug

Hi - just saw this. Need to go back through our code and find it - then I'll post it up here for you. Sorry didn't see this sooner.
_________________
http://www.jlaforums.com
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 317
Location: U.S.A


flag
PostPosted: Sat Oct 19, 2019 9:09 pm 
Post subject: Re: Last visit bug

Here is the original thread that has a ton of great mods for PHPBB2 that really helped us speed up our board during the early years. I'll look through this and find the specific code - but here is the link to all 83 pages of dicusssion.

https://www.phpbb.com/community/viewtopic.php?f=64&t=135383&st=0&sk=t&sd=a

_________________
http://www.jlaforums.com
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 317
Location: U.S.A


flag
PostPosted: Sat Oct 19, 2019 9:11 pm 
Post subject: Re: Last visit bug

Ah - seems this is discussed in the 1st post at the link above. Let me know if this helps you.
_________________
http://www.jlaforums.com
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0275 seconds using 17 queries. (SQL 0.0017 Parse 0.0024 Other 0.0234)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo