Quote:
Originally Posted by ragtek
hi
are you using version 1.3???
There it is for me working.Have you made a comma separated list of all usergroupid's ??
|
I'm Using the New Update (1.3), and I have vB 3.6.7 PL1; but I've Found the Answer of that Problem for You:
Quote:
Originally Posted by inciarco
|
I Found the Answer by looking to Similar Mods that Use a List of Member Groups to set the Permissions via Plugin and/or via PHP File:
You need to use the Code
explode in the Following way to Extract and Use all the Usergroups Separated by
",":
The New Correct Code for Plugin "
redirect after login" should be:
Code:
if (!($vbulletin->GPC['logintype'] === 'cplogin' OR $vbulletin->GPC['logintype'] === 'modcplogin'))
{
if (is_member_of($vbulletin->userinfo, explode(',',$vbulletin->options['login_groups'])))
{
$vbulletin->url = $vbulletin->options['loginredirect'] . $vbulletin->session->vars['sessionurl_q'];
if ($vbulletin->options['login_showredirect'] == 1)
{
eval(print_standard_redirect('redirect_login', true, true));
}
else
{
standard_redirect();
}
}
}
Notice that I Replaced
Code:
$vbulletin->options['login_groups']
with
Code:
explode(',',$vbulletin->options['login_groups'])
I tested it and It Works Now OK with that Small Change!! :up:
My Best Regards!!