支持反对提示:抱歉,您的请求来路不正确或表单无法提交的解决方法
点击支持或反对时总是提示:抱歉,您的请求来路不正确或表单无法提交,搜了下官方,很多人都出现这种问题,但并没有一个解决的方法。后来自己后台把模板设置成官方默认的,这种问题解决,原因已找到,原来是自己使用的模板问题,于是找到自己所使用的模板内容页文件:viewthread_node.htm(使用宁德模板的朋友会出现这种问题)经过细致的对比,原来自已文件里少了如下代码;&hash={FORMHASH}这样解决起来就方便了,查找如下代码: <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_add">$_G</span></i></a>
替换成如下代码: <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_add">$_G</span></i></a>
再查找如下代码, <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_subtract">$_G</span></i></a>
替换成如下代码:
<a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_subtract">$_G</span></i></a>
后台更新一下缓存即可.
其实这里只是分别在如下代码后面加&hash={FORMHASH}即可<a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G
<a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G鸣谢:520韵味资源社区
页:
[1]