<if condition="$vbulletin->userinfo['userid']"> <!-- User is logged in --> <else /> <!-- User is not logged in --> </if>