Simple Hidden Spoiler Text BBCode

A selection of BBCodes for use on your phpBB3 Forums.
Post Reply
User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm

Simple Hidden Spoiler Text BBCode

Post by LDM » Sun Jan 25, 2009 6:53 pm

This is a very much simple spoiler than to the other posted within our BBCode forum. This will hide text until you click the text to show the spoiler.
You must first add the text you want to show then close it with a ] then add the hiding text.

BBCode Usage:

Code: Select all

[hiddenspoiler={TEXT1}]{TEXT2}[/hiddenspoiler]


HTML Replace:

Code: Select all

<span onclick="if (this.innerHTML != '{TEXT1}') { this.innerHTML = '{TEXT1}' } else { this.innerHTML = '{TEXT2}'}">{TEXT1}</span>


Helpline:

Code: Select all

A Simple Spoiler for Text in posts.


Example Embed:

Code: Select all

[hiddenspoiler=Add your text to make people click]Add here the text you want to hide[/hiddenspoiler]


Example as above:

Add your text to make people click

Post Reply