[Note: It's modification for vB3.6 beta. It should work in 3.5.x but I'm not sure.]
Here you go mate:
Replace
posticons template with that:
HTML Code:
<if condition="$show['posticons']">
<script type="text/javascript">
<!--
function swap_posticon()
{
var sel = fetch_object("icon_select");
var out = fetch_object("display_posticon");
var opt = sel.options[sel.selectedIndex];
if (opt)
{
out.src = opt.id;
out.alt = opt.value;
}
else
{
out.src = "$vboptions[cleargifurl]";
out.alt = "";
}
}
// -->
</script>
<fieldset class="fieldset" style="margin:10px 0px 0px 0px">
<legend>$vbphrase[post_icons]</legend>
<div style="padding:$stylevar[formspacer]px">
<table cellpadding="0" cellspacing="$stylevar[cellspacing]" border="0" width="95%">
<tr>
<td colspan="15"><div style="margin-bottom:$stylevar[formspacer]px">$vbphrase[may_choose_icon_for_message]:</div></td>
</tr>
<tr>
<td width="12%" nowrap="nowrap"><select name="iconid" id="icon_select" onchange="swap_posticon()" tabindex="1"><option value="0" $iconchecked>$vbphrase[no_icon]</option>$posticonbits</select> </td>
</tr>
</table>
</div>
</fieldset>
<else />
<input type="hidden" name="iconid" value="0" />
</if>
Replace
posticonbit template with that:
HTML Code:
<option value="$iconid" id="$iconpath" $iconchecked>$alttext</option>
Find in ./includes/functions_newpost (on line 76 if your file is unmodified) an
remove it:
PHP Code:
if ($numicons % 7 == 0 AND $numicons != 0)
{
$posticonbits .= "</tr><tr><td> </td>";
}
$numicons++;
in the same file look for (on line 88):
PHP Code:
$iconchecked = 'checked="checked"';
and replace it with:
PHP Code:
$iconchecked = 'selected="selected"';
In the same file look for (on line 102):
PHP Code:
$remainder = $numicons % 7;
if ($remainder)
{
$remainingspan = 2 * (7 - $remainder);
$show['addedspan'] = true;
}
else
{
$remainingspan = 0;
$show['addedspan'] = false;
}
if ($seliconid == 0)
{
$iconchecked = 'checked="checked"';
}
else
{
$iconchecked = '';
}
and replace it with:
PHP Code:
$iconchecked = ($seliconid == 0) ? 'selected="selected"' : '';
Save and enjoy :-)