修改DedeCMS频道模板"图文资讯"为广告位的方法

上天赐予了你宝贵的生命,必定要让你在一生中,坚持,奋斗到最后一秒,燃烧尽生命的火焰。
今天自己修改了下文章频道模板,因为不喜欢列表式模板,但一些文章没有图片,所以就想办法把些模板中的"图文资讯"换成广告位,经测试,各浏览器中无错位现象!希望能给新手一些帮忙, 多个广告位就多份收入嘛, 废话不说, 进入主题:
  首先: 打开 index_article.htm 模板,找到以下代码:
<div class="picnews mt1">
<dl class="tbox">
<dt><strong>图文资讯</strong></dt>
<dd>
<ul class="e1">
{dede:arclist row=5 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}
<li><a rel="nofollow noopener noreferrer" href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>{/dede:arclist}
</ul>
</dd>
</dl>
</div><!-- /picnews -->
  修改为:
<div class="picnews mt1">
<dl class="tbox">
<script src='/plus/ad_js.php?aid=12' language='javascript'></script> <!--注意:前边是广告代码,请自行替换-->
</dl>
</div> <!-- /picnews -->

以上就是修改DedeCMS频道模板"图文资讯"为广告位的方法。永远比对手快一步。更多关于修改DedeCMS频道模板"图文资讯"为广告位的方法请关注haodaima.com其它相关文章!

您可能有感兴趣的文章
dedecms如何实现任意页面调用当前会员信息的方

DedeCMS织梦判断是否有二级栏目输出HTML代码

织梦dedecms dede:arclist输出取消换行符

dedecms文章添加字段填栏目id,内容页调用字段里的栏目文章

dedeCMS首页列表页文章页调用tag的方法