DZ升级到3.5版本后出现:抱歉,您尚未输入标题或内容 - Discuz
升级3.5后,发帖时出现,(抱歉,您尚未输入标题或内容)怎样处理呢解决方法,打开文件编辑:template\one_simple\forum\post.php
第一行的JS代码全部删除掉
<script type="text/javascript">换成下面的代码即可
[*]<script type="text/javascript">
[*] var allowpostattach = parseInt('{$_G['group']['allowpostattach']}');
[*] var allowpostimg = parseInt('$allowpostimg');
[*] var pid = parseInt('$pid');
[*] var tid = parseInt('$_G');
[*] var extensions = '{$_G['group']['attachextensions']}';
[*] var imgexts = '$imgexts';
[*] var postminchars = parseInt('$_G['setting']['minpostsize']');
[*] var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
[*] var postminsubjectchars = parseInt('$_G['setting']['minsubjectsize']');
[*] var postmaxsubjectchars = parseInt('$_G['setting']['maxsubjectsize']');
[*] var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
[*] var seccodecheck = parseInt('<!--{if $seccodecheck}-->1<!--{else}-->0<!--{/if}-->');
[*] var secqaacheck = parseInt('<!--{if $secqaacheck}-->1<!--{else}-->0<!--{/if}-->');
[*] var typerequired = parseInt('{$_G or ''}');
[*] var sortrequired = parseInt('{$_G or ''}');
[*] var special = parseInt('$special');
[*] var isfirstpost = <!--{if $isfirstpost}-->1<!--{else}-->0<!--{/if}-->;
[*] var allowposttrade = parseInt('{$_G['group']['allowposttrade']}');
[*] var allowpostreward = parseInt('{$_G['group']['allowpostreward']}');
[*] var allowpostactivity = parseInt('{$_G['group']['allowpostactivity']}');
[*] var sortid = parseInt('$sortid');
[*] var special = parseInt('$special');
[*] var fid = $_G['fid'];
[*] var postaction = '{$_GET['action']}';
[*] var ispicstyleforum = <!--{if $_G['forum']['picstyle']}-->1<!--{else}-->0<!--{/if}-->;
[*]</script>
实际上就是新版本在发帖上做了调整,旧版本自定义的模版变量缺少了导致的,上面的JS是从3.5最新版官方模版提取的代码
来源:http://www.kaikuoyun.com/thread-1377-1-1.html
免责声明:如果侵犯了您的权益,请联系站长,我们会及时刪除侵权內容,谢谢合作!
页:
[1]