Did anybody get this to work (check for membergroupids)?
Looking at the below example, I noticed that you are using 'usergroupid' and I think this needs to be 'membergroupids' like:
PHP Code:
<?php
if ($vbulletin->userinfo['membergroupids'] is_member_of(n,n,n))
{
echo "This is only visible to people in usergroups n,n,n";}
?>
usergroupid is a users primary access level while membergroupids can contain multiple secondary access levels.
Quote:
Originally Posted by Billspaintball
Try something like
PHP Code:
<?php if ($vbulletin->userinfo['usergroupid'] is_member_of(n,n,n)) { echo "This is only visible to people in usergroups n,n,n";} ?>
where n = the groups you want to check.
I havent tried this yet, it may or may not work.
Look here for more info https://vborg.vbsupport.ru/showthread.php?t=132024
|