woff 發表於 2012-2-3 00:48:55

Discuz X2! 在本版塊規則右邊加入Google廣告

插件名稱: 本版塊規則右邊加入Google 廣告
插件來源: 原創插件
適用版本: Discuz! X2
語言編碼: BIG繁體
最後更新時間: 2012-01-28
插件作者: i4u2
版權所屬: i4u2.
支持網站: http://forum.i4u2.biz/forum.php?mod=viewthread&tid=3374&extra=page%3D1

http://forum.i4u2.biz/data/attachment/forum/201201/28/192956mdc9ddqr6s9n63xd.png

插件簡介: 本版塊規則右邊加入Google 廣告

. 打開 template/default/forum/forumdisplay.htm 找到



<div id="forum_rules_{$_G}" style="$collapse['forum_rules'];">
                                                                <div class="ptn xg2">$_G['forum']</div>
                                                      </div>
                                                <!--{/if}-->


在<!--{/if}-->下方加入以下代碼





<div style="margin:-170px 0 0 400px" id="G_ads">
                                                      <script type="text/javascript"><!--
google_ad_client = "ca-pub-9555819888986254";
/* 300x250, 已建立 2011/6/15 */
google_ad_slot = "6772144356";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


*修改廣告位置可更改 <div style="margin:-170px 0 0 400px" id="G_ads">margin:後之數值
*其中 -170px指上方 0指右方 0指下方 400px指左方,更改其數值可變攻廣告出現之位置


頁: [1]
查看完整版本: Discuz X2! 在本版塊規則右邊加入Google廣告