We're trying to allow Mods/Admins, as well as specific subscriber groups the ability to change styles, but restrict everyone else. I put the following code into the global.php file.
If I use just the first conditional (and remove the second) it works fine. The second conditional seems to be the one causing the problem.
PHP Code:
if (
(!in_array($bbuserinfo['usergroupid'], array(5, 6, 7, 8, 13, 16)))
or
(!in_array($user['membergroupids'], array(7, 10)))
)
{
$vboptions['allowchangestyles'] = 0;
}
I am missing something stupid here, but I can't for the life of me see what it is. Any ideas?
- Tony