天地玄黄之宇宙洪荒 發表於 2023-9-14 00:00:00

织梦dedecms 提示 body has not allow words 问题解决

<span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>此句“body has not allow words!”英文的意思,大概是“文章具有不充许的字符!”我这才恍然大悟,一定是我在后台“系统”—“系统基本参数”—设置版块中的“互动设置”中敏感字词开设得太多,让会员用户中招了。</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>当我,删去那些可有可无的,结果会员发文章正常。可见问题是出在“系统基本参数”上。而当会员遇到“body has not allow words!”提示,不知所谓时,你可以通过以下修定,将英文提示,变为中文提示,这样会员就不会心慌意乱啦——</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改文件:inclide/fileter.inc.php,大约19行左右</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <div class="right">
                <span><u>复制代码</u></span>
</div>
        代码如下:</div>
<div class="msgborder" id="phpcode1" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        if($cfg_notallowstr!='' &amp;&amp; eregi($cfg_notallowstr,$svar))<br>
        {<br>
        preg_match_all("@{$cfg_notallowstr}@",$svar,$me);<br>
        $me = array_unique($me);<br>
        $notallowkeys = '';<br>
        foreach($me as $v){<br>
        $notallowkeys .= $v . ', ';<br>
        }<br>
        $msg = '您发布的内容中带有不被允许的文字 :' . $notallowkeys;<br>
        ShowMsg($msg,'-1');<br>
        exit();<br>
        }</div>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>文件修改后,上传替换即可。</span>
頁: [1]
查看完整版本: 织梦dedecms 提示 body has not allow words 问题解决