Spoiler BBCode

A selection of BBCodes for use on your phpBB3 Forums.
User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am

Re: Spoiler BBCode

Post by cisco007 » Tue Nov 02, 2010 3:57 am

Latest post of the previous page:

i already know about that mod, but thanks anyways!

ficolas
Forum Member
Forum Member
Posts: 1
Joined: Sun Apr 22, 2012 1:11 pm

Re: Spoiler BBCode

Post by ficolas » Sun Apr 22, 2012 1:15 pm

I have a better spoiler, becouse it allows you to put a custom text on "Spoiler"
BBCode:

Code: Select all

[spoiler={SIMPLETEXT}]{TEXT}[/spoiler]
HTML Code:

Code: Select all

<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {  this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>{SIMPLETEXT}: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>{SIMPLETEXT}: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>{SIMPLETEXT}: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
NOTE: I just edited the code, not by me.

User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am

Re: Spoiler BBCode

Post by cisco007 » Sun Apr 22, 2012 9:07 pm

thanks seems like one i have on my other support forum!

Post Reply