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.

Full Spoiler

Useful code for spoiler in mybb (for images, text, video...)

Version: 1.0
Author: Mr.JunioR
Submitted: 4th December 2011
1- Name: Spoiler

2- Description: This allows users to add spoilers to their post.

3- Regular Expression: \[spoiler\](.*?)\[/spoiler\]

4- Replacement:

<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; width: 100%;" ><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: balock;"><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>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Expand</a>'; }" /><b>Spoiler </b><a href="#" onClick="return false;">Expand</a></span></div><div class="quotecontent"><div style="display: none;">$1</div></div></div>

5- Activate MyCode!!!
Previews:Preview Image 4585