//smilies if($dosmilies) {
global $post; $bbcode = str_replace('{postid}', $post['postid'], $bbcode); //smilies if($dosmilies) {