[STEP 1:]
/templates/default/standard_text_editor.tpl
>>FIND
<a href="javascript: x()" onclick="DoPrompt('image');" title="{$lang.IMAGE_ALT}" alt="{$lang.IMAGE_ALT}"><img id="image" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/image.gif" /></a>
>>ADD BELOW
<a href="javascript: x()" onclick="DoPrompt('spoiler');" title="spoiler" alt="spoiler"><img id="spoiler" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/spoiler.gif" /></a>
[STEP 2:]
/ubb_js/standard_text_editor.js
>>FIND
if (action == "image") {
var thisImage = prompt(enterImage, "http://");
if (thisImage == null){return;}
insertAtCaret(document.replier.Body, ' ' + "[img]" + thisImage + "[/img]" + ' ' );
document.replier.texteditor.focus();
return;
}
>>ADD BELOW
if (action == "spoiler") {
var thisSpoiler = prompt("Enter Spoiler Data", "Spoiler Text");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, ' ' + "" + ' ' );
document.replier.texteditor.focus();
return;
}
[STEP 3:]
Upload gif to markup panel directory