Total time online
Started on the old forum in June 2009 · view the original in the archive · old links redirect here
it would help if you told us what script you're using and/or post the code here
:p:p:p
he said that he is using a lavalair script.
Bro the codes are here so search for it
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
kinuwap wrote: Dr friend i m using lavalair script. In every user's profile along with my profile i can see that total online time is 0secend. Do u help me to fix this problem?pls!
edit ur index.php and goto this condition if($action == "viewuser") you will see this
$totaltimeonline = mysql_fetch_array(mysql_query("SELECT tottimeonl FROM ibwf_users WHERE id='".$who."'"));
$num = $totaltimeonline[0]/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);
echo "Time Online: ";
so just you need paste this line there instead of echo "Time Online: ";
echo "Time Online: $days Days, $hours Hours, $mins Mins and $secs secs";
ok?