The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Total Time Online Hack v1.0 Details »» | |||||||||||||||||||||||||
[ Click Here ] to download the latest update!
Nifty Addon by TECK: [View TECK's Modification] Yeah my first hack for vb2.2.7 but then again its compatible with vb2.2.6 as well tested on both What does this hack do? Just as the title states it calculates the total time online for each user Configurable:: The time limit before a user is considered inactive is configurable and is included in the install txt file... so if you want a user to be defined as inactive after 3 minutes then there'll be a variable in the script to limit that configure that Also Configurable is the amount of users to show per page on the leader time online board That is also configurable in the timeonline.php included with the zip... Features :: Includes both viewable on the postbit and getinfo templates... Includes a leader board for the top users time online What to do? :: Queries to Run (1) File Modification (5) Template Modificatiion (2) Templates to Add (3) Files to Upload (1) :: [ timeonline.php ] (forum directory) It's an easy hack to install (took me a little time to configure) but it looks great imo... probably a hack that will use and that i can see every forum having... why not right Enjoy yet another release... And if you like this hack i would be greatful if you could click install thanks... Edit :: Viewable Demo [ Here ] Note :: If for some odd reason you get a division by zero error find: PHP Code:
PHP Code:
Show Your Support
|
Comments |
#112
|
|||
|
|||
Quote:
Mate, i added the lines u said in the install file ... Here they are: Code:
File Modification (5) // +++++++++++++++++++++ open admin/functions.php (2) find: (1) $post[joindate]=vbdate($registereddateformat,$post[joindate]); below it add: // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ $post[onlinetime] = dotimeonline($post[timeonline]); // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ find: (2) (the second appeareance) ?> above it add: // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ // do time online function function dotimeonline($timeonline) { $days = floor($timeonline / 86400); if($days == 0) { $ftime = ""; } elseif($days == 1) { $ftime = "$days Day, "; } else { $ftime = "$days Days, "; } $tothours = $days * 86400; $newhours = $timeonline - $tothours; $hours = floor($newhours / 3600); $ftime.= "$hours Hours, "; $totmin = (($hours * 3600) + ($days * 86400)); $newmin = $timeonline - $totmin; $minutes = floor($newmin / 60); $ftime.= "$minutes Minutes, "; $totsec = (($hours * 3600) + ($minutes * 60) + ($days * 86400)); $seconds = $timeonline - $totsec; $ftime.= "$seconds Seconds Online"; return $ftime; } // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ Did exactly what u said on the install file... |
#113
|
|||
|
|||
Quote:
Of course ... |
#114
|
|||
|
|||
right i got a test for you
g-force2k2 is there anyway of adding a bit to the user.php file in the Admin CP so you can find users by time online and also mass delete them and mass email them by there time spent online this would be great if you can |
#115
|
|||
|
|||
also i got it working Great hakc d00d
|
#116
|
|||
|
|||
great hack - i love it
thanks |
#117
|
|||
|
|||
Doesn't work. Here's what happens.
As soon as I edit admin/sessions.php from: find: (1) if ($session['styleid']!=0) { $bbuserinfo['styleid'] = $session['styleid']; } to // +++++++ Time Online Hack [ g-force2k2 ] +++++++ $inactivetime = 5; // Configure Time Out Time Here in Minutes! $factivetime = $inactivetime * 60; $newtime = time() - $bbuserinfo[lastactivity]; if($newtime < $factivetime) { $DB_site->query("UPDATE user SET timeonline=timeonline+$newtime WHERE userid='$bbuserinfo[userid]'"); } // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ I get this when my page loads: There seems to have been a slight problem with the Groove-Salad database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. Database error in vBulletin 2.2.6: Invalid SQL: UPDATE user SET timeonline=timeonline+2 WHERE userid='3' mysql error: Unknown column 'timeonline' in 'field list' mysql error number: 1054 Date: Sunday 01st of September 2002 05:31:31 PM Script: http://groove-salad.com/forum/forum/ Referer: I don't understand why it's saying the script is at http://groove-salad.com/forum/forum/ Any help would be greatly appreciated. |
#118
|
||||
|
||||
Quote:
later bah |
#119
|
|||
|
|||
groovesalad did you run the queries first? regards...
g-force2k2 |
#120
|
|||
|
|||
|
#121
|
|||
|
|||
gforce: sorry, new to this. How do I run a query?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|