Back to vBulletin 3.5 Template Modifications

Show/Hide Sticky Posts (collapsible)
Mod Version: 1.00, by RMS-Chef

This modification is in the archives.
vB Version: 3.5.2 Rating: (0 vote - 0 average) Installs: 19
Released: 18 Dec 2005 Last Update: Never Downloads: 19
Not Supported Template Edits  

Made this for myself so decided to release here. Just tried it and it seems to work fine.

What does it do?
Many of my forums have a lot of sticky threads. For me, they were taking up too much of the FORUMDISPLAY view. Adding this code will allow you and your users to optionally collapse/expand all sticky posts on FORUMDISPLAY and adds a seperator when they are displayed thanks to Oblivion Knight

Spoiler (click to open)


Quote by Boofo
That still doesn't work for the line underneath. This will solve it.

HTML Code:
  <tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7</if><if condition="$show['threadicons'] AND !$show['inlinemod']">6</if><if condition="!$show['threadicons'] AND $show['inlinemod']">6</if><if condition="!$show['threadicons'] AND !$show['inlinemod']">5</if>">&nbsp;</td></tr>
Ouch! 4 if conditions just for that.?

Would this not be better (2 if conditions)?
HTML Code:
	<tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>">&nbsp;</td></tr>
Plus, if you feel that the separator is too thick, you could use this instead (http://www.gamerseuphoria.com/forum/forumdisplay.php?f=23)..
HTML Code:
	<tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>"><img src="$vboptions[cleargifurl]" width="1" height="1" alt="" /></td></tr>

Close
.

What is left?
I have no clue how to do it but if someone would like to help out and tell me how to have the text "Show|Hide Sticky Threads" instead display "Show Sticky Threads" when they are hidden and "Hide Sticky Threads" when they are being displayed, that would be nice. It would also be nice if the could be on a per forum basis rather than always hide/show stickies across the board but that is well beyond me also.

Open FORUMDISPLAY template
Find:
Code:
$threadbits_sticky
Above it add:
Code:
<thead>
<tr>
    <td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('hidesticky')">Show|Hide Sticky Threads&nbsp;<img id="collapseimg_hidesticky" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_hidesticky].gif" alt="" border="0" /></a>
        &nbsp;
    </td>
</tr>
</thead>
<tbody id="collapseobj_hidesticky" style="$vbcollapse[collapseobj_hidesticky]">
<tr>
    <td class="alt1">
Below it add:
Code:
    <tr><td class="tcat" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>"><img src="$vboptions[cleargifurl]" width="1" height="1" alt="" /></td></tr>
    </td>
</tr>
</tbody>
EDIT:
Screens added.

Download

This modification is archived and cannot be downloaded.

Screenshots

   


vblts.ru supports vBulletin®, 2022-2024