Let's go, it's so easy!
In functions.php find:
How to use...
Use like this
[*spoiler]text here[/*spoiler]
remove the * from the tags!
In functions.php find:
// $s = preg_replace("/\[\*\]/", "<li>", $s); Before add: //[spoiler]TEXT[/spoiler]
$s = preg_replace("/\[spoiler\]((\s|.)+?)\[\/spoiler\]/", "<div style=\"margin:0px 0px 0px 0px\">
<div class=\"smallfont\" style=\"margin-bottom:0px\">
<small><b><blink>May have revelations.<br>Click the button to show/hide.</blink><br></b></small><input type=\"button\" value=\"Show\" style=\"width:75px;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 style=\"margin: 0px; padding: 0px; border: 0px inset;\">
<div style=\"display: none;\">\\1</div></div>", $s);How to use...
Use like this
[*spoiler]text here[/*spoiler]
remove the * from the tags!