![]() |
dealing with 2ndary usergroup
when dealing with them, do their set UG num change? cuzz my site is run off of vb and we use usergroups to allow or disallow ppl to do certain things
works great when dealing with primary usergroups, but secondary just does want to work, is there a reason? Code:
if ($usergroup == $premid || $usergroup == $premidall){$bandlimit = $premlimit; $donateaccess = 1;} |
primary usergroup does not change. Best way to identify if a user belongs to a specific usergroup is to use the is_member_of() function which works for both primary as well as secondary usergroups. Typically, you would use it like this:
if (is_member_of($vbulletin->userinfo, 5,6,7,18,27)) { echo 'I am in 1 or more primary or secondary usergroups: 5,6,7,18,27'; } you can read full documentation onthe function in the vbulletin API located within the members section. |
All times are GMT. The time now is 09:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|