Board logo

Title: [学习笔记]关于JS调用后,乱码的解决方案。 [Print this page]

Author: com    Time: 2007-12-27 01:30     Title: [学习笔记]关于JS调用后,乱码的解决方案。

在每一个JS调用的后段注明编码 charset=gbk
Author: com    Time: 2007-12-29 06:10

在贴中显示在线时间 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