$signaturepreview=bbcodeparse($signature,0,$allowsmilies); // preview
$signaturepreview=bbcodeparse($previewsignature,0,$allowsmilies); // preview