[教學]分區間隔!!

與 phpBB 2.0.x 相關主題。

版主: 版主管理群

回覆文章
maostudio
竹貓好朋友
竹貓好朋友
文章: 381
註冊時間: 2002-07-02 01:59
來自: BayArea
聯繫:

[教學]分區間隔!!

文章 maostudio » 2002-09-14 02:16

很多人喜歡VBB的版面,因為它把每一個分區都分隔開了,所以感覺起來比較有條理!!
其實,這個PHPBB也辦得到。 :idea: :idea:
以下是我整理出來的,很簡單!!
希望對大家有點幫助!! :mrgreen: :mrgreen:

原始出處:http://www.phpbb.com/phpBB/viewtopic.php?t=28444
展示處:http://bbs.dnb2tw.info/index.php?style_id=1

templates/subSilver/index_body.tpl
大約在第16~40行

代碼: 選擇全部

<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>
  [color=#ff0000]<!-- BEGIN catrow -->[/color]
  <tr> 
    <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
    <td class="rowpic" colspan="3" align="right"> </td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr> 
    <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" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
      </span> <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" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
    <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
    <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  [color=#ff0000]<!-- END catrow -->[/color]
</table>
改為:

代碼: 選擇全部

[color=#ff0000]<!-- BEGIN catrow -->[/color]
<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>
  <tr> 
    <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
    <td class="rowpic" colspan="3" align="right"> </td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr> 
    <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" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
      </span> <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" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
    <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
    <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
</table>[color=#ff0000]<br /><br />[/color]
[color=#ff0000]<!-- END catrow -->[/color]
Hint:
1. 先把<!-- BEGIN catrow --><!-- END catrow -->移出table外
2. 再加入<br /><br />在</table>後即可!!

參與討論 - http://phpbb-tw.net/phpbb/viewtopic.php?t=16116
圖檔
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

ITPE!!

回覆文章

回到「2.0」