Cách chia Category ở Forumhome VBB 3.x.x ( for Newbie)

iuvothangban

Thành viên
Một Skin mặt định của vBB nó sẽ có dạng như vầy:

vtruockq0.jpg




Bây giờ chúng ra sẽ làm nó khác thành dạng như vầy:

91900390qi4.jpg


Bước 1:

Mở Template: FORUMHOME
-------------------------------------------

tìm và xóa bỏ đi:
--------------------
Mã:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr align="center">
      <td class="thead"> </td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="175">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>

Tìm tiếp và xóa bỏ đi:
--------------------------
Mã:
<tbody>
    <tr>
        <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if condition="$vboptions['forumleaders']">   
            <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
        </strong></div></td>
    </tr>
</tbody>
</table>

Sau đó tìm đoạn sau:
--------------------------
Mã:
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>

Thêm bên dưới:
---------------------
Mã:
<tbody>
    <tr>
        <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if condition="$vboptions['forumleaders']">   
            <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
        </strong></div></td>
    </tr>
</tbody>

Xong rồi Save Template này lại.
----------------------------------------

Bước 2:

mở Template forumhome_forumbit_level1_nopost
-------------------------------------------------------------------------

Thêm ở trên đầu hết:
--------------------------
Mã:
<br/>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

Tìm đoạn:
---------------
Mã:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
    </tr>
</tbody>


Thêm bên dưới:
-------------------
Mã:
    <tr align="center">
      <td class="thead"> </td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="175">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>

Thêm cái này ở dưới cùng hết.
---------------------------------------
Mã:
</table>

Nhấn Save lại, vậy là xong rồi đó.
------------------------------------------
 
Back
Top