I thought it was that code but was't 100%
I have copied the function and changed it to:
PHP Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
// do time online function
function doposttimeonline($timeonline) {
$days = floor($timeonline / 86400);
if($days == 0) {
$ftime = "";
} elseif($days == 1) {
$ftime = "$days Day, ";
} else {
$ftime = "$days Days, ";
}
$tothours = $days * 86400;
$newhours = $timeonline - $tothours;
$hours = floor($newhours / 3600);
$ftime.= "$hours:";
$totmin = (($hours * 3600) + ($days * 86400));
$newmin = $timeonline - $totmin;
$minutes = floor($newmin / 60);
$ftime.= "$minutes:";
$totsec = (($hours * 3600) + ($minutes * 60) + ($days * 86400));
$seconds = $timeonline - $totsec;
$ftime.= "$seconds";
return $ftime;
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
And placed it under the other one and changed:
PHP Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
$post[onlinetime] = dotimeonline($post[timeonline]);
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
To:
PHP Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
$post[onlinetime] = doposttimeonline($post[timeonline]);
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
So I get H:M:S (eg: 0:44:10) in the post bit and the full length version everywhere else.
Thanks again g-force2k2, if Hack of the month comes back this
will be my nomination