Back to vBulletin 4.x Add-ons

Animated Spoiler
Mod Version: 0.1, by Vitaly

vB Version: 4.1.2 Rating: (6 votes - 4.83 average) Installs: 28
Released: 21 Mar 2011 Last Update: Never Downloads: 153
Not Supported Uses Plugins Auto-Template Additional Files Re-usable Code  

Features:

This mod add nice-looking collapsable spoiler with animation

How to install:

1. Install BB code. To do this go to Custom BB codes -> Add new BB code and add following values:
- in Title- Spoiler
- in BB Code Tag Name - spoiler
- in Replacement -
<div style="margin:2em 0em 2em 1.3em;">* <a style="text-decoration: none; border-width:1px; border-style:none none dashed;" name="spoiler" onclick="if(typeof Spoiler !== 'undefined'){Spoiler.toggle_display(event);}else{obj=this.parentNode.childNodes[2].style; tmp=(obj.height!='0px') ? '0px' : 'auto'; obj.height=tmp;} return false;" href="#">{option}</a><div class="subblock" style="overflow:hidden;height:0px;margin-left:1.7em;margin-top:0.8em;"><div>{param}</div></div></div>
- in Example - [spoiler=Example]Enter the text we want to hide[/spoiler]
- in Description - Tag to hide spoiler
- Use {option} - Yes
- Button Image (Optional) - leave empty
- Remove Tag If Empty - Yes
- Disable BB Code Within This BB Code - No
- Disable Smilies Within This BB Code - No
- Disable Word Wrapping Within This BB Code - No
- Disable Automatic Link Parsing Within This BB Code - No
2. And then Click Save
3. You could use tag as is, but the animation part is added with product installation. To install product follow the standard process.

Notes:

This mod is developped here https://github.com/rcdesign/vb-spoiler_animation. Patches are welcome.

Download

File Type: %1$s vb-spoiler_animation-0.1.zip (2.9 KB, 176 downloads)

Screenshots

Click image for larger version
Name:	spoiler.png
Views:	1528
Size:	10.2 KB
ID:	127591  

Similar Mods

BB Code Enhancements JQuery-animated Spoiler BBCode vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024