Thread: [IPB 3.2.x] Separate Pinned From Other Topics

Results 1 to 4 of 4
  1. #1 [IPB 3.2.x] Separate Pinned From Other Topics 
    Web Devloper Dimitry's Avatar
    Join Date
    Apr 2009
    Age
    23
    Posts
    608
    Thanks given
    10
    Thanks received
    10
    Rep Power
    27
    1. Go To:
    Code:
    Admin CP > Look & Feel > (Skin) > Forum View > forumIndexTemplate

    2. Find:
    Code:
      <tr class='header hide'>
                                     <th scope='col' class='col_f_icon'> </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>
                                     <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
                                     <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 )">
                                     {parse striping="forumTable" classes="row1,row2"}
                                     <foreach loop="topics:$topic_data as $tid => $data">
    3. Replace With:
    Code:
    <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>


    Here is what it will look like:

    [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]

    Need a forum or custom mod/skin? [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Gunner4Life Market Banned Market Banned



    Join Date
    Jun 2011
    Posts
    2,358
    Thanks given
    132
    Thanks received
    664
    Rep Power
    648
    Naice
    Reply With Quote  
     

  3. #3  
    Server Developer

    Titanium's Avatar
    Join Date
    Oct 2011
    Posts
    2,708
    Thanks given
    1,215
    Thanks received
    672
    Rep Power
    2392
    nice tutorial.


    Inactive from RSPS. Times have changed.
    Reply With Quote  
     

  4. #4  
    Web Devloper Dimitry's Avatar
    Join Date
    Apr 2009
    Age
    23
    Posts
    608
    Thanks given
    10
    Thanks received
    10
    Rep Power
    27
    Thanks
    [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]

    Need a forum or custom mod/skin? [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Separate Shoutbox
    By Mister Maggot in forum Suggestions
    Replies: 19
    Last Post: 11-17-2010, 07:03 PM
  2. Npc dialog with options + separate tele's
    By Jeddac in forum Requests
    Replies: 3
    Last Post: 10-30-2009, 11:25 PM
  3. Replies: 4
    Last Post: 10-27-2009, 03:31 AM
  4. Replies: 0
    Last Post: 01-29-2009, 05:38 AM
  5. Separate UpdateServer. For developers
    By Meanz in forum Downloads
    Replies: 26
    Last Post: 08-31-2008, 10:13 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •