MyBB Community Forums

Full Version: Adding a spoiler button to tags buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since i can't post in Documentation i will post here:

1. First run a spoiler plugin in plugins manager, and do what it is said.
2. Open your template set and hit expand.
3. Find template codebuttons
4. find:
<img src="./images/codebuttons/sep.gif">
<img name="img" src="./images/codebuttons/image.gif" onclick="insertCode('img')" class="toolbar_normal" onMouseOver="toolbarHover('img')" onMouseOut="toolbarUnHover('img')" onMouseDown="toolbarMouseDown('img')" alt="$lang->alt_image">
5. BELOW it put:
<img name="Spoiler" src="URL OF IMAGE" onclick="insertCode('spoiler')" class="toolbar_normal" onmouseover="toolbarHover('spoiler')" onmouseout="toolbarUnHover('spoiler')" onMouseDown="toolbarMouseDown('spoiler')" alt="Insert spoiler">
6. Replace URL OF IMAGE, with image of your spoiler button
7. Save template

Result: [Image: resultdy5.png]

NOTE: you may use this image:[Image: imageph6.gif] but i require full credit:

Credit to D-Man of Ultimate Spriters Forums

8. Thanks..... Big Grin

if you liked this, please take a look:

[Image: UltimateSpriters5-2.gif]
Which version of MyBB did you do this in?
mybb v1.1.8, the one that createmybb hosts. It isn't compatibile with 1.2 is it?
No it's not compatible with MyBB 1.2. I think it also depends on what Spoiler modification you use.
i used the plugin that is installed on createmybb
It definitely do not work for MyBB 1.2...

Check here if you want to do it for MyBB 1.2