[x1.5]版规支持HTML

作者:zqcheng    发布于8年前 (2011-03-21)    阅读:  281  次

原作:http://www.discuz.net/thread-1599442-1-1.html
打开:/source/admincp/admincp_forums.php
查找:

  1. showsetting(‘forums_edit_basic_description’, ‘descriptionnew’, html2bbcode($forum[‘description’]), ‘textarea’);

复制代码

改成:

  1. showsetting(‘forums_edit_basic_description’, ‘descriptionnew’, $forum[‘description’], ‘textarea’);

复制代码

查找:

  1. showsetting(‘forums_edit_basic_rules’, ‘rulesnew’, html2bbcode($forum[‘rules’]), ‘textarea’);

复制代码

改成:

  1. showsetting(‘forums_edit_basic_rules’, ‘rulesnew’, $forum[‘rules’], ‘textarea’);

复制代码

查找:

  1. $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)));

复制代码

改成:

  1. $descriptionnew = addslashes(dstripslashes($_G[‘gp_descriptionnew’]));

复制代码

查找:

  1. $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)));

复制代码

改成:

  1. $rulesnew = addslashes(dstripslashes($_G[‘gp_rulesnew’]));

复制代码

一朋友要求移植到DX上,研究了下,共享办法吧.