How To Separate Sticky and Normal Threads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    [Any Version] How To Separate Sticky and Normal Threads

    Note: This works with 3.7.x too.

    The code for 3.6.x is slightly different than the 3.0.x code from this thread.

    Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates -> FORUMDISPLAY

    Add the red code:

    Code:
            </if>
        </if>
    </tr>
    </tbody>
    </if>
    <if condition="$show['threads']">
        <!-- show threads -->
        <tbody id="threadbits_forum_$foruminfo[forumid]">
        <if condition="$show['stickies']">
        $threadbits_sticky
        [COLOR=red]<tr><td class="thead" colspan="<if condition="(($show['threadicons'] AND $colspan = 6) OR (!$show['threadicons'] AND $colspan = 5)) AND ($show['inlinemod'] AND $colspan++)"></if>$colspan">&nbsp;</td></tr>[/COLOR]
        </if>
        $threadbits
        </tbody>
        <!-- end show threads -->
    <else />
        <!-- show no threads message -->
        <tbody>
        <tr>
            <td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
    That nasty conditional code calculates the appropriate colspan value of the separator (5, 6, or 7).

    Tested on 3.6.0
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...