在上一篇文章中,我们提到如何解决DedeCMS 投票出现Request Error的问题,不知道你的问题有没有成功解决呢?现在再来说一下如何彻底的杜绝此类错误的出现——修改DEDE默认生成的投票代码。请按下面的步骤操作:
(C&f~U pN[i%\vh
打开DEDECMS安装目录的Include目录,找到dedevote.class.php文件,大约100行左右,找到:
*"@P2F& /1*\*<cs Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.veryhuo.com]
TUG3#PSnm* $items = "<table width='$tablewidth' border='0' cellspacing='1' cellpadding='1' bgcolor='$tablebg'>\r\n";
0!Yi.'+ $items .= "<form name='voteform' method='post' action='".$GLOBALS['cfg_phpurl']."/vote.php' target='_blank'>\r\n";
+xMDm_TGLA $items .= "<input type='hidden' name='dopost' value='send' />\r\n";
Ap/WgVw; $items .= "<input type='hidden' name='aid' value='".$this->VoteID."' />\r\n";
[eImP
V] $items .= "<input type='hidden' name='ismore' value='".$this->VoteInfos['ismore']."' />\r\n";
BtspnVBez 修改为:
<T['J]k% [yz;OoA:; Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.veryhuo.com]
H_9~gi $items .= "<form name='voteform' method='post' action='".$GLOBALS['cfg_phpurl']."/vote.php' target='_blank'>\r\n";
.$Y[>9 $items .= "<input type='hidden' name='dopost' value='send' />\r\n";
ZEW`?6 $items .= "<input type='hidden' name='aid' value='".$this->VoteID."' />\r\n";
"QMHY\C $items .= "<input type='hidden' name='ismore' value='".$this->VoteInfos['ismore']."' />\r\n";
=&vV$UtV $items .= "<table width='$tablewidth' border='0' cellspacing='1' cellpadding='1' bgcolor='$tablebg'>\r\n";
/SyiJCx0 再将:
_b+3;Dy akR*|iK#b Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.dede58.com]
3 Tt8#B $items.="</form>\r\n</table>\r\n";
Xs4`bbap 修改为:
&`@K/Nf$9 [xHK^JP 8F Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.dede58.com]
STO6cNi $items.="</table>\r\n</form>\r\n";
#fQStO 用同样的方法,再修改dedevote.inc.php文件,保存。然后再到后台生成一下代码看看吧!
j &~OR6