The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
[ Click Here ] to download the latest update!
Nifty Addon by TECK: ![]() [View TECK's Modification] Yeah my first hack for vb2.2.7 ![]() ![]() What does this hack do? Just as the title states ![]() ![]() 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 ![]() 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 ![]() ![]() ![]() 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 |
#227
|
||||
|
||||
![]()
ok I have that Profile Change Thingy installed that changes it . .. then when I did what it said in for getinfo template it showed up like this . .
Can someone post a fix for this? Thankx \ \ - Speedy - / / |
#228
|
||||
|
||||
![]()
You need to make sure that the bgcolor is set correctly for the <td> tags in the getinfo_timeone (I think?) template. They should be either { firstaltcolor } or { secondaltcolor } without the spaces.
|
#229
|
|||
|
|||
![]()
Merci pour ce hack car je vien de le mettre et il est geniel
|
#230
|
|||
|
|||
![]()
nice hack..
![]() ![]() Fatal error: Call to undefined function: dotimeonline() in c:\www\apache\htdocs\zforce\timeonline.php on line 39 whats wrong there? and is there any way I can show the total time online of the user? thanx mate ![]() |
#231
|
|||
|
|||
![]()
g-force, a tiny request: maybe you could optimize TECK's code on page 15? It reduces queries
![]() |
#232
|
|||
|
|||
![]()
Yes, Please update TECK's code!
![]() |
#233
|
||||
|
||||
![]() Quote:
Open your timeonline.php and search for: WHERE userid !=0 AND timeonline > 0 Change it to: WHERE userid > 1 AND timeonline > 0 open up member.php ans search for: $userinfo[onlinetime] = dotimeonline($userinfo[timeonline]); if($userinfo[timeonline] > 0) { eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";"); } else { $getinfo_template = ""; } Replace it with: if ($userinfo[userid] != 1){ $userinfo[onlinetime] = dotimeonline($userinfo[timeonline]); if($userinfo[timeonline] > 0) { eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";"); } else { $getinfo_template = ""; } // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ } |
#234
|
||||
|
||||
![]()
g-force2k2 ...
I would be nice if you modified your code in the zip file to include Teck's additional fixes. I just applied one (To settings.php) and it automatically removed one query from all of my pages. You've served us well in the past, and personally have done a lot for me behind the scenes. Everyone (Including the non-coders) here would appreciate it! Regards, Rolodex! ![]() |
#235
|
|||
|
|||
![]() Quote:
What other mods have you installed as my file doesnt contain the same as yours.. |
#236
|
|||
|
|||
![]() Quote:
Quote:
Quote:
So, maybe you've got other hacks you're working around? |
#237
|
||||
|
||||
![]()
Can't you see the similarities?
Change this "WHERE userid!=0" to: WHERE userid > 1 We all don't have the same hacks on our boards so that may answer your question. Like I did, you have to learn to improvise from others code to get yours to work the way you want. Peace! |
#238
|
||||
|
||||
![]()
Place the condition around the code you showed me ....
if ($userinfo[userid] != 1){ // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ $userinfo[onlinetime] = dotimeonline($userinfo[timeonline]); eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";"); // +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ } |
#239
|
|||
|
|||
![]()
Bump for optimized version
![]() |
#240
|
|||
|
|||
![]()
A Question: TECK, maybe you can answer this, how many queries does this hack add, and on what pages, w/o your modification?
Also, someone please modify TECK's code so it works, pwease ![]() |
#241
|
|||
|
|||
![]()
...bump...
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|