dedecms(本例为V57_UTF8_SP1)中在互动部分有词语过滤功能,但是文章部分没有添加此功能,我们自己手动添加下发布文章禁用词语过滤功能。
在/dede/article_add.php中的代码:
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { $arcrank = -1; }
之前添加代码:
//词汇过滤检查 if( $cfg_notallowstr != '' ) { if(preg_match("#".$cfg_notallowstr."#i", $title)) { ShowMsg("title has not allow words!","-1"); exit(); } if(preg_match("#".$cfg_notallowstr."#i", $shorttitle)) { ShowMsg("shorttitle has not allow words!!","-1"); exit(); } if(preg_match("#".$cfg_notallowstr."#i", $description)) { ShowMsg("description has not allow words!","-1"); exit(); } if(preg_match("#".$cfg_notallowstr."#i", $body)) { ShowMsg("body has not allow words!","-1"); exit(); } }
同时修改/dede/article_edit.php中对应代码部分就可以了。
你好,你购买的哪个模板,缺少什么文件,提示啥,麻烦截图告知下!
你好,麻烦加下客服QQ:820896380 帮你查看下!
你好,安装问题参考下教程:http://www.52muban.com/1472.html 如还有问题可以联系下客服QQ:820896380帮忙查看!
已经更新了,请重新下载!
联系下客服QQ:820896380