在上一篇文章中,我们提到如何解决DedeCMS 投票出现Request Error的问题,不知道你的问题有没有成功解决呢?现在再来说一下如何彻底的杜绝此类错误的出现——修改DEDE默认生成的投票代码。请按下面的步骤操作:
Dohl,d :G6 xJlE| 打开DEDECMS安装目录的Include目录,找到dedevote.class.php文件,大约100行左右,找到:
D]LFX/hlH 9Y!0>&o Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.veryhuo.com]
)U"D4j*p $items = "<table width='$tablewidth' border='0' cellspacing='1' cellpadding='1' bgcolor='$tablebg'>\r\n";
6qmo
ZAg $items .= "<form name='voteform' method='post' action='".$GLOBALS['cfg_phpurl']."/vote.php' target='_blank'>\r\n";
0k .# $items .= "<input type='hidden' name='dopost' value='send' />\r\n";
|zRoXO`]-* $items .= "<input type='hidden' name='aid' value='".$this->VoteID."' />\r\n";
X=*Yzz} $items .= "<input type='hidden' name='ismore' value='".$this->VoteInfos['ismore']."' />\r\n";
OLd$oxKR 修改为:
Hz;jJ&S ;_Of`C+ Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.veryhuo.com]
b@Mng6R $items .= "<form name='voteform' method='post' action='".$GLOBALS['cfg_phpurl']."/vote.php' target='_blank'>\r\n";
y<Z#my$`|n $items .= "<input type='hidden' name='dopost' value='send' />\r\n";
E-7a`S $items .= "<input type='hidden' name='aid' value='".$this->VoteID."' />\r\n";
ki][qvXJ $items .= "<input type='hidden' name='ismore' value='".$this->VoteInfos['ismore']."' />\r\n";
n79DS(t $items .= "<table width='$tablewidth' border='0' cellspacing='1' cellpadding='1' bgcolor='$tablebg'>\r\n";
LYxlo<f 再将:
V]CK' uq#h\p| Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.dede58.com]
QVZ6;/ $items.="</form>\r\n</table>\r\n";
JQvQm|\nc 修改为:
{bq-: CZe a?Qcf;o Copy to ClipboardLiehuo.Net Codes引用的内容:[
www.dede58.com]
+ouy]b0`t $items.="</table>\r\n</form>\r\n";
#t9=qR~" 用同样的方法,再修改dedevote.inc.php文件,保存。然后再到后台生成一下代码看看吧!
%imBGh