Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
Spoiler tag
Spoiler tag
MyCode Title: Spoiler Tag
Regular Expression:
Code:
\[spoiler\](.*?)\[/spoiler\]
Replacement:
Code:
<div
style="margin:20px; margin-top:5px"><div
class="quotetitle"><input class="button2 btnlite" type="button"
value="View Spoiler"
style="text-align:center;width:115px;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 Spoiler'; } else {
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= 'none'; this.innerText = ''; this.value = 'View Spoiler'; }"
/></div><div class="quotecontent"><div style="display:
none;">$1</div></div></div>