打开 \include\arc.archives.class.php
1. 找到 $this->PreNext[‘pre‘] = "上一篇:<a href=‘$mlink‘>{$preRow[‘title‘]}</a> ";
改为 $this->PreNext[‘prem‘] = "上一篇:<a href=‘view.php?aid={$preRow[‘id‘]}‘>{$preRow[‘title‘]}</a> ";
2. 找到 $this->PreNext[‘next‘] = "下一篇:<a href=‘$mlink‘>{$nextRow[‘title‘]}</a> ";
改为 $this->PreNext[‘nextm‘] = "下一篇:<a href=‘view.php?aid={$preRow[‘id‘]}‘>{$nextRow[‘title‘]}</a> ";
3. 找到 else if($gtype==‘nextimg‘){ 2 $rs = $this->PreNext[‘nextimg‘]; 3 }
后面添加
else if($gtype==‘prem‘){ $rs = $this->PreNext[‘prem‘]; } else if($gtype==‘nextm‘){ $rs = $this->PreNext[‘nextm‘]; }
修改完毕,手机版调用:
上一篇 {dede:prenext get=‘prem‘/}
下一篇 {dede:prenext get=‘nextm‘/}