And a single-file fix to this... open up the file libs/html.inc.php

Find:
Code
					$bbcode_drop .= <<<BLEH
<div id="bbcode_{$k}" onmouseover="litSelection(this.id);" onmouseout="unlitSelection(this.id);" class="markup_panel_unselect_text" onclick="DoPrompt('bbcode','{$type['prompt']}','{$type['open']}','{$type['close']}');" style="cursor: pointer;">{$type['descrip']}</div>
BLEH;

Below, add:
Code
$bbcode_drop_nr++;

Then, find:
Code
$bbcode_drop .= '</div>';


Below, add:
Code
if (!$bbcode_drop_nr) { $bbcode_drop = ''; }