MyBB Community Forums

Full Version: Create User?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-05-12, 07:32 PM)mxx Wrote: [ -> ]do I leave the 11,12?

Yes you may leave it if you want to remove/hide only Non-Activated usergroups.
How can I hide another group from the member list. I just set up a new group and i'll like to hide them from the member list until they get promoted. Can I do this?
Just change the usergroup ID in $user['usergroup'] == "5". e.g. If their group id is 6 then it would become $user['usergroup'] == "6"
can I use more then one with that code if so how?
Also thanks for all of your help!
I want to hide 5,8,11,12
5 - Awaiting Activation
8 - New member (get's promoted to registered member after 1 post)
11 & 12
(2011-05-13, 06:20 PM)mxx Wrote: [ -> ]can I use more then one with that code if so how?
Also thanks for all of your help!
I want to hide 5,8,11,12

Use this;
       if ($user['usergroup'] == "5" && $user['usergroup'] == "8" && $user['usergroup'] == "11" && $user['usergroup'] == "12" && $mybb->user['usergroup'] != "4")
        {
            continue;
        }

OR this;
$usergroups = array(5,8,11,12);
     if (in_array($user['usergroup'],$usergroups) && $mybb->user['usergroup'] != "4")
        {
            continue;
        }
Or, you could just use in_array, instead of repeating $user['usergroup'] multiple times Smile
thanks so much for all of the help. it's working now.
Most welcome mxx =)
hmm having one little problems members can't view the member list. Please help

They get this message:
"There were no members found with the search criteria you entered.
Please enter a different search term and try again."
Pages: 1 2