woff 發表於 2008-7-25 15:30:52

人工修改廣告位,優化顯示速度賺更多的廣告費

以下方法僅適用于DZ6.1,方法雖然麻煩點,但與直接把廣告代碼添加到後台,兩者相比,顯示速度差別較大.
成功演示網址:http://www.bbs210.com
                   http://www.52mcubbs.com


1、頁頭通欄廣告修改辦法
修改模版中header.htm文件
查找:


<div id="ad_headerbanner"></div>


在其後面添加你的廣告代碼

2.頁底通欄廣告修改辦法
修改模版中foot.htm文件


</div>


在此中間處添加你的廣告代碼

<!--{if !empty($jsmenu) && (empty($bbclosed) || $adminid == 1)}-->{template jsmenu}<!--{/if}-->


3.貼子右側廣告修改方法:
修改viewthread.htm


<div id="ad_thread3_$post"></div><div class="ad_pip">
                                       <!--{if $post['number']==1}-->
你的代碼</script><!--{/if}-->
</div>
<!--{/if}--><div id="ad_thread4_$post"></div>


4.貼子下方修改方法:
修改viewthread.htm模版


<!--{if $post['number'] == 1 && ($thread['tags'] || $relatedkeywords)}-->
                                                                <p class="posttags">{lang thread_keywords}
                                                                <!--{if $thread['tags']}-->$thread<!--{/if}-->
                                                                <!--{if $relatedkeywords}--><span class="postkeywords">$relatedkeywords</span><!--{/if}-->
                                                                </p>
                                                      <!--{/if}-->
<!--{if$post['number'] == 1}-->
你的廣告代碼<!--{else}--><!--{/if}-->
                                                      <!--{if $relatedthreadlist && !$qihoo['relate']['position'] && $post['number'] == 1}-->
5,點晴廣告劃字代碼放置方法:
分兩步進行:1首先把此段代碼





<script src="http://www230.clickeye.cn/common/clickeye.js"></script>放置foot.htm在之間
{eval output();}
這裏加代碼




</body>


2打開viewthread.htm
查找

class="mainbox"
viewthreadid='clickeye_content'




這段放在帖子風格中,然後更新緩存


<div class="mainbox viewthread" id='clickeye_content'>


6.帖子標題下面的廣告修改方法
查找viewthread.htm


<h2>$post</h2>


然後在下面添加代碼


<!--{if $post['number']==1}-->(這句是只顯示在1樓,如果要全部樓層顯示,可以去掉)
廣告代碼
<!--{/if}-->


7. 完成
頁: [1]
查看完整版本: 人工修改廣告位,優化顯示速度賺更多的廣告費