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 |
#132
|
|||
|
|||
Help plz ?
|
#133
|
||||
|
||||
Quote:
you got me scared with the permission thing... |
#134
|
|||
|
|||
Cool hacks~~thanks a lot
g-force2k2 is that possible hide admin online time to another group? keep admin info. secret~~ |
#135
|
|||
|
|||
Kmaster for the postbit try this ::
open admin/functions.php find: PHP Code:
PHP Code:
find: PHP Code:
PHP Code:
open timeonline.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
g-force2k2 |
#136
|
|||
|
|||
Yet another good hack. I will install this one soon.
|
#137
|
||||
|
||||
g-force2k2, do these 2 pieces of code look right to you? They work the way they are but I'm not sure if they will interfere with anything else. This also includes the code you gave me to NOT display users with zero time in the list. I would also like to be able to NOT display the Total Online Time in the posts for users who have zero time or Admins. Any way to do that?
Code:
if($bbuserinfo[usergroupid] != 6) { $totalusers = $DB_site->query_first(" SELECT COUNT(*) AS users FROM user WHERE usergroupid != 6 AND timeonline > 0"); } else { $totalusers = $DB_site->query_first(" SELECT COUNT(*) AS users FROM user WHERE timeonline > 0"); } Code:
if($bbuserinfo[usergroupid] != 6) { $leadtime = $DB_site->query(" SELECT userid, username, joindate, timeonline, posts FROM user WHERE timeonline > 0 ORDER by timeonline DESC LIMIT $startat,$perpage"); } else { $leadtime = $DB_site->query(" SELECT userid, username, joindate, timeonline, posts FROM user WHERE usergroupid != 6 AND timeonline > 0 ORDER by timeonline DESC LIMIT $startat,$perpage"); } |
#138
|
|||
|
|||
looks right to me Boofo...
open admin/functions.php find: PHP Code:
PHP Code:
find: PHP Code:
PHP Code:
That should do the trick Boofo... but a quick thing about user time online being zero... this actually should not take effect anymore... because all new registers will have a timeonline from the point that you installled... only reason some users hack a timeonline that is zero is because the fact that you installed it after your forum has been up for quite some time this really has nothing to do with this addition just explaining why users shouldn't havea timeonline of zero anymore... regards... g-force2k2 |
#139
|
||||
|
||||
Thanks for the help, g-force2k2. The only reason I want it to not show zero time online users is because I have a few members that haven't been on for a while and probably won't be again and it just looks a little cleaner this way. One last thing. I need to make it so the Total Time Online link doesn't show up in the posts where there is no time after it (for like Admins and zero time-users). Can you help me with that final thing, sir?
Also, does this code look right to you? This is from the member.php. It doesn't need that last else statement does it? Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ $userinfo[onlinetime] = dotimeonline($userinfo[timeonline]); if($userinfo[usergroupid] == 6 OR $userinfo[timeonline] == 0) { $getinfo_timeonline = ""; } else { eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";"); } } } else { $getinfo_template = ""; } // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ |
#140
|
|||
|
|||
Change this:
PHP Code:
PHP Code:
postbit_timeonline in it place the coding that was inserted into the postbit template open showthread.php and add the postbit_timeonline to the $templatesused then in admin/functions.php find: PHP Code:
PHP Code:
g-force2k2 |
#141
|
||||
|
||||
Thank you. I should be able to use $postbit_timeonline for the private messages too, right? If so, I am all set now. Thanks again.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|