|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
This one's easy enough. In showprofile.inc.php Find: t2.USER_AIM,t2.USER_SIGNATURE,t2.USER_MOOD
Replace with: t2.USER_AIM,t2.USER_SIGNATURE,t2.USER_MOOD,t3.USER_LAST_VISIT_TIME
Find: {$config['TABLE_PREFIX']}USER_PROFILE as t2 WHERE t1.USER_ID = ? AND t1.USER_ID = t2.USER_ID
Replace with: {$config['TABLE_PREFIX']}USER_PROFILE as t2, {$config['TABLE_PREFIX']}USER_DATA as t3 WHERE t1.USER_ID = ? AND t1.USER_ID = t2.USER_ID AND t1.USER_ID = t3.USER_ID
Find: $Signature,$mood) = $dbh -> fetch_array($sth);
Replace with: $Signature,$mood,$lastvisit) = $dbh -> fetch_array($sth);
Find: $date = $html -> convert_time($Registered,$toffset,$user['USER_TIME_FORMAT']);
Add after: $datelastvisit = $html -> convert_time($lastvisit,$toffset,$user['USER_TIME_FORMAT']);
Find: Add after: "datelastvisit" => $datelastvisit,
In showprofile.php in your languages folder Find: $ubbt_lang['REGGED_ON'] = "Registered on";
Add after: $ubbt_lang['LAST_VISIT'] = "Last Visited";
In showprofile.tpl Find: <tr> <td> <b>{$lang.REGGED_ON}:</b> </td> <td> {$date} </td> </tr>
Add after: <tr> <td> <b>{$lang.LAST_VISIT}:</b> </td> <td> {$datelastvisit} </td> </tr>
Voila! This will show everyone that can view profiles when the person was on last. Tested and working on 7.4.2. Enjoy!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|