推荐应用
版块规则支持html代码 For Discuz!X2.5 修改方法
发布于 2013-04-01
版块规则允许使用 html代码,方便站长加入 内嵌或者广告.
需要修改的文件:
source/admincp/admincp_forums.php
查找
需要修改的文件:
source/admincp/admincp_forums.php
查找
showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', html2bbcode($forum['description'])), 'textarea');
替换为showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', $forum['description']), 'textarea');
查找showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', html2bbcode($forum['rules'])), 'textarea');
替换为showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', $forum['rules']), 'textarea');
查找 (这里有两个地方都要改)$descriptionnew = preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode($_GET['descriptionnew'], 1, 0, 0, 0, 1, 1, 0, 0, 1));
替换为$descriptionnew = addslashes(dstripslashes($_GET['descriptionnew']));
查找$rulesnew = preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode($_GET['rulesnew'], 1, 0, 0, 0, 1, 1, 0, 0, 1));
替换为$rulesnew = addslashes(dstripslashes($_GET['rulesnew']));
保存,然后上床覆盖就可以了~~!