if($vbulletin->userinfo['userid'] == 0){//user isn't signed (error message goes here)}
<if condition="$bbuserinfo[userid] == 0">User isn't currently signed in</if>