The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
|||
|
|||
add this on about line 1070 of member.php
Code:
$user_lasttime = vbdate($timeformat,$userinfo[lastactivity]); $user_lastdate = vbdate($dateformat,$userinfo[lastactivity]); |
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
In Member.php do a search for getinfo. Within that section look for:
Code:
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]); Code:
$lastvisitdate=vbdate($dateformat,$userinfo[lastvisit]); |
#5
|
|||
|
|||
Freddie, how do you set it to N/A?
Wayne, is this in addition to what Kier said? |
#6
|
|||
|
|||
No... He just beat me to it.
Do something like this. Code:
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; } |
#7
|
|||
|
|||
You are both just SOOOOO fast! Thank you
|
#8
|
|||
|
|||
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.... |
#9
|
||||
|
||||
You shouldn't bump a eight year old thread. You should just start your own thread - it's easier for people to follow.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|