The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Date & Time of Profile Visitor Details »» | |||||||||||||||||||||||||||
A simple mod to show the date and time of the profile visitor when you hover your cursor over their username in Recent Visitors in member.php.
1. Go to your Admin CP > Plugins & Products > Download / Upload Plugins > Upload the sml file profile_visitor_datetime.xml 2. Change the template "memberinfo_visitorbit" from: HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]" title="$userdateline">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> 3. Open the file includes/class_profileblock.php and find the following line around line 1159: PHP Code:
PHP Code:
This was written for and tested on my 3.8.0 RC1 board. Download Now
Show Your Support
|
Comments |
#22
|
||||
|
||||
nice and useful...thanks for this Lynne
|
#23
|
|||
|
|||
Very nice, ty!
|
#24
|
|||
|
|||
Will install VB4 soon, does anyone know is this option default there?
My users love this option |
#25
|
||||
|
||||
Hi Lynne....is this goin to make it work with vB 4.0.2?
hope so... best regards |
#26
|
||||
|
||||
I don't see why it couldn't work in 4.0.2 except the template edit would be different for 4.0.
|
#27
|
||||
|
||||
thanks Lynne...tried to find the line at includes/class_profileblock.php can't find it...seems to be that they change it or...
would you be so kind (as always) please to re code this at your spare time...my members are keep bugging me on this one thanks and best regards |
#28
|
||||
|
||||
Hi Lynne tried to figure out and make this work but no luck at all...
as i said can't find this and can you please help me on this... Code:
eval('$visitorbits .= "' . fetch_template('memberinfo_visitorbit') . '";'); but i added it instead here to think and hope the right place is...but... Code:
$visitorbits = ''; foreach ($visitors AS $user) { fetch_musername($user); $user['invisiblemark'] = !$user['visible'] ? '*' : ''; $user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' : ''; $user['date'] = vbdate($this->registry->options['dateformat'],$user['dateline']); $user['time'] = vbdate($this->registry->options['timeformat'], $user['dateline']); $userdateline = $user['date'] .' '. $user['time']; $templater = vB_Template::create('memberinfo_visitorbit'); $templater->register('user', $user); $visitorbits .= $templater->render(); } Upload the plugins without touching it i guess its look okay..hope so... Code:
<plugins> <plugin active="1" executionorder="5" product="vbulletin"> <title><![CDATA[Get Recent Visitor Date & Time]]></title> <hookname>member_profileblock_recentvisitors_query</hookname> <phpcode><![CDATA[$hook_query_fields= ',profilevisitor.dateline';]]></phpcode> </plugin> </plugins> FROM: Code:
<li> <a class="username" href="{vb:link member,{vb:raw user}}">{vb:raw user.musername}</a>{vb:raw user.invisiblemark}{vb:raw user.buddymark}</li> Code:
<li> <a class="username" href="{vb:link member,{vb:raw user}}" title="{vb:raw user.dateline}">{vb:raw user.musername}</a>{vb:raw user.invisiblemark}{vb:raw user.buddymark}</li> but got anonym numbers only or say can't get it right... any idea pls...what wrong? thanks and best regards... |
#29
|
||||
|
||||
Change this line:
PHP Code:
PHP Code:
|
#30
|
||||
|
||||
....hmmm...did it too that variable way but also didn't go well... but now i got it...million thanks once again Lynne for your never ending assistance or support here and there...just informed my members and they're really quite happy about this...
so tested to my vb default skin and style skin...we can release it to vB4.0.0 Modification Section...i mean... YOU can release it now...if you have time enough for the others to feel the heat of this wonderful mod of yours... great...and much appreciated your assistance here once again...as always... |
#31
|
||||
|
||||
Unfortunately, time is something I don't have a lot of these days. You are welcome to release it in the vB4 section if you'd like.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|