I'd suggest to change that code above into:
PHP Code:
if ($newpost['iconid'] < 1) {
if ($foruminfo['forumid'] == '0')
{
$newpost['iconid'] = '1';
}
else if ($foruminfo['forumid'] == '0')
{
$newpost['iconid'] = '1';
}
else
{
$newpost['iconid'] = '';
}
}
Otherwise using the "Preview Post" function will switch back to the standard icon even if someone has already selected a totally different one!