2011-07-25, 09:59 AM
Hi, all of MyBB Master
I need a help, I'm trying insert spoiler in my forum, I use this code in mycode:
Regular Expression:
Replacement:
I want to insert "spoiler in a spoiler", like this:
but it doesn't work, and you can see here:
Would You help me? I've tried to search a sollution for this problem in this forum, but I can't found it..
Sorry for my english :p
Thank you
I need a help, I'm trying insert spoiler in my forum, I use this code in mycode:
Regular Expression:
\[spoiler\](.*?)\[/spoiler\]
Replacement:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;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="trow2" border="1" style="margin: 0px; padding: 6px; border: 1px inset; background:#eee;">
<div style="display: none;">$1</div>
</div>
</div>
I want to insert "spoiler in a spoiler", like this:
[spoiler]
tesspoiler
[spoiler]tesspoiler[/spoiler]
[/spoiler]
but it doesn't work, and you can see here:
Would You help me? I've tried to search a sollution for this problem in this forum, but I can't found it..
Sorry for my english :p
Thank you