Change this:
PHP Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
$userinfo[onlinetime] = dotimeonline($userinfo[timeonline]);
if($userinfo[usergroupid] == 6 OR $userinfo[timeonline] == 0) {
$getinfo_timeonline = "";
} else {
eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";");
}
}
} else {
$getinfo_template = "";
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
to this:
PHP Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
$userinfo[onlinetime] = dotimeonline($userinfo[timeonline]);
if($userinfo[usergroupid] == 6 OR $userinfo[timeonline] == 0) {
$getinfo_timeonline = "";
} else {
eval("\$getinfo_timeonline = \"".gettemplate('getinfo_timeonline')."\";");
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
As for the postbit idea... just make a new template called
postbit_timeonline
in it place the coding that was inserted into the postbit template
open showthread.php
and add the postbit_timeonline to the $templatesused
then in admin/functions.php
find:
PHP Code:
$post[onlinetime] = dotimeonline($post[timeonline]);
replace it with:
PHP Code:
$post[onlinetime] = dotimeonline($userinfo[timeonline]);
if($post[usergroupid] == 6 OR $post[timeonline] == 0) {
$postbit_timeonline = "";
} else {
eval("\$postbit_timeonline = \"".gettemplate('postbit_timeonline')."\";");
}
then back in the postbit template but the $postbit_timeonline in the position of the inserted code you removed to put in the postbit_timeonline template... regards...
g-force2k2