I have been reading carefully through the mediawiki documentation but I have not been able to find out how to create new groups.
When I look at Special:Userrights, I see only 3 groups : Bots, Sysops, Bureaycrats
I would like to create my own custom groups, so I can use some extensions like the http://www.mediawiki.org/wiki/Extension:Group_Based_Access_Control.
Can someone tell me how it's done, or point me to some documentation?
Creating a new group and assigning permissions to itMediaWiki:Group-<group-name> (content: Name of the group ) MediaWiki:Group-<group-name>-member (content: Name of a member of the group ) MediaWiki:Grouppage-<group-name> (content: Name of the group page )
Go to Special Pages > User rights management and enter the username of the person to be added (Note: if you're not sure you can also go to Special Pages > User List to see a listing of everyone's that has logged into the site.) From the Available Groups column select the group the user should be added to.
The “MediaWiki” namespace is used to hold system messages and other important content. For instance, the page MediaWiki:Edit (or MediaWiki:Vector-view-edit in the default “Vector” skin) contains the text that fills the “Edit” tab at the top of every page.
Deleting a user Account When MediaWiki users are created by spam bots, they cannot be deleted through the MediaWiki administration section. In order to delete these users, you will need to manually remove them from the database through PhpMyAdmin.
You can add permissions for new groups to your LocalSettings.php file and they will automatically appear in the Special:UserRights page.
For example, I wanted to disallow editing by regular users but create a "Trusted" group that was allowed to edit. The following code creates a "Trusted" group that is equal to the "user" group, except that "Trusted" users can edit but "user" users cannot.
$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user']; $wgGroupPermissions['user' ]['edit'] = false; $wgGroupPermissions['Trusted']['edit'] = true; $wgGroupPermissions['sysop' ]['edit'] = true;
On the Special:UserRights page, I can now check the "Trusted" box to make users trusted.
You can alter the appearance of the group name by creating the following messages: (For a group named ninja:)
This will insure that the group will be referred to as "Ninjas" throughout the interface, and a member will be referred to as a "ninja", and overviews will link the groupname to Project:Ninjas.
(source: http://www.mediawiki.org/wiki/Manual:User_rights#Examples)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With