This part..
##
## Find this:
##
{$postrow[$i]['quotelinkstop']}
</td>
</tr>
</table>
##
## Change to this:
##
UBBTPRINT;
if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {
$qreplylinkstart = "<a href="javascript:quickreply('$i');">";
$qreplylinkstop = "</a>";
} else {
$qreplylinkstart = "";
$qreplylinkstop = "";
}
echo <<<UBBTPRINT
<td class="navigation" nowrap="nowrap">
$qreplylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUICK_REPLY_ICON']}
$qreplylinkstop
</td>
</tr>
</table>
has a goof. You lose the </td> at the end of the quote cell.