zoukankan      html  css  js  c++  java
  • dede 手机模板 上一篇下一篇 链接错误问题解决办法

    打开 includearc.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'];
    }
     
    查找
     if ( defined('DEDEMOB') )
                    {
                        $mlink = 'view.php?aid='.$preRow['id'];
    改成
     if ( defined('DEDEMOB') )
                    {
                        $mlink = 'view.php?aid='.$nextRow['id'];
     
    手机版本专用调用标签
    手机版上一篇调用代码:{dede:prenext get='prem'/}
    手机版下一篇调用代码:{dede:prenext get='nextm'/}
  • 相关阅读:
    记住密码 cookie+MD5 的应用[转]
    TDD测试[转]
    架构模式随笔
    MVC架构探究及其源码实现
    强大的SqlCacheDependency【转】
    使用Nant构建入门
    web架构设计经验分享[转]
    DIV+CSS布局大全
    如何突破Windows 2003 远程桌面连接数限制
    大型互联网网站架构心得[转]
  • 原文地址:https://www.cnblogs.com/haohaosky/p/12738612.html
Copyright © 2011-2022 走看看