来自 IT技术新闻 2018-10-27 09:03 的文章

DEDECMS上一篇下一篇调用图片的方法

只限5.5的版本5.3的没看过,目录地址 /include/arc.archives.class.php 查找:arc.money,arc.filename, 在后面添加arc.litpic, 查找:$this-PreNext[

只限5.5的版本5.3的没看过

目录地址:/include/arc.archives.class.php

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

查找:$this->PreNext['pre'] = "上AG88平台:<a href='$mlink'>{$preRow['title']}</a> ";

替换:〔上AG88平台
if(empty($preRow['litpic']))
{
$this->PreNext['pre'] = "上AG88平台:<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=\"上AG88平台:{$preRow['title']}\"></a></div>
<div class=\"pre_right\">
<p>上AG88平台:{$preRow['title']}</p>
<div class=\"photo_textlink\">◀<a href=\"$mlink\">浏览上一张图片</a></div>

织梦内容管理系统

</div></div>";
}

查找:$this->PreNext['next'] = "下AG88平台:<a href='$mlink'>{$nextRow['title']}</a> ";

替换:if(empty($nextRow['litpic']))
{
$this->PreNext['next'] = "下AG88平台:<a href='$mlink'>{$nextRow['title']}</a> ";
}else{
$nextimage = str_replace('/photo-img', 'http://images.jiaju123.com',trim($nextRow['litpic']));
$this->PreNext['next'] = "<div class=\"photo_article_next\">
<div class=\"pre_photo\"><a href=\"$mlink\"><img src=\"$nextimage\" alt=\"下AG88平台:{$nextRow['title']}\"></a></div>
<div class=\"pre_right\">
<p>下AG88平台:{$nextRow['title']}</p>
<div class=\"photo_textlink\">▶<a href=\"$mlink\">浏览下一张图片</a></div>
</div></div>"; dedecms.com
}

烈火网提示:以上教程来自DEDE论坛,没有经过测试。

http://www.bkjia.com/dedecms/361955.htmlwww.bkjia.comtruehttp://www.bkjia.com/dedecms/361955.htmlTechArticle只限5.5的版本5.3的没看过,目录地址 /include/arc.archives.class.php 查找:arc.money,arc.filename, 在后面添加arc.litpic, 查找:$this-PreNext[ 只限5.5的版本...

本文源自: AG88平台