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