Try looking for $userinfo.membershipid eq 2 or whatever the correct id is. If it's not present in $userinfo you might need to do something like add the following to include/check_useraccount.php:
PHP Code:
$smarty->assign('user_membershipid',$user_account['membershipid']);
Then use:
Code:
{if $user_membershipid eq 2}
...