修改文件include/arc.archives.class.php文件。 1、搜索 function GetPreNext($gtype='') 2、将这个函数的所有内容替换为 function GetPreNext($gtype='') { $rs = ''; if(count($this->PreNext) { $aid = $this->ArcID; $preR = $this->dsql->GetOne("Select id From `dede_arctiny` where id-1 And typeid='{$this->Fields['typeid',}' order by id desc"); $nextR = $this->dsql->GetOne("Select id From `dede_arctiny` where id>$aid And arcrank>-1 And typeid='{$this->Fields['typeid',}' order by id asc"); $next = (is_array($nextR) ? " where arc.id={$nextR['id',} " : ' where 1>2 '); $pre = (is_array($preR) ? " where arc.id={$preR['id',} " : ' where 1>2 '); $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic, t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl]t.sitepath from `dede_archives` arc left join dede_arctype t on arc.typeid=t.id "; $nextRow = $this->dsql->GetOne($query.$next); $preRow = $this->dsql->GetOne($q...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|