![]() |
Quote:
I downloadet the latest of youre versions, and here is the Link correct (the </a> appears). Ive done anything the manual says, believe me... And the problem PsYc speaks of, about the metarefresh i get too...my page reloads not....i must reload it with the Refrehbutton of the Browser... :( This Hack is great, but this Problems are bad for me... Regards. :) |
I have a problem the time per day is always show 0 !!
Any idears ? bommelchen |
bommelchen did you make the change on post#71?
Minifreunde i will look into it now... as for the metafresh i don't really know... but is it a problem? unless you're sitting their under the timonline.php seeing each user's time go up then its really only their for displaying the time leaders... btw Psyc and Minifreunde does the time of the other users just not go up? or just not go up untill you revisit via another session? regards i will try to sort everything out... regards... g-force2k2 |
Quote:
yes the time of other go up, but i remember it went up if i reloaded the page before or in the postbit when they are online, but for now it only shows in a new session like you mentioned above edit: and i only see my time increasing by sec and so on in postbit and on the timeonline.php |
Psyc but does there's go up at the same rate as yours or not? sorry for the trouble just trying to straighten things out :p regards...
g-force2k2 |
no its no trouble ;)
we trouble you :) yes my time goes up and theirs not but in a new session i see their new online time but then its still no going up with mine at the same time as you said only in a new session |
but is their time going up at an even rate? like when you go into a new session do they gain the exact amount of time that you do? regards...
g-force2k2 |
yes its like everyone see his time increasing but not the time of others but for everyone it counts right just not visible if you refresh the page
only in a new session |
PsYc try adding this coding to the time template where you'd like it to appear ::
PHP Code:
g-force2k2 |
nope still the same problem
i know before some addons it worked, dont know why not now here is my timeonline.php maybe you see an error: -------------------------------------------------- <?php error_reporting(7); /* Total Time Online Hack v1.0 Created on Thursday August 22, 2002 Copyright g-force2k2 Notice :: Please do not edit (including addons) this hack. Thanks for respecting my work! */ $templatesused = "time,time_leader"; require('./global.php'); // +++++++ Time Online Hack Configuration [ Edit Below Only ] +++++++ $usersperpage = "10"; // Configure this to show the number per page on the leader board! // +++++++ Time Online Hack Configuration [ Don't Edit Below This Line ] +++++++ if(trim($action) == "") { $action = "view_leader"; } // +++++++ Start Viewing Total Time Online Users +++++++ if($action == "view_leader") { $perpage = $usersperpage; $totalusers = $DB_site->query_first(" SELECT COUNT(*) AS users FROM user WHERE timeonline > 0"); $totalpages = ceil($totalusers[0] / $perpage); if($page == "") { $page = 1; } $startat = ($page-1)*$perpage; $leadtime = $DB_site->query(" SELECT userid, username, joindate, timeonline, posts FROM user WHERE userid!=0 AND timeonline > 0 ORDER by timeonline DESC LIMIT $startat,$perpage"); while($lead = $DB_site->fetch_array($leadtime)) { $userid = $lead[0]; $username = $lead[1]; $joindate = vbdate($dateformat,$lead[2]); $timeonline = dotimeonline($lead[3]); $posts = $lead[4]; $fairtime = 1030490880; if($joindate < $fairtime) { $daysregs = floor((time() - $fairtime) /86400); } else { $daysregs = floor((time() - $lead[2]) / 86400); } if($daysregs == 0) { // checking to see if not registered for more then a day to prevent division by zero $daysreg = 1; } else { $daysreg = $daysregs; } $dotimeperday = floor($lead[3] / $daysreg); $timeperday = dotimeonline($dotimeperday); eval("\$time_leader.= \"".gettemplate("time_leader")."\";"); } if($page!=1) { $prv = $page - 1; $firstpage = "<a href='timeonline.php?s=$session[sessionhash]&action=view_leader&perpage=$perpage&page=1'\">[ Erste Seite ]</a>"; $prevpage = "<a href='timeonline.php?s=$session[sessionhash]&action=view_leader&perpage=$perpage&page=$prv' \">[ Vorherige Seite ]</a>"; } if ($page!=$totalpages) { $nxt = $page+1; $nextpage = "<a href='timeonline.php?s=$session[sessionhash]&action=view_leader&perpage=$perpage&page=$nxt' \">[ Nächste Seite ]</a>"; $lastpage = "<a href='timeonline.php?s=$session[sessionhash]&action=view_leader&perpage=$perpage&page=$totalpa ges'\">[ Letzte Seite]</a>"; } eval("dooutput(\"".gettemplate("time")."\");"); } ?> --------------------------------------------------------- |
All times are GMT. The time now is 01:01 PM. |
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:
|