Page 1 of 1

Spoiler 3 BBCode

Posted: 06 Mar 2010, 12:06
by BBCode Bot
Spoiler 3 BBCode

Author: Sjoerd
Description: The Spoiler 3 BBCode is a spoiler with + and - to open the spoiler, also, you can customize the title.
Note! This is a prosilver only bbcode!
Image

BBCode:

Code: Select all

[spoiler={TEXT2}]{TEXT1}[/spoiler]
HTML:

Code: Select all

<dl class="codebox"><dt>{TEXT2} | <a href="javascript&#058; void(0);" onclick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = '-'; } else { spoiler.style.display = 'none'; this.innerHTML = '+'; };">+</a></dt><dd style="display: none;">{TEXT1}</dd></dl>
Helpline:

Code: Select all

[Spoiler={Title}]{Text}[/Spoiler]
Example:

Code: Select all

[spoiler=Title]This is a spoiler.[/spoiler3]
Demo:
[spoiler=Title]This is a spoiler...[/spoiler]

Re: Spoiler 3 BBCode

Posted: 14 Apr 2010, 16:38
by dragoth
well i have one problem with this one shouldn't it be
BBcode

Code: Select all

[spoiler={SIMPLETEXT}]{TEXT}[/spoiler]
Html

Code: Select all

<dl class="codebox"><dt>{SIMPLETEXT} | <a href="javascript&#058; void(0);" onclick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = '-'; } else { spoiler.style.display = 'none'; this.innerHTML = '+'; };">+</a></dt><dd style="display: none;">{TEXT}</dd></dl>
to make it a secure bbcode

Re: Spoiler 3 BBCode

Posted: 14 Apr 2010, 16:43
by cisco007
you don't need to put {TEXT1} you can just leave it at {TEXT} since it is already outside the html code it is secure!

Re: Spoiler 3 BBCode

Posted: 17 Apr 2010, 04:27
by Georgio
(for BBCode)
i thing:

Code: Select all

[spoiler={TEXT2}]{TEXT1}[/spoiler]
is:

Code: Select all

[spoiler3={TEXT2}]{TEXT1}[/spoiler3]
and

(for helpline)
i thing:

Code: Select all

[spoiler={Title}]{Text}[/spoiler]
is:

Code: Select all

[Spoiler3={Title}]{Text}[/Spoiler3]
In your Database you have it good but here is posted wrong...

Re: Spoiler 3 BBCode

Posted: 17 Apr 2010, 07:16
by Stoker
Actually it was the example code that was wrong.
It has been corrected.