В гостевой сделано так:
$post = functions::checkout($res['text'], 1, 1); // bbcode
if ($set_user['smileys'])
$post = functions::smileys($post, $res['rights'] >= 1 ? 1 : 0); В гостевой сделано так:
$post = functions::checkout($res['text'], 1, 1); // bbcode
if ($set_user['smileys'])
$post = functions::smileys($post, $res['rights'] >= 1 ? 1 : 0);