织梦自20150618以后的版本升级后,M功能手机站出现,由于程序编写有一个错误,导致手机站文章页上一篇 下一篇链接错误。今天织梦58分享下修改教程,修复下程序,希望对您有帮助。
1.打开 include/arc.archives.class.php 文件
首先查找:第839行
$mlink = 'view.php?aid='.$preRow['id'];改成:
$mlink = 'view.php?aid='.$nextRow['id'];解决方法二:
1.打开 include/arc.archives.class.php 文件
首先查找:
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";在这段代码后面增加:
$this->PreNext['prem'] = "上一篇:<a href='view.php?aid={$preRow['id']}'>{$preRow['title']}</a> ";继续查找:
$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";在这段代码后面增加:
$this->PreNext['nextm'] = "下一篇:<a href='view.php?aid={$nextRow['id']}'>{$nextRow['title']}</a> ";继续查找:
else if($gtype=='nextimg'){ $rs = $this->PreNext['nextimg']; }在这段代码后面增加:
else if($gtype=='prem'){ $rs = $this->PreNext['prem']; } else if($gtype=='nextm'){ $rs = $this->PreNext['nextm']; }2.手机版上一篇调用代码:
{dede:prenext get='prem'/}