版本:phpbb2.08a已安裝attach_mod_v239+快速回覆+exobud等外掛
但在安裝Forum_Icon_V1.0.5時(subSilver完全正常)fiapple下
卻變成如下圖,(兩種風格的改法都不同,有的字串根本找不到)

請問各位大大如何將(最後發表)底下那個色塊修改成整行都同色\r
順道一問:如何將logo.gif靠左或靠右對齊,或者將那個外框縮小到600x90
Forum_Icon_ListBox_V1.0.5_tw.txt
代碼: 選擇全部
########################################################
## 外掛名稱: Forum Icon with ACP Control - List Box Option 討論版 版面圖示 (清單方塊)
## 外掛版本: 1.0.5
## 外掛作者: Mac (Y.C. LIN) < ycl6@users.sourceforge.net > http://macphpbbmod.sourceforge.net/
##
## 外掛描述: 這個外掛可以讓管理員在控制台中指定各個討論版的版面圖示,然後顯示在 index
##
## 安裝難度: 簡單\r
## 安裝時間: 5 分鐘
##
## 需要編輯的檔案: 10
## index.php
## viewforum.php
## admin/admin_board.php
## admin/admin_forums.php
## language/lang_chinese_traditional_taiwan/lang_admin.php
## templates/subSilver/admin/forum_admin_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/admin/forum_edit_body.tpl
## templates/subSilver/index_body.tpl
## templates/subSilver/viewforum_body.tpl
##
## 附加的檔案: n/a
##
## 附加的圖示: n/a
##
#################################################################
## 由於安全上的考量,請檢查:
## http://www.phpbb.com/mods/downloads/ 是否有此外掛的最新版本
## 從其他地方下載此檔可能會造成你在你的 phpBB 討論版上寫入有誤的程式碼
## 基於這個理由,phpBB 將不會為沒有收藏在我們的外掛資料庫的外掛提供支援
## 我們的外掛資料庫在 http://www.phpbb.com/mods/downloads/
##
## 版權聲明: 這一個外掛不可以刊登在或加入到非官方的 phpBB 網站
##############################################################
## 作者留言:
## 用你設定等級圖示的方式設定討論版的圖示位置\r
##
## 如果你想用欄位寫入 (預設方式) 的選圖方式,
## 你必須使用預設的安裝指示. 請勿使用以下的安裝指示!
## 你只能選其中一種的選圖方式.
##
##############################################################
## 版本歷史:
##
## 2003-11-04 - 版本 1.0.0
## - 首次發佈
##
## 2003-11-08 - 版本 1.0.1
## - 確定可以在 2.0.6 上使用,程式碼沒有變動
##
## 2003-11-15 - 版本 1.0.2
## - 安裝指示經過修改以符合 phpBB MOD Database 的投件要求
##
## 2003-12-01 - 版本 1.0.3
## - 版面圖示可以用清單方塊 (選圖方式 2)
## - 在版面管理的主頁中可以顯示版面圖示\r
## - 在 viewforum.php 中可以顯示版面圖示\r
##
## 2004-02-11 - 版本 1.0.4
## - 修正選單圖示叉燒包現象當第一次選用圖示\r
## 使用預設選圖方式的朋友們不需要做更新\r
##
## 2004-03-13 - 版本 1.0.5
## - 修正選單圖示叉燒包現象當第一次建立版面時
## 使用預設選圖方式的朋友們不需要做更新\r
##
##############################################################
## 在增加此外掛前, 請務必備份所有需要修改的檔案
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
ALTER TABLE `phpbb2_forums` ADD `forum_icon` VARCHAR( 255 ) default NULL;
INSERT INTO `phpbb2_config` VALUES ('forum_icon_path', '');
#
#-----[ 打開 ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ 尋找 ]------------------------------------------
#
$lang['Forum_status'] = '版面狀態';
#
#-----[ 之後, 加上 ]------------------------------------------
#
$lang['Forum_icon'] = '版區圖示'; // Forum Icon MOD
$lang['Forum_icon_path'] = '版區圖示儲存路徑'; // Forum Icon MOD
$lang['Forum_icon_path_explain'] = '在您 phpBB 2 根目錄底下的路徑, 例如: images/forum_icons'; // Forum Icon MOD
#
#-----[ 打開 ]------------------------------------------
#
admin/admin_board.php
#
#-----[ 尋找 ]------------------------------------------
#
"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],
#
#-----[ 之後, 加上 ]------------------------------------------
#
"L_FORUM_ICON_PATH" => $lang['Forum_icon_path'], // Forum Icon MOD
"L_FORUM_ICON_PATH_EXPLAIN" => $lang['Forum_icon_path_explain'], // Forum Icon MOD
#
#-----[ 尋找 ]------------------------------------------
#
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],
#
#-----[ 之後, 加上 ]------------------------------------------
#
"FORUM_ICON_PATH" => $new['forum_icon_path'], // Forum Icon MOD
#
#-----[ 打開 ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ 尋找 ]------------------------------------------
#
if ($mode == 'editforum')
{
// $newmode determines if we are going to INSERT or UPDATE after posting?
#
#-----[ 之前, 加上 ]------------------------------------------ \r
#
// Forum Icon MOD
$dir = @opendir($phpbb_root_path . $board_config['forum_icon_path']);
$count = 0;
while( $file = @readdir($dir) )
{
if( !@is_dir(phpbb_realpath($phpbb_root_path . $board_config['forum_icon_path'] . '/' . $file)) )
{
if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $file) )
{
$forum_icons[$count] = $file;
$count++;
}
}
}
@closedir($dir);
$forum_icons_list = "";
for( $i = 0; $i < count($forum_icons); $i++ )
{
if ($forum_icons[$i] == $row['forum_icon'])
$forum_icons_list .= '<option value="' . $forum_icons[$i] . '" selected="selected">' . $forum_icons[$i] . '</option>';
else
$forum_icons_list .= '<option value="' . $forum_icons[$i] . '">' . $forum_icons[$i] . '</option>';
$default_ficon = $forum_icons[0];
}
#
#-----[ 尋找 ]------------------------------------------
#
$forumstatus = $row['forum_status'];
#
#-----[ 之後, 加上 ]------------------------------------------
#
$forumicon = $row['forum_icon']; // Forum Icon MOD
#
#-----[ 尋找 ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;
#
#-----[ 之後, 加上 ]------------------------------------------
#
$forumicon = ''; // Forum Icon MOD
#
#-----[ 尋找 ]------------------------------------------
#
'L_FORUM_STATUS' => $lang['Forum_status'],
#
#-----[ 之後, 加上 ]------------------------------------------
#
'L_FORUM_ICON' => $lang['Forum_icon'], // Forum Icon MOD
#
#-----[ 尋找 ]------------------------------------------
#
'DESCRIPTION' => $forumdesc)
#
#-----[ 取代為 ]------------------------------------------
#
'DESCRIPTION' => $forumdesc,
'ICON_LIST' => $forum_icons_list, // Forum Icon MOD
'ICON_BASEDIR' => $phpbb_root_path . $board_config['forum_icon_path'], // Forum Icon MOD
'ICON_IMG' => ( $forumicon ) ? $phpbb_root_path . $board_config['forum_icon_path'] . '/' . $forumicon : $phpbb_root_path . $board_config['forum_icon_path'] . '/' . $default_ficon // Forum Icon MOD
)
#
#-----[ 尋找 ]------------------------------------------
#
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
#
#-----[ 之中, 尋找 ]------------------------------------------
#
forum_status
#
#-----[ 之後, 加上 ]------------------------------------------
#
, forum_icon
#
#-----[ 尋找 ]------------------------------------------
#
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
#
#-----[ 之中, 尋找 ]------------------------------------------
#
, " . intval($HTTP_POST_VARS['forumstatus']) . "
#
#-----[ 之後, 加上 ]------------------------------------------
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'
#
#-----[ 尋找 ]------------------------------------------
#
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
#
#-----[ 之中, 尋找 ]------------------------------------------
#
, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
#
#-----[ 之後, 加上 ]------------------------------------------
#
, forum_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'
#
#-----[ 尋找 ]------------------------------------------
#
'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
#
#-----[ 之後, 加上 ]------------------------------------------
#
'FORUM_ICON_IMG' => ( $forum_rows[$j]['forum_icon'] ) ? '<img src="' . $phpbb_root_path . $board_config['forum_icon_path'] .'/' . $forum_rows[$j]['forum_icon'] . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '', // Forum Icon Mod
#
#-----[ 打開 ]------------------------------------------
#
index.php
#
#-----[ 尋找 ]------------------------------------------
#
$posts = $forum_data[$j]['forum_posts'];
$topics = $forum_data[$j]['forum_topics'];
#
#-----[ 之後, 加上 ]------------------------------------------
#
$icon = $forum_data[$j]['forum_icon']; // Forum Icon Mod
#
#-----[ 尋找 ]------------------------------------------
#
'FORUM_FOLDER_IMG' => $folder_image,
#
#-----[ 之後, 加上 ]------------------------------------------
#
'FORUM_ICON_IMG' => ($icon) ? '<img src="' . $phpbb_root_path . $board_config['forum_icon_path'] . '/' . $icon . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '', // Forum Icon Mod
#
#-----[ 打開 ]------------------------------------------
#
viewforum.php
#
#-----[ 尋找 ]------------------------------------------
#
'FORUM_NAME' => $forum_row['forum_name'],
#
#-----[ 之後, 加上 ]------------------------------------------
#
'FORUM_ICON_IMG' => ($forum_row['forum_icon']) ? '<img src="' . $phpbb_root_path . $board_config['forum_icon_path'] . '/' . $forum_row['forum_icon'] . '" alt="'.$forum_row['forum_name'].'" title="'.$forum_row['forum_name'].'" /> ' : '', // Forum Icon Mod
#
#-----[ 打開 ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<tr>
<td class="row1">{L_SYSTEM_TIMEZONE}</td>
<td class="row2">{TIMEZONE_SELECT}</td>
</tr>
#
#-----[ 之後, 加上 ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_ICON_PATH} <br /><span class="gensmall">{L_FORUM_ICON_PATH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="20" maxlength="255" name="forum_icon_path" value="{FORUM_ICON_PATH}" /></td>
</tr>
#
#-----[ 打開 ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<p>{L_FORUM_EXPLAIN}</p>
#
#-----[ 之後, 加上 ]------------------------------------------
#
<script language="javascript" type="text/javascript">
<!--
function update_forum_icon(newimage)
{
document.forum_icon.src = "{ICON_BASEDIR}/" + newimage;
}
//-->
</script>
#
#-----[ 尋找 ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_NAME}</td>
<td class="row2"><input type="text" size="25" name="forumname" value="{FORUM_NAME}" class="post" /></td>
</tr>
#
#-----[ 之後, 加上 ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_ICON}</td>
<td class="row2"><select name="forumicon" onchange="update_forum_icon(this.options[selectedIndex].value);">{ICON_LIST}</select> <img name="forum_icon" src="{ICON_IMG}" border="0" alt="" /> </td>
</tr>
#
#-----[ 打開 ]------------------------------------------
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>
#
#-----[ 之中, 尋找 ]------------------------------------------
#
<td class="row2"><span class="gen">
#
#-----[ 之後, 加上 ]------------------------------------------
#
{catrow.forumrow.FORUM_ICON_IMG}
#
#-----[ 打開 ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
#
#-----[ 之中, 尋找 ]------------------------------------------
#
colspan="2"
#
#-----[ 取代為 ]------------------------------------------
#
colspan="3"
#
#-----[ 尋找 ]------------------------------------------
#
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
#
#-----[ 之中, 尋找 ]------------------------------------------
#
colspan="2"
#
#-----[ 取代為 ]------------------------------------------
#
colspan="3"
#
#-----[ 尋找 ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
#
#-----[ 之後, 加上 ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
#
#-----[ 打開 ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
#
#-----[ 之中, 尋找 ]------------------------------------------
#
<td align="left" valign="bottom" colspan="2">
#
#-----[ 之後, 加上 ]------------------------------------------
#
{FORUM_ICON_IMG}
#
#-----[ 儲存/關閉所有檔案 ]------------------------------------------
#
# 外掛修正結束
代碼: 選擇全部
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="3" class="maintitle">{L_INDEX}</td>
</tr>
<tr>
<td valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br />
<a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
<td align="right" valign="bottom" class="gensmall">
<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br />
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</strong></a>
<!-- END switch_user_logged_in -->
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tt12_l.gif" width="10" height="12" alt="" /></td>
<td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tt12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="3">{L_FORUM}</th>
<th>{L_TOPICS}</th>
<th>{L_POSTS}</th>
<th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="cat" colspan="5"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a><img src="images/spacer.gif" alt="" width="280" height="12" /></td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" height="45"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
<td class="row1" width="100%"><a href="{catrow.forumrow.U_VIEWFORUM}" class="nav">{catrow.forumrow.FORUM_NAME}</a><br />
<span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tb12_l.gif" width="10" height="12" alt="" /></td>
<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tb12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
<br />
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tt12_l.gif" width="10" height="12" alt="" /></td>
<td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tt12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" colspan="3"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td>
</tr>
<tr>
<td class="row1" rowspan="3"><img src="templates/fiapple/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" width="40" height="30" title="{L_WHO_IS_ONLINE}" />
</td>
<td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} [ <strong>{L_WHOSONLINE_ADMIN}</strong>
] [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tb12_l.gif" width="10" height="12" alt="" /></td>
<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tb12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tt12_l.gif" width="10" height="12" alt="" /></td>
<td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tt12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall">{L_USERNAME}: </td>
<td><input class="post" type="text" name="username" size="10" /></td>
<td class="gensmall"> {L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td>
<td class="gensmall"> {L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td>
<td> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="templates/fiapple/images/tb12_l.gif" width="10" height="12" alt="" /></td>
<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="templates/fiapple/images/tb12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td>
</tr>
</table>
<br />
<table border="0" align="center" cellpadding="0" cellspacing="3">
<tr>
<td><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td> </td>
<td><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td> </td>
<td><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" title="{L_FORUM_LOCKED}" /></td>
<td class="gensmall">{L_FORUM_LOCKED}</td>
</tr>
</table>先謝謝各位唷

