TShopping

 找回密碼
 註冊
搜索
查看: 1950|回復: 0
打印 上一主題 下一主題

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

[複製鏈接]
跳轉到指定樓層
1#
發表於 2012-2-3 00:48:55 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
插件名稱: 本版塊規則右邊加入Google 廣告
插件來源: 原創插件  
適用版本: Discuz! X2  
語言編碼: BIG繁體
最後更新時間: 2012-01-28
插件作者: i4u2
版權所屬: i4u2.  
支持網站: http://forum.i4u2.biz/forum.php?mod=viewthread&tid=3374&extra=page%3D1



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

[1]. 打開 template/default/forum/forumdisplay.htm 找到



  1. <div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
  2.                                                                 <div class="ptn xg2">$_G['forum'][rules]</div>
  3.                                                         </div>
  4.                                                 <!--{/if}-->

複製代碼

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





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

複製代碼

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



 

臉書網友討論
*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-4-23 15:39 , Processed in 0.089113 second(s), 18 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表