discuz 帖子模板加广告的方法
时间:2021-06-30 09:23:15|栏目:|点击: 次
打开模板viewthread.htm
查找
XML/HTML代码
<div id="ad_thread3_$post[count]"></div><div id="ad_thread4_$post[count]"></div>
上面添加
<!--{if $post[number]==1}--><div style="float:left">
<script type="text/javascript"><!--
google_ad_client = "pub-4741390588082798";
/* 336x280, 创建于 08-2-21 */
google_ad_slot = "3351928229";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div><!--{/if}-->
查找
XML/HTML代码
复制代码 代码如下:
<div id="ad_thread3_$post[count]"></div><div id="ad_thread4_$post[count]"></div>
上面添加
复制代码 代码如下:
<!--{if $post[number]==1}--><div style="float:left">
<script type="text/javascript"><!--
google_ad_client = "pub-4741390588082798";
/* 336x280, 创建于 08-2-21 */
google_ad_slot = "3351928229";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div><!--{/if}-->
上一篇:易语言快速更改电脑密码的代码
栏 目:
下一篇:docker 容器上编译 go 程序提示找不到文件问题
本文标题:discuz 帖子模板加广告的方法
本文地址:http://www.codeinn.net/misctech/150557.html






