
viewthread.php 找:
mf.customstatus $fieldsadd
改为
mf.customstatus, o.thismonth AS thismonthol, o.total AS totalol $fieldsadd
再找
LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
之下加入
LEFT JOIN {$tablepre}onlinetime o ON o.uid=mf.uid
再找
$post[\'regdate\'] = gmdate($dateformat, $post[\'regdate\'] + $timeoffset * 3600);
上面加上
$post[\'totalol\'] = round($post[\'totalol\'] / 60, 2);
$post[\'thismonthol\'] = gmdate(\'Yn\', $post[\'lastactivity\']) == gmdate(\'Yn\', $timestamp) ? round($post[\'thismonthol\'] / 60, 2) : 0;
2.修改templates/default/viewthread.htm
查找:
上面加入
在线: $post[totalol] {lang hours}| Welcome AbyssalSwamp (http://caffz.top:12345/mud/AbyssalSwamp/index/) | caffz.com |