織夢移動版頁面點擊下一篇獲取不到id

1.首先找到網站目錄下面的/include/arc.archives.class.php文件php

 

2.找到837行的以下內容html

 

if ( defined('DEDEMOB') )
 {
 $mlink = 'view.php?aid='.$preRow['id'];
 } else {
 $mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],
 $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);
 }

 

3 並將其中的把這一行網站

$mlink = 'view.php?aid='.$preRow['id'];

  

修改成url

 

$mlink = 'view.php?aid='.$nextRow['id'];

  

保存模板以後從新生成頁面,這個問題只適用於dedecmsV5.7sp2htm

 

 

來源:http://www.wx0775.com/328.htmlblog

相關文章
相關標籤/搜索