时尚酷族
标题:
让本版规则支持html for DZx1.5
[打印本页]
作者:
CooL.泪猪
时间:
2011-1-16 21:58
标题:
让本版规则支持html for DZx1.5
找到source/admincp/admincp_forums.php,打开
& u5 _- N4 H( v0 d: h6 r. Q$ ?
1、查找:
showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', html2bbcode($forum['description'])), 'textarea');
复制代码
修改为:
showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', $forum['description']), 'textarea');
复制代码
2、再查找:
showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', html2bbcode($forum['rules'])), 'textarea');
复制代码
修改为:
showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', $forum['rules']), 'textarea');
复制代码
3、再查找:
$descriptionnew = addslashes(preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode(dstripslashes($_G['gp_descriptionnew']), 1, 0, 0, 0, 1, 1, 0, 0, 1)));
复制代码
修改为:
$descriptionnew = addslashes(dstripslashes($_G['gp_descriptionnew']));
复制代码
4、再查找:
$rulesnew = addslashes(preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode(dstripslashes($_G['gp_rulesnew']), 1, 0, 0, 0, 1, 1, 0, 0, 1)));
复制代码
修改为:
$rulesnew = addslashes(dstripslashes($_G['gp_rulesnew']));
复制代码
完成
: N, O( `8 h; @) D& \
欢迎光临 时尚酷族 (http://www.coqq.net/)
Powered by Discuz! X3.2