MyBB Central

Full Version: Mapovifog (Max Post Views For Guests) help with code edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i make this plugin for usergroups 1 & 5 so it works for guests and for accounts not verified yet? I have tried editing the plugin like this by adding the 5 in but i can't get it working for accounts that aren't verified.

Code:
if($mybb->user['usergroup'] != "1,5" || !$mybb->settings['mapovifog']){
        return;
    }
Why not try the following

Code:
if(in_array($mybb->user['usergroup'], array('2','8')))
{
error("Access denied");
}
(Aug 09, 2012, 03:10 PM)joker Wrote: [ -> ]Why not try the following

Code:
if(in_array($mybb->user['usergroup'], array('2','8')))
{
error("Access denied");
}

Thanks for the reply but it didn't work as it blocks all groups from seeing the thread and i think somehow i need to keep this part of the code below.

Code:
|| !$mybb->settings['mapovifog']){
        return;
    }