<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] && is_member_of($bbuserinfo, X, X, X)"> ALL THE PROFILE CODE </vb:if>