In backend/functions.php
Find :
(not necessary but look a little bit better)
See the captured file :)
Edit: Taken from a PHPBB 3 forum for the javascript.
If someone fine a way to put the javascript into a file..
Find :
//
$s = preg_replace("/\[hr\]/i", "<hr>", $s);Afiter add : // [spoil] TEXT [/spoil]
$s = preg_replace('/\[spoil\]((\s|.)+?)\[\/spoil\]/i', '<div class="spoilinfo"><div class="spoiltitle"><strong>Spoil: </strong><input value="Show" class="bbspoil" 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\'; }" type="button" /></div><div class="bbspoilco"><div style="display: none;">\\1</div></div></div>', $s);
into your CSS add :
input.bbspoil{margin:0px;padding:0px;width:50px;font-size:10px;}
div.bbspoilco{margin-left:10px;}(not necessary but look a little bit better)
See the captured file :)
Edit: Taken from a PHPBB 3 forum for the javascript.
If someone fine a way to put the javascript into a file..