Oh by the way, this mod doesn't work correctly.
In the adminCP options page for this mod it says:
"Enter user groups that you want to have access to your CMS.
Separate usergroups with a comma.
Example: 6,5"
However, it is not coded correctly to work w/ more than one usergroup so inputting more than usergroup id will beak the board.
is_member_of() requires you to input usergroup ids, not an array. So you can't use this:
Code:
<vb:if condition="is_member_of($vbulletin->userinfo, $vbulletin->options['cms_disabler_usergroups'])">
Here's what I did to fix the issue. In the plugin titled "CMS - Redirector" add the following to the top:
PHP Code:
// Generate an array w/ all the usergroups
$cms_disabler_usergroups = explode(",", $vbulletin->options['cms_disabler_usergroups']);
// Get rid of white spaces
function trim_value(&$value) {
$value = trim($value);
}
array_walk($cms_disabler_usergroups, 'trim_value');
then replace this line:
PHP Code:
if (!is_member_of($vbulletin->userinfo, $vbulletin->options['cms_disabler_usergroups'])) {
with this line:
PHP Code:
if ( !in_array($vbulletin->userinfo['usergroupid'], $cms_disabler_usergroups) ) {