/scripts/smilies.inc.php
line 82: delete the
at the end of this line to ensure the smileys wrap correctly in IE6.
You can also consider adding below $i++:
if ($i == 15) {
$i=0;
$graemlinlist .= "<br />";
}
to insert a <br> every 15 graemlins. If you want to have full control over smileys-per-line.