My Account

What's New

PHPMembers Blog

Who's Online

We have 234 guests and 3 members online

 

How to create an admin group PDF Print E-mail
By default, the membership system applies group #1 as administration group. Users in the group are able to access admin functions. You can create your own admin group although it is not recommended.

Creating a new group

First you need to create a new group. Click on Groups -> Create New Group on the main menu, a form which requires you to fill in the new group information is shown. To make the group active, you should select “enabled” for its status. For security reason, you would not like to make every new user as administrator, so keep “default group” option as “no”.

Modifying the configuration file

Once the group is created, you can see its group ID number from the group list. The number is the unique ID to identify the group by the system programs. Now use a text editor to open file /lib/config.inc.php. Find out the line looks like the following one:

$cfg['site']['adminGroupIDs']['0'] = 1;


This line defines the admin groups by their ID numbers. You can add one line as the following and replace N with the actual new group ID number.

$cfg['site']['adminGroupIDs']['1'] = N;


Once you complete modifying the configuration file, members in the new group are allowed to access the admin function scripts. However, the admin folder is protected by the system as well. Now you need to modify the protection settings to allow members in the new group to access admin folder.

Modifying protection settings of the admin folder

To modify protection settings of the admin folder, click on Protect on the main menu. Find out the admin folder protection record and click on Edit link in its record. By default, there is only one group selected in Allow Groups setting, which is the default admin group. You can hold the CTRL key on your keyboard and left click on the new group to select it. Then submit the form to save changes. And members in the new group are allowed to access the admin panel.