Total time online

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest
    Guest replied
    Originally posted by kinuwap View Post
    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?

    Leave a comment:


  • Dj-marc
    replied
    he said that he is using a lavalair script.


    Bro the codes are here so search for it

    Leave a comment:


  • darkdesire
    replied
    it would help if you told us what script you're using and/or post the code here

    Leave a comment:


  • kinuwap
    started a topic Total time online

    Total time online

    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!
Working...
X