第 1 頁 (共 2 頁)
[幫忙]phpbb2.01中改顏色的問題
發表於 : 2002-07-10 17:41
由 MelonKing
請問各位先進\r
在phpbb2.01中,首頁的下方有"線上目前線上註冊會員: "
而 [ 系統管理員 ] [ 版面管理員 ]會以不同的顏色顯示\r
請問,我要如何改顏色呢?
小弟感激不盡....
發表於 : 2002-07-10 19:26
由 動機不明
look in includes/page_header.php ==>
around line 121
Code:
[php]<?php
$style_color = '';
if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#CC3300"';
}
else if ( $row['user_level'] == MOD )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#006600"';
?>[/php]
and around line 365
Code:
[php]<?php
'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#CC3300">', '</span>'),
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#006600">', '</span>'),
?>[/php]
You can change the colors to your liking and add styles here as well.
發表於 : 2002-07-10 21:31
由 MelonKing
了解....感謝大大^^
發表於 : 2002-07-10 21:34
由 frank
其實直接進控制台\r
按修改風格\r
改font2
和font3
就可以了
不用動到程式.........
這是OOHOO教我的\~
發表於 : 2002-07-10 21:40
由 MelonKing
frank 寫:其實直接進控制台\r
按修改風格\r
改font2
和font3
就可以了
不用動到程式.........
這是OOHOO教我的\~
先謝謝上面的兩位大大.....
容小弟再請問一下....我想改站名的顏色....
於是我在控制台中的站名前後打上:<font color="indigo">站名</font>
結果顏色是變了....但是底下會多出一個我的站名的文字連結.....
請問這樣我要如何改顏色又不會出現那種文字連結呢??
小弟先謝了
發表於 : 2002-07-10 22:21
由 動機不明
抱歉,我看不懂耶....
試著回答看看
先將控制台的 站名 還原
然後修改 overall_header.tpl 這一段\r
代碼: 選擇全部
<span class="maintitle">{SITENAME}</span>
為什麼會有連結出現呢?? (怪)
發表於 : 2002-07-11 13:47
由 MelonKing
嗯....我在說清楚一點....
那個連結是出現在論壇首頁的logo下方......並且有超連結....形式如下
==========================
站名 首頁" vspace="1" />
==========================
醬不知道大大能不能了解了呢??
再次麻煩各位大大....小弟先謝過^^
發表於 : 2002-07-11 13:49
由 動機不明
沒道理的,你有沒有改 overall_header.tpl 這檔案?
有沒有圖片?
發表於 : 2002-07-11 17:04
由 MelonKing
我有加入東森新聞速報....
而大大問的有無加入圖片是什麼意思呢??
是不是問logo還有沒有出現呢? (有的!!超連結就出現在logo下方..-_-)
發表於 : 2002-07-11 19:21
由 動機不明
哦~
我原本的意思是想請你將發生狀況抓圖下來 (貼圖)
可以看一下你架的論壇嗎?
(用PM也可以)
再來,請你將 overall_header.tpl 這檔案
由
<body............(略) > 這一行開始
將 code 貼出來可以嗎?
說不定這樣就能解決問題

發表於 : 2002-07-11 20:27
由 MelonKing
問題圖片如下
代碼: 選擇全部
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br /> </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu"> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span>
<!-- END switch_user_logged_out -->
</td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
</table></td>
</tr>
</table>
<br /><table width="440" border="0" cellpadding="1" cellspacing="0" vspace="0" hspace="0" bgcolor="CC0033" align="center">
<tr>
<td width="440">
<table width="100%" border="0" cellpadding="0" bgcolor="FFFFFF" cellspacing="0">
<tr>
<td width="65" bgcolor="FFFFFF"><a href="http://202.178.185.123/cooperate/index.htm" target="_blank"><img src="http://www.ettoday.com.tw/image/latest.gif" border="0"></a></td>
<td><iframe marginwidth=0 marginheight=0 src="http://www.ettoday.com/common/ticker.htm" frameborder=0 width=380 scrolling=no height=18 name="ticker"></iframe></td>
</tr>
</table>
</td>
</tr>
</table>
資料如上...麻煩大大解惑^^
小弟再次感謝^^
發表於 : 2002-07-11 20:28
由 小竹子
因為那個欄位屬性不是可以輸入語法的欄位
發表於 : 2002-07-11 21:13
由 動機不明
小竹子 寫:因為那個欄位屬性不是可以輸入語法的欄位
ㄘㄟˊ
小竹子早點跳出來解惑咩~ ="=
p.s 我剛剛試著改我的版,結果出現跟你一樣的情況,所以小竹子大大說的是對的,先將你的控制台改回來吧!
真的需要換顏色,請改這個吧!
開啟 subSilver.css
修改\r
代碼: 選擇全部
/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #[color=red]000000[/color];
}
不過這樣有個缺點,就是maintitle連同 h1,h2都一起定義了,因此最好再多設一組,變成
代碼: 選擇全部
/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #[color=red]000000[/color];
}
h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}
列出我的給你參考
代碼: 選擇全部
/* The largest text used in the index page title and toptic title etc. */
.maintitle { font-family: 細明體, "Trebuchet MS", Verdana, Arial; font-size : 16pt; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}
h1,h2 { font-family: 標楷體, "Trebuchet MS", Verdana, Arial; font-size : 14pt; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}
發表於 : 2002-07-11 21:16
由 MelonKing
嗯.....ok....
我了解了.....
謝謝各位大大^^
發表於 : 2002-07-11 21:17
由 小竹子
拍謝啦\r
我以為河風知道咩^_^!!!