Back to vBulletin 3.8 Add-ons

Date & Time of Profile Visitor
Mod Version: 1.00, by Lynne

vB Version: 3.8.x Rating: (4 votes - 4.75 average) Installs: 73
Released: 07 Jan 2009 Last Update: Never Downloads: 311
Not Supported Uses Plugins Template Edits Code Changes Re-usable Code  

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>
To:
HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]" title="$userdateline">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li>
Save the template.

3. Open the file includes/class_profileblock.php and find the following line around line 1159:
PHP Code:
eval('$visitorbits .= "' fetch_template('memberinfo_visitorbit') . '";'); 
Add above it:
PHP Code:
 $user['date'] = vbdate($this->registry->options['dateformat'],$user['dateline']);            
$user['time'] = vbdate($this->registry->options['timeformat'], $user['dateline']);
$userdateline $user['date'] .' '$user['time']; 
Save and upload the file.

This was written for and tested on my 3.8.0 RC1 board.

Download

File Type: %1$s profile_visitor_datetime.zip (2.0 KB, 371 downloads)

Similar Mods

Profile Enhancements vB3.5 Local time and date in post and profile Modification Graveyard
Local time and date in post, pm, usernotes and profile v1.5 vBulletin 3.0 Full Releases
The Date + Time User Was Last Active In Profile! vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024