![]() |
Show/Hide Sticky Posts (collapsible)
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. 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 Code:
<thead> 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> Screens added. |
Sounds very good, I will install it later!
Yaaaaaaay, first post :D |
Doesn't come up yellow does it?
|
Quote:
|
Nice little feature! :)
|
very nice :)
|
Very nice, I have only one problem, when the stickies are shown, it gives a gap between sticky and bar above :
http://img381.imageshack.us/img381/2766/untitled5th.jpg |
Also: What happens with new sticky, are they hidden as well ? So could they miss something ?
EDIT : Ok, I just tested it and it hides also new stickies, which is not good at all :( |
Quote:
|
@utw-Mephisto
to remove the "gap" find: Code:
<tbody id="collapseobj_hidesticky" style="$vbcollapse[collapseobj_hidesticky]"> Code:
<tr> Code:
<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="" /> that will add another break-bar like the seperator above the stickies ... just play around with it a bit ;) [high]* KayDEE installs [/high] thanks |
All times are GMT. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|