Just another part to this is you want to add the flash button to UBBCODE.
In ubbt_instant_ubbcode.tmpl
Find this:
if (action == "image") {
var thisImage = prompt("{$ubbt_lang['ENTERIMAGE']}", "http://");
if (thisImage == null){return;}
insertAtCaret(document.replier.Body, ' ' + "[{$ubbt_lang['TEXT_IMAGE']}]" + thisImage + "[/{$ubbt_lang['TEXT_IMAGE']}]" + ' ' );
document.replier.Body.focus();
return;
}
ADD UNDER:
if (action == "flash") {
var thisImage = prompt("ENTER FLASH FILE", "http://");
if (thisImage == null){return;}
insertAtCaret(document.replier.Body, ' ' + "[FLASH]" + thisImage + "[/FLASH]" + ' ' );
document.replier.Body.focus();
return;
}
FIND THIS:
<td class="darktable">
<a href="javascript: x()" onclick="DoPrompt('quote');">{$ubbt_lang['J_QUOTE']}</a>
</td>
</tr>
<tr>
<td class="darktable">
ADD UNDER:
<a href="javascript: x()" onclick="DoPrompt('flash');">Flash</a>