Webmastersite.net
Register Log In

Lastvisited field missing

Comments on Lastvisited field missing

Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Feb 15, 2006 - 3:35 PM:

Today I noticed that many members (but not all of them) who haven't logged in since signing up have a lastvisit value of 0. Because of this, their lastvisit field is showing the 1969 date when I try to display it. Do you know what might be causing this field to not update properly, and how to change the field for all members with this field as 0 to the registration date so it'll display properly?

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 17, 2006 - 8:30 AM:

As far as I can see it's not set on registration, so I don't see how some of your members could have a non-0 value. Added a $this->lastvisit = time(); to the register() function of the class for the next version though.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Feb 17, 2006 - 8:41 AM:

Where in 3.16 would I add that, since I'm not using the newer version?

Also, how do I go about changing all the current lastvisit of 0 to something else, like their registration date. Is there a way to do this via the WSN advanced functions page or via phpmyadmin?

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 19, 2006 - 5:02 PM:

UPDATE wsnlinks_members SET lastvisit = time WHERE lastvisit = 0
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Feb 20, 2006 - 7:07 PM:

Added a $this->lastvisit = time(); to the register() function of the class for the next version though.


What file and where in that file would that line go?
zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Feb 21, 2006 - 4:10 AM:

UPDATE wsnlinks_members SET lastvisit = time WHERE lastvisit = 0

thats for mySQL. copy/paste it into the query area and submit in phpadmin with your WSN Links database open.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Feb 21, 2006 - 8:55 AM:

I know. I'm asking about what he said in his first post:

As far as I can see it's not set on registration, so I don't see how some of your members could have a non-0 value. Added a $this->lastvisit = time(); to the register() function of the class for the next version though.


Where is the register() function and where does $this->lastvisit = time(); go in that function?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2006 - 6:25 PM:

classes/member.php and it would go at the top.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.