參考連結:無
使用版本:phpbb 2.0.17
網站位置:http://silent.why3s.us/phpbb/
狀況描述:
對照組

實驗組

問題1.
紅色部分,要如何顯示子版面的Forum Icon呢\r
問題2.
藍色部份,在安裝了子版面後,發現子版面的文章圖示變形了,請問要在哪裡修改寬高呢....
小弟不才,勞煩各位大大了.....
版主: 版主管理群


該是i-Forum Icon 1.0.4 [版面圖示],因為我也一樣><心靈捕手 寫:To goby:
類似的問題, 我全都有遭遇過,
不過, 得先確認一下, 您安裝的外掛名稱( 版本)是否如下?
1. 簡易子版面 1.1
2. 版面圖示 1.0.9
請補充說明, 或提供外掛參考連結.
以下的修改, 提供您參考:goby 寫:是的....就是大大您說的版本.....心靈捕手 寫:To goby:
類似的問題, 我全都有遭遇過,
不過, 得先確認一下, 您安裝的外掛名稱( 版本)是否如下?
1. 簡易子版面 1.1
2. 版面圖示 1.0.9
請補充說明, 或提供外掛參考連結.
#
#-----[ Open ]-----
#
viewforum.php
#
#-----[ Find ]-----
#
$topics = $forum_data[$j]['forum_topics'];
#
#-----[ After, Add ]-----
#
$icon = $forum_data[$j]['forum_icon'];// Forum Icon Mod
#
#-----[ Find ]-----
#
'FORUM_FOLDER_IMG' => $folder_image,
#
#-----[ After, Add ]-----
#
'FORUM_ICON_IMG' => ($icon) ? '<img src="' . $phpbb_root_path . $icon . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '',// Forum Icon Mod
#
#-----[ Open ]-----
#
templates/YOUR_THEME/viewforum_body.tpl
#
#-----[ Find ]-----
#
<!-- BEGIN sub_forum -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<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>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{sub_forum.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{sub_forum.forumrow.L_FORUM_FOLDER_ALT}" title="{sub_forum.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="70%" height="50"><span class="forumlink"> <a href="{sub_forum.forumrow.U_VIEWFORUM}" class="forumlink">{sub_forum.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{sub_forum.forumrow.FORUM_DESC}<br />{sub_forum.forumrow.FORUM_NAME_SUB}<br />
</span><span class="gensmall">{sub_forum.forumrow.L_MODERATOR} {sub_forum.forumrow.MODERATORS}</span></td>
#
#-----[ Replace With ]-----
#
<!-- BEGIN sub_forum -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="3" 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>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" width="50" height="50"><img src="{sub_forum.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{sub_forum.forumrow.L_FORUM_FOLDER_ALT}" title="{sub_forum.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" align="center" valign="middle" height="50">{sub_forum.forumrow.FORUM_ICON_IMG}</td>
<td class="row1"><span class="forumlink"> <a href="{sub_forum.forumrow.U_VIEWFORUM}" class="forumlink">{sub_forum.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{sub_forum.forumrow.FORUM_DESC}<br />{sub_forum.forumrow.FORUM_NAME_SUB}<br />
</span><span class="gensmall">{sub_forum.forumrow.L_MODERATOR} {sub_forum.forumrow.MODERATORS}</span></td>
代碼: 選擇全部
## 版本歷史:
## 2003-12-01 - 版本 1.0.3
## - 版面圖示可以用清單方塊 (選圖方式 2)
## - 在版面管理的主頁中可以顯示版面圖示\r
## - 在 viewforum.php 中可以顯示版面圖示代碼: 選擇全部
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>代碼: 選擇全部
colspan="2"代碼: 選擇全部
<td class="row1" width="70%" height="50"><span class="forumlink"> <a href="{sub_forum.forumrow.U_VIEWFORUM}" class="forumlink">{sub_forum.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{sub_forum.forumrow.FORUM_DESC}<br />{sub_forum.forumrow.FORUM_NAME_SUB}<br />
</span><span class="gensmall">{sub_forum.forumrow.L_MODERATOR} {sub_forum.forumrow.MODERATORS}</span></td> 代碼: 選擇全部
<td class="row1" align="center" valign="middle" height="50">{FORUM_ICON_IMG}</td>您當真有實際測試過您的改法?w2812451 寫:還有捕手大大阿!我想你應該要知道Forum icon好像裡面就已經有內建子版面的forum icon!不然再加入forum的時候會什麼要在viewforum.php跟viewforum_body.tpl要加入某些東西?
我真的很佩服做這個外掛的大大!他已經替我們想好這一步了!^^
讓你看看這段:所以說可以省掉那一大片的文字!代碼: 選擇全部
## 版本歷史: ## 2003-12-01 - 版本 1.0.3 ## - 版面圖示可以用清單方塊 (選圖方式 2) ## - 在版面管理的主頁中可以顯示版面圖示\r ## - 在 viewforum.php 中可以顯示版面圖示
問題A:變形的那個
在viewforum_body.tpl
搜尋width="46" height="25"
把這段刪除掉~
或是改成你圖片的大小width="43" height="44"
------------------------我是可愛的分隔線-------------------------
問題B:加入Forum的
開啟:viewforum_body.tpl
搜尋<a href="{sub_forum.forumrow.U_VIEWFORUM}"
在前面加上{FORUM_ICON_IMG}
沒記錯的話!
但是如果要跟前面頁面一樣!多一個格子的話!請看下面:
開啟viewforum_body.tpl
搜尋代碼: 選擇全部
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
在此行內搜尋將colspan="2"的2改為3代碼: 選擇全部
colspan="2"
然後再搜尋在此行的前面加入\r代碼: 選擇全部
<td class="row1" width="70%" height="50"><span class="forumlink"> <a href="{sub_forum.forumrow.U_VIEWFORUM}" class="forumlink">{sub_forum.forumrow.FORUM_NAME}</a><br /> </span> <span class="genmed">{sub_forum.forumrow.FORUM_DESC}<br />{sub_forum.forumrow.FORUM_NAME_SUB}<br /> </span><span class="gensmall">{sub_forum.forumrow.L_MODERATOR} {sub_forum.forumrow.MODERATORS}</span></td>不知道對不對!錯了在幫你修正!代碼: 選擇全部
<td class="row1" align="center" valign="middle" height="50">{FORUM_ICON_IMG}</td>