• To Download from our Community You will need to Purchase a Membership Upgrade
    Also make sure you like the Post or Resource before you try to Download

Resource icon

Date & Time of Profile Visitor 09/28/2017

No permission to download
vB Version: 3.8.x

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:

Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li>
To:

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:

Code:
eval('$visitorbits .= "' . fetch_template('memberinfo_visitorbit') . '";');
Add above it:

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.
Author
rE-BoOt
Downloads
0
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from rE-BoOt

Top