PDA

View Full Version : Profile Enhancements - Date & Time of Profile Visitor


Lynne
01-07-2009, 10:00 PM
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:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> To:
<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 (may be earlier for 3.7):
eval('$visitorbits .= "' . fetch_template('memberinfo_visitorbit') . '";'); Add above it:
$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 and just tested it on a friend's 3.7.0 board.

Come2Daddy
01-08-2009, 12:36 PM
Looks wonderful

thanx a lot

ZacK1
03-02-2009, 06:39 PM
thnx for this works great..