织梦模板建站程序, dedecms, 留言, 留言板, 统计
查找guestbook.php73行左右 //显示所有留言 else{setcookie(‘GUEST_BOOK_POS’,GetCurUrl(),time() 3600,’/');if($g_isadmin)$sql=‘select*from`dede_guestbook`orderbyiddesc’;else$sql=‘select*from`dede_guestbook`whereischeck=1orderbyiddesc’;$dlist=newDataListCP();$dlist->pageSize=10;$dlist->SetParameter(‘gotopagerank’,$gotopagerank);$dlist->SetTemplate(DEDETEMPLATE.’/plus/guestbook.htm’);$dlist->SetSource($sql);$dlist->Display();}?> 改成 //显示所有留言 else{setcookie(‘GUEST_BOOK_POS’,GetCurUrl(),time() 3600,’/');if($g_isadmin)$sql=‘select*from`dede_guestbook`orderbyiddesc’;else$sql=‘select*from`dede_guestbook`whereischeck=1orderbyiddesc’;$dsql->Execute(‘cs’,$sql);$totalgb=$dsql->GetTotalRow(‘cs’);//留言数量$dlist=newDataListCP();$dlist->pageSize=10;$dlist->SetParameter(‘gotopagerank’,$gotopagerank);$dlist->SetTemplate(DEDETEMPLATE.’/plus/guestbook.htm’);$dlist->SetSource($sql);$dlist->Display();}?> ————————————————————————–然后在网站的模板文件用 来显示 留言板 , 数量 , 留言 |
DedeCms调用wp文章出现标题重复的解决方法