第 1 頁 (共 1 頁)
[問題]嚴重問題 Attached forums子分區 有附上圖 請幫忙
發表於 : 2007-01-22 02:37
由 t54185
架設主機作業系統:Windows Xp Home
快速架站程式:Appserv
您的上網方式:ADSL
您安裝的程式:Apache + php + MySql (我是安裝 appserv-win32-2.4.7)
您的 phpBB2 版本=> phpBB 2.0.22 + 水晶圖案 +勳章 0.4.6
參考外掛連結:
http://phpbb-tw.net/phpbb/viewtopic.php ... 6%E5%8D%80 (Attached forums子分區 - 比簡易子版區還簡易哦)
外掛安裝過程順利
請問 該如何修正 子分區 的圖案大小呢?? 他歪了 ...
就是 他新增的板面 想跟 普通的一樣 (對齊)
發表於 : 2007-01-22 12:18
由 t54185
自行研究解決了
打開 templates\subSilver\viewforum_body
尋找 <!-- BEGIN switch_attached_list -->
將全部
取代
<!-- BEGIN switch_attached_list -->
<br />
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="20" nowrap="nowrap"> {switch_attached_list.L_ATTACHED_FORUM} </th>
<th class="thTop" nowrap="nowrap"> {switch_attached_list.L_ATTACHED_TOPICS} </th>
<th class="thTop" nowrap="nowrap"> {switch_attached_list.L_ATTACHED_POSTS} </th>
<th class="thTop" nowrap="nowrap"> {switch_attached_list.L_LAST_POST} </th>
</tr>
<!-- BEGIN switch_attached_present -->
<tr>
<td class="row1" align="center" valign="middle" height="30"><img src="{switch_attached_list.switch_attached_present.FORUM_FOLDER_IMG}" alt="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" title="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="75%"><span class="forumlink"><a class="forumlink" href="{switch_attached_list.switch_attached_present.U_VIEWFORUM}">{switch_attached_list.switch_attached_present.FORUM_NAME}</a></span><br /><span class="genmed">{switch_attached_list.switch_attached_present.FORUM_DESC}</span></td>
<td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.TOPICS}</span></td>
<td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.POSTS}</span></td>
<td class="row2" align="center" nowrap="nowrap" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.LAST_POST_ID}</span></td>
</tr>
<!-- END switch_attached_present -->
</table>
<br />
<!-- END switch_attached_list -->
完工 全部正常顯示 !! 圖片大小 文字欄位 通通搞定 呵呵~~~
第一次自己修改
請各位大大 幫我看看 我這樣自己修改的對不對 因為我自己的板 顯示正常
怕有錯誤 或者 BUG
請多指導~~
發表於 : 2007-01-22 12:56
由 t54185
問題發生2 如果長標題的情況下 會發生 ....
中文亂碼 截字
請問如何修正 中文亂碼 !?
發表於 : 2007-01-22 13:53
由 t54185
全部自行修改完畢 此篇可給跟我相同問題的人參考
打開MOD 的安裝說明
尋找
if (strlen($forum_data[$j]['topic_title'])>=25)
{
$forum_data[$j]['topic_title']=substr($forum_data[$j]['topic_title'],0,25). "...";
}
將說明內 共有 4 處 25 修改成 21
再將語法安裝
即可修正中文截碼問題 !!
phpbb 2.0.22 已經正常顯示 !!
發表於 : 2007-01-22 23:37
由 心靈捕手
t54185 寫:全部自行修改完畢 此篇可給跟我相同問題的人參考
打開MOD 的安裝說明
尋找
if (strlen($forum_data[$j]['topic_title'])>=25)
{
$forum_data[$j]['topic_title']=substr($forum_data[$j]['topic_title'],0,25). "...";
}
將說明內 共有 4 處 25 修改成 21
再將語法安裝
即可修正中文截碼問題 !!
phpbb 2.0.22 已經正常顯示 !!
這個方法只能 '治標' 無法 '治本'.
建議您:
參考此篇文章修正.
http://phpbb-tw.net/phpbb/viewtopic.php?p=218078#218078
ps.
這個修正, 需要啟用 'mbstring模組'.
發表於 : 2007-01-23 02:55
由 t54185
心靈捕手 寫:t54185 寫:全部自行修改完畢 此篇可給跟我相同問題的人參考
打開MOD 的安裝說明
尋找
if (strlen($forum_data[$j]['topic_title'])>=25)
{
$forum_data[$j]['topic_title']=substr($forum_data[$j]['topic_title'],0,25). "...";
}
將說明內 共有 4 處 25 修改成 21
再將語法安裝
即可修正中文截碼問題 !!
phpbb 2.0.22 已經正常顯示 !!
這個方法只能 '治標' 無法 '治本'.
建議您:
參考此篇文章修正.
http://phpbb-tw.net/phpbb/viewtopic.php?p=218078#218078
ps.
這個修正, 需要啟用 'mbstring模組'.
已成功 多謝指導
目前在研究"下載中心",發生了某些問題
我會在另外PO文發問,也請再次多多指導
謝謝~~