MyBB Community Forums

Full Version: Rep Block how to add another usergorup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://mods.mybb.com/view/repblock

Currently it's set for only user group id 4 to use

global $uid, $db, $isBlocked, $templates, $headerinclude, $lang, $mybb, $time, $repblock_button, $repblock_info;
$lang->load("repblock");
if ($mybb->user['usergroup'] == 4) {


How to I make it so I can add another group to that. I've tried a few things it just makes the site whitescreen
try (haven't tested this, it's something along these lines below)
global $uid, $db, $isBlocked, $templates, $headerinclude, $lang, $mybb, $time, $repblock_button, $repblock_info;
$lang->load("repblock");
if in_array($mybb->user['usergroup'], array(4,16,1,6)) {
Just change 4,16,1,16 to your groups.
Just white screens on the config page again.