[疑問] 論壇的標題列變色

Computer & Internet
電腦軟體 / 硬體 / 網際網路玩家的交流園地。
諸如問題求助 / 使用教學 / 經驗分享和軟體推薦等,歡迎您進來發表。
回覆文章
頭像
lalala
CA共和國市長
CA共和國市長
文章: 308
註冊時間: 2002-12-05 05:08 am
來自: 台北

[疑問] 論壇的標題列變色

#1

文章 lalala » 2005-01-11 04:48 pm

鳥站您架的論壇標題列區塊的變色是用下面兩種方法的哪一種阿?

http://phpbb-tw.net/phpbb/viewtopic.php?t=20076

http://phpbb-tw.net/phpbb/viewtopic.php?t=12138


如果是後者,因為我是跟鳥站一樣都是用iCGstation,所以第二個步驟就找不到了
不知道鳥站是怎麼改的?  謝謝

頭像
鳥站長
本站地頭蛇兼工友
本站地頭蛇兼工友
文章: 1264
註冊時間: 2002-11-19 08:22 pm
暱稱: 鳥站
來自: 安息日的深紫飛船

Re: [疑問] 論壇的標題列變色

#2

文章 鳥站長 » 2005-01-11 10:06 pm

代碼: 選擇全部

##############################################################
## Mod Title: HyperCell's for all pages
## Mod Version: 1.1.0
## Author: Corey Touchet (Lewt Haxxor on phpbb.com)
## Description: This is a mod to have hypercells work on all of your phpBB2 pages where it'll be usefull.
## CREDIT: Goes to the original author if I ever found out who he was and me for making sure this worked :)
##
## Installation Level: (easy)
## Installation Time: 10 Minutes
## Files To Edit: search_results_topics.tpl, index_body.tpl, viewforum_body.tpl, privmsgs_body.tpl
## Included Files: (n/a)
##############################################################
#  Version History
#  1.1.0 Fixed the {{T_TD_COLOR1}} typo.  Should of been {T_TD_COLOR1}
#
#  1.0.0 Original Release
#
##############################################################
## For Security Purposes, This MOD Cannot Be Posted Or Added At Any Non-Official phpBB Site
##############################################################

##############################################################
## Author Note: Please backup any files before you change them!
##
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

/yourphpdir/templates/subSilver/search_results_topics.tpl

#
#-----[ FIND ]------------------------------------------
#


<td class="row2"><span class="topictitle">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topictitle">{searchresults.TOPIC_TITLE}</a></span><br /><span class="gensmall">{searchresults.GOTO_PAGE}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
#
#NOTE:  sometimes it's easier to comment out the line with a <!--  line to replace --> so you can easily restore files
#       via a telnet session if having to fix a forum from a remote place and dont have the backup with you.


<td class="row2" onMouseOver=this.style.backgroundColor="{T_TD_COLOR1}" onMouseOut=this.style.backgroundColor="" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"><span class="topictitle">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" class="topictitle">{searchresults.TOPIC_TITLE}</a></span><br /><span class="gensmall">{searchresults.GOTO_PAGE}</span></td>

#NOTE:  this.style.backgroundColor="{T_TD_COLOR1}"  can be changed to any color to suit your forum.
#       Just replace the {T_TD_COLOR1} with any color code you want.
#       Hard codes such as #FFFFFF can be used but it is best to use the template system codes for colors.


#
#-----[ CLOSE ]------------------------------------------
#

/yourphpdir/templates/subSilver/search_results_topics.tpl





#
#-----[ OPEN ]------------------------------------------
#

/yourphpdir/templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />


#
#-----[ REPLACE WITH ]------------------------------------------
#
#

<td class="row1" width="100%" height="50" onMouseOver=this.style.backgroundColor="{T_TD_COLOR1}" onMouseOut=this.style.backgroundColor=""  onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />


#
#-----[ CLOSE ]------------------------------------------
#

/yourphpdir/templates/subSilver/index_body.tpl

#
#-----[ OPEN ]------------------------------------------
#

/yourphpdir/templates/subSilver/viewforum_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />


#
#-----[ REPLACE WITH ]------------------------------------------
#

<td class="row1" width="100%" onMouseOver=this.style.backgroundColor="{T_TD_COLOR1}" onMouseOut=this.style.backgroundColor="" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />


#
#-----[ CLOSE ]------------------------------------------
#

/yourphpdir/templates/subSilver/viewforum_body.tpl

#
#-----[ OPEN ]------------------------------------------
#

/yourphpdir/templates/subSilver/privmsgs_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td width="55%" valign="middle" class="{listrow.ROW_CLASS}"><span class="topictitle">&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></span></td>


#
#-----[ REPLACE WITH ]------------------------------------------
#

<td width="55%" onMouseOver=this.style.backgroundColor="{T_TD_COLOR1}" onMouseOut=this.style.backgroundColor="" onclick="window.location.href='{listrow.U_READ}'"><span class="topictitle">&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></span></td>

#
#-----[ CLOSE ]------------------------------------------
#

/yourphpdir/templates/subSilver/privmsgs_body.tpl

#
#------[Upload and impress!]-----------------------------
#
每一個風格不逕相同,所以搜尋「整句」找不到的時候,請改為搜尋部分字串,耐心比對,一定找得到。
2007.10.1 攝於日本京都錦市場 :xd:
圖檔

頭像
lalala
CA共和國市長
CA共和國市長
文章: 308
註冊時間: 2002-12-05 05:08 am
來自: 台北

Re: [疑問] 論壇的標題列變色

#3

文章 lalala » 2005-01-12 02:46 am

因為我有裝 split topic type
在viewform_body_tpl 裡面有這麼一段

代碼: 選擇全部

<!-- mod : split topic type -->
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
	  <td align="left" valign="bottom"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br />{LOGGED_IN_USER_LIST}</b></span></td>
	  <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
	</tr>
	<tr> 
	  <td align="left" valign="middle" width="100%"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
	  <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall">  
                  <!-- BEGIN switch_user_logged_in -->
	  <a href="{U_SEARCH_EXCERPTION_FORUM}">{L_SEARCH_EXCERPTION_FORUM}</a>|
	  <!-- END switch_user_logged_in -->
	  <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>	
	</tr>
  </table>
{TOPICS_LIST_BOX}

不知道鳥站文章中的的這一段是要改哪裡

代碼: 選擇全部

#-----[ OPEN ]------------------------------------------ 
# 

/yourphpdir/templates/subSilver/viewforum_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br /> 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

<td class="row1" width="100%" onMouseOver=this.style.backgroundColor="{T_TD_COLOR1}" onMouseOut=this.style.backgroundColor="" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br /> 


# 
#-----[ CLOSE ]------------------------------------------ 


是要改在topics_list_box.tpl裡面嗎?

頭像
鳥站長
本站地頭蛇兼工友
本站地頭蛇兼工友
文章: 1264
註冊時間: 2002-11-19 08:22 pm
暱稱: 鳥站
來自: 安息日的深紫飛船

Re: [疑問] 論壇的標題列變色

#4

文章 鳥站長 » 2005-01-12 06:50 am

我自己是修改 viewforum_body.tpl 。

如果你在 viewforum_body.tpl 找不到可以下手的地方,原因可能就是如你所說的,因為你有安裝 Split topic type 的原故。
那麼,恐怕你得花上一些時間來研究原來應該修改 viewforum_body.tpl 的部分要改為修改哪一個檔案了。

你說的 Split topic type 我也有裝,不過我裝的是 1.0.5 版,對於後來的版本例如 2.0.x 可以說是敬而遠之。
因為該外掛作者後來釋出的外掛,在設計上可以說是翻新了 phpBB 原來的結構。
當然他有他自己秉持的理由,不過對於喜愛安裝外掛的人來說,安裝了他的外掛之後,以後要再安裝其他外掛就會很頭疼了,所以....

關於這一點,竹貓有討論:http://phpbb-tw.net/phpbb/viewtopic.php?t=23817
所以你自己斟酌看看吧!建議你 Split topic type 改裝 1.0.5 版就可以了。
2007.10.1 攝於日本京都錦市場 :xd:
圖檔

頭像
lalala
CA共和國市長
CA共和國市長
文章: 308
註冊時間: 2002-12-05 05:08 am
來自: 台北

Re: [疑問] 論壇的標題列變色

#5

文章 lalala » 2005-01-12 08:15 am

原來真的是這個原因阿

因為上鳥站的網站覺得很好用
所以split topic type 是我剛接觸phpbb就裝上的外掛(剛剛看了一下真的是2.01版)
難怪我後來要裝其他外掛時
動到某些檔案時  例如viewform_body_tpl 
頭痛的要死  因為根本不知道如何改
既然鳥站說出了原因  這樣我就先來移除2.01版改裝1.05版
謝謝鳥站長

頭像
lalala
CA共和國市長
CA共和國市長
文章: 308
註冊時間: 2002-12-05 05:08 am
來自: 台北

Re: [疑問] 論壇的標題列變色

#6

文章 lalala » 2005-01-12 09:57 am

剛剛差點哭出來
我將2.01版本加上去的通通移除
結果"慘"生了一個出乎意料的結果
從各版面點進去後 沒有半篇文章
但是從top5點進去文章仍在


於是我異想天開 以為將1.5版本裝上去後文章會回來
於是我由鳥站提供的網址去尋找傳說中的1.5版
http://phpbb-tw.net/phpbb/viewtopic.php?p=158917#158917
但是  始終卡在viewforum_body.tpl
我發現subsliver跟icgstation的這個檔案有許多地方滿不一樣的
每次改這個檔案  都找不到要找的code
不知道鳥站長可不可以提供您的icgstation的viewforum_body.tpl 給我參考一下


最後:好險,之前看了鳥站長的文章後,就開始修改前都會備份,所以我又把2.01版重新裝了上去,文章又回來了......不幸中的大幸...............

頭像
鳥站長
本站地頭蛇兼工友
本站地頭蛇兼工友
文章: 1264
註冊時間: 2002-11-19 08:22 pm
暱稱: 鳥站
來自: 安息日的深紫飛船

Re: [疑問] 論壇的標題列變色

#7

文章 鳥站長 » 2005-01-12 08:04 pm

提供給你也不見得對你有幫助,因為每一個人安裝的外掛不同。
加上我又是屬於那種喜歡改來改去的人,所以我的 viewforum_body.tpl 和原來 iCGstation 的 viewforum_body.tpl 有不少差距。

我寄給你了,你自己研究看看吧!
2007.10.1 攝於日本京都錦市場 :xd:
圖檔

頭像
lalala
CA共和國市長
CA共和國市長
文章: 308
註冊時間: 2002-12-05 05:08 am
來自: 台北

Re: [疑問] 論壇的標題列變色

#8

文章 lalala » 2005-01-12 09:37 pm

經過跟鳥站長的檔案比對出來後  順利安裝標題列變色外掛成功

我發現Split topic type 2.0版  關於改viewforum_body.tpl 裡頭有些地方
要到topics_list_box.tpl改  
因為viewforum_body.tpl 裡面的部分code都在topics_list_box.tpl裡面

感謝鳥站長的幫忙 :grin:

回覆文章

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 4 位訪客