View Full Version : vb user permession on a non vb page
Osterling
08-21-2005, 10:23 PM
i'm wondering if someone could assist me in getting vb permession to run on a non-vb page. anyone know how i would go about doing this.
thanks
let me add, i am using the version 3.5 rc
Include your global.php and use $vbulletin->$useroptions('usergroup') confitionals for permissions.
Osterling
08-23-2005, 07:23 PM
how would i set up $vbulletin->$useroptions('usergroup') confitionals, if that make sense?
Andreas
08-23-2005, 07:29 PM
It's actually $vbulletin->userinfo['usergroupid'] (for Primary Usergroup) and $vbulletin->userinfo['membergroupids'] (for Additional Usergroups).
If you just want to check if a User as a member of a given Usergroup:
if (is_member_of($vbulletin->userinfo, X))
{
// do smth.
}
You can also check several Usergroups at once:
if (is_member_of($vbulletin->userinfo, X, Y, Z))
{
// do smth. if User is in X, Y or Z (non-exclusive!)
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.