Quote:
Originally posted by g-force2k2
Minifreunde :: Attach your timeonline.php here and i will debug for you regards...
Rock :: what lines did you put in the admin/functions.php ?
KarateKid :: Goldknight is correct... the install_timeonline.php is the txt file... regards...
Goldknight :: thanks for the help 
g-force2k2
|
Mate, i added the lines u said in the install file ...
Here they are:
Code:
File Modification (5)
// +++++++++++++++++++++
open admin/functions.php (2)
find: (1)
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
below it add:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
$post[onlinetime] = dotimeonline($post[timeonline]);
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
find: (2) (the second appeareance)
?>
above it add:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
// do time online function
function dotimeonline($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 Hours, ";
$totmin = (($hours * 3600) + ($days * 86400));
$newmin = $timeonline - $totmin;
$minutes = floor($newmin / 60);
$ftime.= "$minutes Minutes, ";
$totsec = (($hours * 3600) + ($minutes * 60) + ($days * 86400));
$seconds = $timeonline - $totsec;
$ftime.= "$seconds Seconds Online";
return $ftime;
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
Did exactly what u said on the install file...