Hi, guest |Welcome to©►✡ ÇЎßËЯ§ ™ ЙšŢÃŖ§ ☠◄®| Register | Sign in
  • l Featured : Radio Cybers Nstars Supported By Prambors |

Memisahkan 'Pinned' dan 'topic' | Versi 3.1 |

.

http://cybers-nstars.co.cc/forum/favicon.ico
Berikut ini adalah cara edit template yang bisa d gunakan untuk memisahkan topic yang d 'Pinned' dari topic yang lainnya.

Panel Admin > Look & Feel > nama skin > Forum View > forumIndexTemplate

cari:

<tr class='subhead altbar'>
                                        <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
                                                {$this->lang->words['forum_topic_list']}
                                        </th>
                                </tr>
                        </if>
                        <!-- BEGIN TOPICS -->
                        <if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
                                {parse striping="forumTable" classes="row1,row2"}
                                <foreach loop="topics:$topic_data as $tid => $data">


lalu ganti dengan:
<tr class='subhead altbar'>
        <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
        <if test="$this->hasPinned=1">Pinned Topics</if><if test="$this->hasPinned=0">Forum Topics</if> 
        </th>
        </tr>
        </if>
        <!-- BEGIN TOPICS -->
        <if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
        {parse striping="forumTable" classes="row1,row2"}
        <foreach loop="topics:$topic_data as $tid => $data">
        <if test="$data['pinned']">
<if test="$this->hasPinned=1"></if><else />
<if test="$this->hasPinned"><if test="$this->hasPinned=0"></if>
<tr class='subhead altbar'>
<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
Forum Topics
        </th>
 </tr>
 </if>
</if>

Baca Juga Artikel Menarik Lainnya :
Share this Article now on :
ARTIKEL YANG BERHUBUNGAN :


0 komentar: