Yeah, I looked at that before, but the code there is rather... specialized.
This is from editor_toolbar_on.
Code:
<if condition="$show['url_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
I'm pretty sure that it's {$editorid} that makes the javascript code work, but I'm not sure where to edit or reproduce that.
Also, another thing... For some reason, with all the above functioning correctly, it isn't defining the 'option' correctly.
Code:
<?php
function bbcode_deck($body, $name)
{
// Start output and build header row with name.
$output .= '<table width="75%" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;">
<tr><td class="tcat" style="padding:5px; font-size:20px;">' . $body . '</td></tr>
<tr><td class="alt2"><table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin:5px;">';
(rest of function)
}
?>
The bbcode to that is: [deck=name of deck]number*content1
number*content2[/deck]
(of course, any number of content items)... For some reason, with this, $body automatically becomes "Object". I dunno why...