织梦移动版页面点击下一篇获取不到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

相关文章
相关标签/搜索