織夢自20150618以后的版本升級后,M功能手機站出現,由于程序編寫有一個錯誤,導致手機站文章頁上一篇 下一篇鏈接錯誤。今天秀站網分享下修改教程,修復下程序,希望對您有幫助。
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'/}
手機版下一篇調用代碼:
{dede:prenext get='nextm'/}
|
新聞熱點
疑難解答