Quote:
Originally Posted by Lynne
If you look at the user table in the database, you'll see the field is usergroupid, not just usergroup. And, as the field implies, it is the id not the name of the group.
|
yeah figured that,, tryed it..
this is what im trying to do
getting the user set groups from settings which is something like 2,5,6,7
PHP Code:
$usergroups = htmlspecialchars_uni($vbulletin->options['galusergrp']);
$usergroup = preg_split('/[\s,]+/', $usergroups );
$currentuser = $vbulletin->userinfo[usergroupid];
if ($currentuser = $usergroup)
{
}
but its always true.