|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
This mod was first introduced by Zachary and issued by Josh Pet %20Show%20Uses's%20las.html#Post276144]here. Has this hack been done for 7.4.x? If not, it would be one which I would appreciate seeing again. It allows Admins and Mods to see the last time a member was online when viewing their profile.
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
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!
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Heres where I make the comment that modifying the stock code of your UBB install makes it unsupportable through official channels :x...
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Mee voyd warinteez!  You're welcome Pilgrim. 
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I put it all in a nifty text file and posted it here.
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Just thought I'd say "Thanks!" here too for providing this once again. It works great. ![[Linked Image]](http://www.the-highway.com/Smileys/bigglasses.gif)
Artificial Intelligence is no match for natural stupidity!
|
|
|
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,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|