Page 1 of 1

[bbcode] wbb3 to phpbb3 - Spoiler

Posted: 09 Jun 2010, 18:57
by Daniel_Knecht
Hello,
here is another bbcode for phpbb3. This is a Spoiler like wbb3.
"Thanks to my Friend sascha3008 for the little help :)"

BBCode:

Code: Select all

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

Code: Select all

<div style="padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;"><div style="font-size:12px; color:#ffffff;"><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 = '<a href=\'#\' onClick=\'return false;\'><img src=\'images/minus.png\' width=\'10\' height=\'10\' border=\'0\' style=\'margin:0px 10px 0px 10px;\'></a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<a href=\'#\' onClick=\'return false;\'><img src=\'images/plus.png\' width=\'10\' height=\'10\' border=\'0\' style=\'margin:0px 10px 0px 10px;\'></a></a>'; }" ><a href="#" onClick="return false;"><img src="images/plus.png" width="10" height="10" style="margin:0px 10px 0px 10px;"></a></span><b>Spoiler:</b>&nbsp;&nbsp;{INTTEXT}</div><div style="background-color:#ffffff; padding:0px 10px 0px 10px;" class="quotecontent"><div style="display: none;"><br>{TEXT}<br><br></div></div></div>
Helpline:

Code: Select all

Spoiler: [spoiler=titel des spoilers]inhalt des spoilers[/spoiler]
Image you need to Download: (right click > save as...)
Image Image Image

Example:
Visit: Spoiler DEMO

Re: [bbcode] wbb3 to phpbb3 - Spoiler

Posted: 09 Jun 2010, 19:55
by cisco007
very nice looking spoiler!

Re: [bbcode] wbb3 to phpbb3 - Spoiler

Posted: 09 Jun 2010, 20:01
by Fire-Fox
Indeed :)

great job!

Re: [bbcode] wbb3 to phpbb3 - Spoiler

Posted: 09 Jun 2010, 21:34
by Inner Circle
This spoiler looks much better than the one i used

Thanks!

Re: [bbcode] wbb3 to phpbb3 - Spoiler

Posted: 16 Aug 2010, 20:51
by wijo
Daniel_Knecht ยป 09 Jun 2010, 18:57 wrote:Hello,
here is another bbcode for phpbb3. This is a Spoiler like wbb3.
"Thanks to my Friend sascha3008 for the little help :)"

Image you need to Download: (right click > save as...)
Image Image Image

Example:
Visit: Spoiler DEMO
The images have gone. Daniel? Or somebody else?