Total time online

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

3 replies · 733 views · started 17 years ago · 1 min read

3 participants
kinuwap Newbie · 5 posts #1

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!

darkdesire Senior · 250 posts #2

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

:p:p:p

Guest #4

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?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close