MyBB Community Forums

Full Version: [mybbplus.com] Spoiler Tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Very neat - thanks.
can the spoiler support nested spoiler ?
(2009-12-12, 11:26 AM)kurniawan Wrote: [ -> ]can the spoiler support nested spoiler ?

I don't think so
If you mean, nested quote? Yes.
But, this spoiler code without title Smile

for using title, add second MyCode and use this code
for Regular Expression
\[spoiler=(.*?)\](.*?)\[/spoiler\]

and for Replacement
<tag><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>$1</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" 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.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
$2
</div>
</div>
</div>
</tag>

Enjoy.. Wink
@FBI what i need is
[Spoiler=this is one]
[spoiler=nested two]
[spoiler=nested ....]
......
......
[/spoiler]
[/spolier]
[/spoiler]
I really like this mycode.

But is it possible to get it with a "title" like:
http://community.mybboard.net/thread-52615.html

I like the design/look of this one.
but misses the possibility of a title!
nice thanks.
where shuold i do this ?
The link is broken, your site loaded so slow that I couldn't look for another area where a spoiler was used..
thanks for the spoiler code Smile
This looks awesome, thanks for this Op
Pages: 1 2