PDA

View Full Version : Last Visited Time in Getinfo profile?


Me2Be
21 Mar 2001, 17:05
I'd like to add a field where it shows the time a user last visited (in addition to the last post) in the user's profile (getinfo template).

Is this easy or hard to do?

21 Mar 2001, 17:17
add this on about line 1070 of member.php

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

then include $user_lasttime and $user_lastdate somewhere in your getinfo template :)

21 Mar 2001, 17:19
You may want to set it to N/A if the user has chosen to be invisible or alternatively set it to N/A for everyone but usergroupid 6.

21 Mar 2001, 17:21
In Member.php do a search for getinfo. Within that section look for:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Put this after it:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

21 Mar 2001, 17:23
Freddie, how do you set it to N/A?

Wayne, is this in addition to what Kier said?

21 Mar 2001, 17:27
No... He just beat me to it.

Do something like this.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Then put $lastvisit in your template.

21 Mar 2001, 17:28
You are both just SOOOOO fast! Thank you :)

goxy63
06 Jan 2009, 14:13
Can anyone modify above mentioned code that on mouse-hoover we can see date and time when visitor was there in profile !?

Where in template to place '$lastvisit' .....

Thanks in advance for any answer


__________________________________________________
Didnt want to post again in this thread so I write it here....(this part should be under Lynne's post)

@Lynne
oOOOoooUUUPS

Sorryz, didnt saw that, found thread through search....:D

Lynne
06 Jan 2009, 15:10
You shouldn't bump a eight year old thread. You should just start your own thread - it's easier for people to follow.