Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
sylvester73

IPB 3 Διαχωρισμός PINNED και κανονικά Θέματα

Recommended Posts


Καλησπέρα
Πάμε να δούμε πως θα βάλετε μια διαχωριστική γραμμή ανάμεσα στα PINNED θέματα και τα κανονικά
Είναι απλό, ακολουθήστε της οδηγίες
Πηγαίνετε Go to ACP >> Look & Feel >> Επιλέξτε το σκιν σας >> Πατήστε στο Manage Templates & CSS>> και βρείτε το Forumindextemplate


Κάντε αναζήτηση για το παρακάτω

<tr class='header hide'>



				    <th scope='col' class='col_f_icon'>&nbsp;</th>



				    <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>



				    <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>



				    <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>



				    <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_f_post'>{$this-



>lang->words['forum_last_post_info']}</th></if>



				    <if test="topicsismod:|:$this->memberData['is_mod'] == 1">



					    <th scope='col' class='col_f_mod short'><input type='checkbox' id='tmod_all' class='input_check' title='{$this-



>lang->words['topic_select_all']}' value='1' /></th>



				    </if>



			    </tr>   



			    <!-- BEGIN TOPICS -->



			    <if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">



				    <foreach loop="topics:$topic_data as $tid => $data">



					    {parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}



				    </foreach>

 

Και αντικατάσταση με αυτό εδώ
 

<tr class='subhead altbar'>



									    <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else



/>5</if>'>



									    <if test="$this->hasPinned=0">Forum Topics</if><if test="$this->hasPinned=1">Pinned 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>



					    {parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}



				    </foreach>
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×