MyBB Community Forums

Full Version: How to add [hide] to be used as well as [spoiler]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've tried adding the MyCode

[color=#333333][size=small][font=Monaco, Consolas, Courier, monospace]<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>


and adding jquery


<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>



But it doesn't work at all.


Is there any way I can add [hide]? I'm also using Advanced Spoiler plugin