MyBB Community Forums

Full Version: spoiler problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i just adding spoiler in my forum. i use two method :
1. i go to ACP ,new code then i copy paste this code :
\[spoiler\](.*?)\[/spoiler\]
then replace with this
<div style="margin:20px; margin-top:5px">
<div class="smalltext" style="margin-bottom:2px"><strong>Spoiler Spotline Forum : </strong>&nbsp;<input type="button" class="button" value="Buka" 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 = 'Tutup'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Buka'; }">
</div>
<div class="trow2" border="1" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">$1</div>
</div>
</div>

2.after that i adding this code to editor.js
{type: 'button', name: 'spoiler', insert: 'spoiler', image: 'spoiler.png', title: 'Spoiler'}
like instruction in this thread on post #9
http://community.mybb.com/thread-130943....ht=spoiler

after that i test it , but the spoiler does'nt have spoiler text in toolbar.only blank box .

you can check my forum on nyundul.com

please give me solution