The Arcive of vBulletin Modifications Site. |
|
Spoiler Tag Details »»
|
|||||||||||||||||||||||||
Title: Spoiler
Tag: spoiler Replacement: HTML Code:
<div class="fieldset"> <table class="tborder" cellpadding="5" cellspacing="0" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3"><a style="float:right" href="#top" onclick="return toggle_collapse('spoiler_{option}')"><input type="button" value="Show/Hide" /></a>Spoilers!</td> </tr> <tbody id="collapseobj_spoiler_{option}" style=""> <td class="alt1" align="$stylevar[left]" valign="top">{param}</td> </tbody> </table> </div> Use Option: Yes Image: Leave Blank Q. Why do I have to "use option"? A. This will solve a bug when not using it. In the first coding it wasn't used, but it would only collapse the first usage of "[spoiler][/spoiler]" in the thread. Using option in the code allowed to to specify which usage of the tags to collapse. Bugs: It's open by default! I'm working on getting it closed by default. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
This shows up the hidden text on mouseover of the topic title in showthreads and on forumhome.
|
|
#3
|
||||
|
||||
|
Nice option code
![]() style="display:none;" will do the hide job
|
|
#4
|
|||
|
|||
|
Where do i insert that html ?
|
|
#5
|
||||
|
||||
|
When you add the bbcode, there is a section for "Replacement" place it there.
|
|
#6
|
||||
|
||||
|
Quote:
jj: style="display:none;" that'll do what? |
|
#7
|
|||
|
|||
|
Quote:
Code:
<div class="fieldset">
<table class="tborder" cellpadding="5" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3"><a style="float:right" href="#top" onclick="return toggle_collapse('spoiler_{option}')"><input type="button" value="Show/Hide" /></a>Spoilers!</td>
</tr>
<tbody id="collapseobj_spoiler_{option}" style="display:none;">
<td class="alt1" align="$stylevar[left]" valign="top">{param}</td>
</tbody>
</table>
</div>
|
|
#8
|
|||
|
|||
|
any updates to this one?
|
|
#9
|
|||
|
|||
|
I noticed if you have more than 1 spoiler on a page the buttons only open the first one.
|
|
#10
|
|||
|
|||
|
King Kovifor is away for the week, I will try to fix that problem.
|
![]() |
|
|