dedecms上一篇下一篇调用图片的方法
2016-06-14来源:易贤网

文件所在目录地址:/include/arc.archives.class.php 

查找:arc.money,arc.filename, 在后面添加arc.litpic, 

查找:$this->prenext['pre'] = 上一篇:<a href='$mlink'>{$prerow['title']}</a> ; 

织梦仿站替换:[上一篇] 

if(empty($prerow['litpic'])) 

$this->prenext['pre'] = 上一篇:<a href='$mlink'>{$prerow['title']}</a> ; 

}else{ 

$preimage = str_replace('/photo-img', 'http://images.jiaju123.com',trim($prerow['litpic'])); 

$this->prenext['pre'] = <div class=photo_article_pre> 

<div class=pre_photo><a href=$mlink><img src=$preimage alt=上一篇:{$prerow['title']}></a></div> 

<div class=pre_right> 

<p>上一篇:{$prerow['title']}</p> 

<div class=photo_textlink>◀<a href=$mlink>浏览上一张图片</a></div> 

</div></div>; 

查找:$this->prenext['next'] = 下一篇:<a href='$mlink'>{$nextrow['title']}</a> ; 

dedecms父栏目替换:if(empty($nextrow['litpic'])) 

$this->prenext['next'] = 下一篇:<a href='$mlink'>{$nextrow['title']}</a> ; 

}else{ 

$nextimage = str_replace('/photo-img', 'http://www.dedecms8.com',trim($nextrow['litpic'])); 

$this->prenext['next'] = <div class=photo_article_next> 

<div class=pre_photo><a href=$mlink><img src=$nextimage alt=下一篇:{$nextrow['title']}></a></div> 

<div class=pre_right><p>下一篇:{$nextrow['title']}</p> 

<div class=photo_textlink>▶<a href=$mlink>浏览下一张图片</a></div> 

</div></div>; 

}

推荐信息