![]() |
Yes, Please update TECK's code! :(
|
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 ] +++++++ } |
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! :) |
Quote:
What other mods have you installed as my file doesnt contain the same as yours.. |
Quote:
Quote:
Quote:
So, maybe you've got other hacks you're working around? |
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! |
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 ] +++++++ } |
Bump for optimized version :(
|
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 :D |
...bump...
|
All times are GMT. The time now is 01:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|