打開templates/subSilver/index_body.tpl
搜尋
代碼: 選擇全部
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
代碼: 選擇全部
<script language="JavaScript">
<!--
timeID = 10;
stcnt = 16;
msg = "您好^_^";
wmsg = new Array(32);
wmsg[0]=msg;
blnk = " ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
wmsg[i]="";
for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
function wiper()
{
ct = new Date();
h = "0"+ct.getHours();
m = "0"+ct.getMinutes();
s = "0"+ct.getSeconds();
h = h.substring(h.length-2,h.length+1);
m = m.substring(m.length-2,m.length+1);
s = s.substring(s.length-2,s.length+1);
cl = " 目前時間: "+h+":"+m+":"+s+" ";
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
status = cl+str;
clearTimeout(timeID);
timeID = setTimeout("wiper()",100);
}
-->
</script>
代碼: 選擇全部
<body onLoad="wiper()">
可以把您好^_^改成你要的文字.....
範例:http://meteor.nimohost.com/phpBB2/index.htm看最下面喔^^
有問題可以來這討論http://phpbb-tw.net/phpbb/viewtopic.php?t=36888
k122417901 寫:剛才把它改成後台控制顯示文字
要做的請先安裝原外掛
#
#-----[ OPEN 打開 ]------------------------------------------------
##代碼: 選擇全部
index.php
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
##代碼: 選擇全部
'WELCOME_MESSAGE' => $board_config['welcome_message'],
#-----[ OPEN 打開 ]------------------------------------------------
##代碼: 選擇全部
admin/admin_board.php
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
"L_SITE_DESCRIPTION" => $lang['Site_desc'],
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
##代碼: 選擇全部
"L_WELCOME_MESSAGE" => $lang['Welcome_message'],
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
"SITE_DESCRIPTION" => $new['site_desc'],
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
##代碼: 選擇全部
"WELCOME_MESSAGE" => $new['welcome_message'],
#-----[ OPEN 打開 ]------------------------------------------------
##代碼: 選擇全部
language\lang_chinese_traditional_taiwan\lang_admin.php
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
$lang['Site_desc'] = '討論區描述';
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
##代碼: 選擇全部
$lang['Welcome_message'] = '狀態列訊息';
#-----[ OPEN 打開 ]------------------------------------------------
##代碼: 選擇全部
templates/subSilver/admin/board_config_body.tpl
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
<tr> <td class="row1">{L_SITE_DESCRIPTION}</td> <td class="row2"><input class="post" type="text" size="40" maxlength="255" name="site_desc" value="{SITE_DESCRIPTION}" /></td> </tr>
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
##代碼: 選擇全部
<tr> <td class="row1">{L_WELCOME_MESSAGE}</td> <td class="row2"><input class="post" type="text" size="40" maxlength="255" name="welcome_message" value="{WELCOME_MESSAGE}" /></td> </tr>
#-----[ OPEN 打開 ]------------------------------------------------
##代碼: 選擇全部
templates/subSilver/index_body.tpl
#-----[ FIND 尋找 ]------------------------------------------------
##代碼: 選擇全部
msg = "您好^_^";
#-----[ REPLACE WITH 覆蓋 ]------------------------------------
##代碼: 選擇全部
msg = "{WELCOME_MESSAGE}";
#-----[ ADD SQL 加入SQL語法 ]----------------------------------
##代碼: 選擇全部
INSERT INTO phpbb_config (config_name , config_value) VALUES ('welcome_message', '您好^_^');
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束