dedecms wap 上一篇 下一篇 連接出錯

 

打開 \include\arc.archives.class.php 文件javascript

大約在839 行,查找  $mlink = 'view.php?aid='.$preRow['id'];        修改成  $mlink = 'view.php?aid='.$nextRow['id'];   php

if(is_array($nextRow))
            {
                if ( defined('DEDEMOB') )
                {
                    $mlink = 'view.php?aid='.$preRow['id'];   修改成 $mlink = 'view.php?aid='.$nextRow['id'];  
                } else {
                    $mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],
                    $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);
                }
    
                $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
                $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\"/></a> ";
            }
            else
            {
                $this->PreNext['next'] = "下一篇:沒有了 ";
                $this->PreNext['nextimg'] ="<a href='javascript:void(0)' alt=\"\"><img src=\"/templets/default/images/nophoto.jpg\" alt=\"對不起,沒有下一圖集了!\"/></a>";
            }
        }
相關文章
相關標籤/搜索