1 頁 (共 1 頁)

[問題]Top5的背景顏色

發表於 : 2004-12-11 00:33
英明神舞
●架設主機作業系統:Linux Red Hat 8.0
●快速架站程式:Apache Web Server 1.3.31 (Unix)
●空間連結: http://bb.kcy-games.com
●安裝的程式:MySQL 4.0.17 PHP 4.3.8
●phpBB2 版本:phpBB 2.0.10

問題外掛 : Top5 2.1.0 (加速改良版)

安裝 Top5 2.1.0 後正常在預設風格 subsilver 中顯示及運作

之後新增風格 wowAlliance , 再在 templates / wowAlliance / 加入 adv_top5_body.tpi

再在 templates / wowAlliance / index_body.tpi / 加入<iframe marginwidth=0 marginheight=0 src='adv_top5.php' frameborder=0 width='100%' scrolling=no height=250>
</iframe>

出現結果 : 顯示Top5 的地方其背景顏色是白色及沒有框線

爬文後按"心靈捕手"大大的教學把
adv_top5_body.tpl 中的style="{background-color: #FFFFFF;}"> 改為style="{background-color: {T_BODY_BGCOLOR};}">

出現結果 : 顯示Top5 的地方其背景顏色是藍色及仍然沒有框線

請問應如何修改成為統一的背景顏色呢\r

phpbb新手 , 請恕問題膚淺

發表於 : 2005-06-27 08:14
momoC
我也有同樣的問題。後來發現是 css 檔定義內容不同。
你看在 adv_top5_body.tpl 裡面顯示五筆資料的格式是這樣:

代碼: 選擇全部

	<!-- BEGIN toprow -->
        <tr>
          <td class="row4" align="center" nowrap><span class="forumlink"><a href="{toprow.forum_url}" target="_top" class="forumlink">{toprow.forum_name}</a></span></td>       
          <td class="row2" nowrap {C_ONMOUSEOVER}="this.style.backgroundColor='{C_ROW1_OVER}';" {C_ONMOUSEOUT}="this.style.backgroundColor='{C_ROW1}';" {C_ONCLICK}="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><span class="forumlink"> <a href="{toprow.topic_url}" target="_top" class="topictitle">{toprow.topic}</a></span></td>
          <td class="row1" align="center" nowrap><span class="name">{toprow.poster_url}</span></td>
          <td class="row2" align="center" nowrap><span class="gensmall">{toprow.topic_replies}</span></td>
          <td class="row1" align="center" nowrap><span class="gensmall">{toprow.topic_views}</span></td>
          <td class="row2" align="center" nowrap><span class="gensmall">{toprow.post_time}<br />{toprow.replier_url}&nbsp;<a href="{toprow.last_post_url}" target="_top"><img src="{icon_url}" border="0" alt="{icon_alt}" /></a></span></td>        
        </tr>
        <!-- END toprow -->
我到 風格.css 檔去看,發現檔案並沒有定義到 row1-row3 這些 class,而是定義在 風格.cfg 裡面。我的作法是到 風格.cfg 檔去把它 copy 過來。就可以用了。供參考,也許還有人可以給你更好的建議

發表於 : 2005-06-27 08:19
momoC
唉呀,我竟然爬來爬去爬到去年的文。還正經八百地回了老半天.... :oops:

發表於 : 2005-06-27 08:48
Kill
就當作是寫給其他不懂的人看的吧 ;-)

發表於 : 2005-07-04 21:45
英明神舞
首先非常感謝 momoC 的回覆及非常感動 , 雖然我去年已停用了wowAlliance這個風格 , 但在你的推動下 , 看來有再試一試的需要吧 :lol: