[修改] phpBB2 Plus 1.52 外掛 Fully integrated shoutbox 問題完整修正

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
頭像
rohwa
星球普通子民
星球普通子民
文章: 5
註冊時間: 2004-06-02 21:08

[修改] phpBB2 Plus 1.52 外掛 Fully integrated shoutbox 問題完整修正

文章 rohwa »

:lol: phpBB2 Plus 1.52 外掛 Fully integrated shoutbox 問題完整修正:

代碼: 選擇全部

#
#  Fully integrated shoutbox 外掛修正開始
#
#  修正 Censor 圖示無法顯示的問題
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/fisubsilversh/fisubsilversh.cfg

# 
#-----[ FIND ]------------------------------------------ 
# 
?> 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$images['icon_censor'] = "$current_template_images/icon_censor.gif"; 

#
#  將首頁的聊天室留言板的時間格式改為對應討論區的時間格式
# 
#-----[ OPEN ]------------------------------------------------ 
# 
shoutbox_view.php 

# 
#-----[ FIND ]------------------------------------------------ 
# 
'TIME' => create_date($lang['Shoutbox_date'], $shout_row['shout_session_time'], $board_config['board_timezone']), 

# 
#-----[ REPLACE WITH ]---------------------------------------- 
# 
'TIME' => create_date($board_config['default_dateformat'], $shout_row['shout_session_time'], $board_config['board_timezone']), 

#
#  修正首頁的聊天室留言板沒有顯示表情符號連結的問題
# 
#-----[ OPEN 打開 ]------------------------------------------------ 
# 
shoutbox.php 

# 
#-----[ FIND 尋找 ]------------------------------------------------ 
# 
'L_SMILIES' => $lang['Smilies'], 

# 
#-----[ REPLACE WITH 替換 ]---------------------------------------- 
# 
'L_SMILIES' => $lang['Emoticons'], 

#
#  修正在 phpBB2 Plus index.php 頁面沒顯示聊天室留言版的問題
#
#-----[ OPEN ]------------------------------------------
#
index.php 

#
#-----[ FIND ]------------------------------------------
#
if ( !$display ) 
//-- fin mod : categories hierarchy ---------------------------------------------------------------- 

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start add - Fully integrated shoutbox MOD
if ($plus_config['show_shoutbox'] == 1) 
{ 
        $template->assign_block_vars('switch_show_shoutbox', array()); 
}
// End add - Fully integrated shoutbox MOD
 
#
#-----[ FIND ]------------------------------------------
#
'L_MODERATOR' => $lang['Moderators'], 

#
#-----[ AETER, ADD ]------------------------------------------
#
// Start add - Fully integrated shoutbox MOD
   'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
   'L_SHOUTBOX' => $lang['Shoutbox'],
   'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
   'L_SHOUTBOX' => $lang['Shoutbox'],
// End add - Fully integrated shoutbox MOD

#
#-----[ OPEN ]------------------------------------------
#
templates/fisubsilversh/index_body.tpl AND index_body_plus.tpl

#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN switch_show_links --> 

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_show_shoutbox -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th>{L_SHOUTBOX}</th>
</tr>
<tr>
<td class="row1"><span class="genmed"><iframe src="{U_SHOUTBOX}" scrolling="no" width="100%" height="200" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe><br /></span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br /><br />
<!-- END switch_show_shoutbox -->

# 
# Fully integrated shoutbox 外掛修正結束
#
+中華基督教碇內浸信會+
http://www.bubc.org.tw/
主題已鎖定

回到「外掛問題討論」