goxy63
01-06-2009, 05:24 PM
Code which will show time and date when last visitor was in user profile
Was doing some search on forums....and nothing
Here I found something interesting...
https://vborg.vbsupport.ru/showthread.php?p=1703233#post1703233
In member.php I should find:
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
and just under I should add
if ($userinfo[invisible]) {
$lastvisit = "N/A";
} else {
$user_lasttime = vbdate($timeformat,$userinfo[lastactivity]);
$user_lastdate = vbdate($dateformat,$userinfo[lastactivity]);
$lastvisit = $user_lastdate . "at". $user_lasttime;
}
If this code is of any help than where In template I should place
'$lastvisit'
Iam running Vb 3.7.4
Can anyone modify above mentioned code(or even better to create new one) that on mouse-hoover I can see date and time when visitor was there in profile !?
Can those usernames be sorted in order...?
This would be nice hack I think, its weird that Vb dont have this by default....
Thanks to all of you guys
Cheers
Was doing some search on forums....and nothing
Here I found something interesting...
https://vborg.vbsupport.ru/showthread.php?p=1703233#post1703233
In member.php I should find:
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
and just under I should add
if ($userinfo[invisible]) {
$lastvisit = "N/A";
} else {
$user_lasttime = vbdate($timeformat,$userinfo[lastactivity]);
$user_lastdate = vbdate($dateformat,$userinfo[lastactivity]);
$lastvisit = $user_lastdate . "at". $user_lasttime;
}
If this code is of any help than where In template I should place
'$lastvisit'
Iam running Vb 3.7.4
Can anyone modify above mentioned code(or even better to create new one) that on mouse-hoover I can see date and time when visitor was there in profile !?
Can those usernames be sorted in order...?
This would be nice hack I think, its weird that Vb dont have this by default....
Thanks to all of you guys
Cheers