在forumdisplay.php里加这段
if($forum['viewperm'] && !forumperm($forum['viewperm']) && !$forum['allowview']) {
$thread['message'] = "谢谢您的访问!由于权限不够,您仅可浏览本版主题标题。";
} elseif($thread['creditsrequire'] && $thread['creditsrequire'] > $credit && !$ismoderator) {
include language('messages');
eval("\$show_message = \"".$language[thread_nopermission]."\";");
$thread['message'] = $show_message;
} else {
if (strstr($thread['message'],'<') && strstr($thread['message'],'>')) {
$thread['message'] = preg_replace("/<(??:\/?[A-Za-z][^>=\s]*(?:[=\s](??!['\"])[\s\S]*?|'[^']*'|\"[^\"]*\"))*)|(?:!--[\s\S]*?--))>|\[(hide|sell|php|code|quote|url|img).*?\].+?\[\/\\1\]|\[\/?[a-z]{1,10}.{0,50}\]/is","",$thread['message']);}
$thread['message'] = str_replace(array('"','<','>'), array('"','<','>'), $thread['message']);
}
$thread['message'] = cutstr($thread['message'],268); //内容截断
$thread['message'] = nl2br(preg_replace("/(\r?\n)+/","\n",trim($thread['message'])));
$thread['shortmsg'] = '<font color=black>'.preg_replace('/\[\/?[a-z]{1,10}.{0,10}\]/is','',$thread[message]).'</font>';
在forumdisplay.htm里加这段
$thread[shortmsg]
但是还是显示不了,谁会帮着改改啊 |