Release status: stable
|Description||Restricts edit access to user pages|
|Author(s)||Lisa Ridley, Eric Gingell|
|Last version||2.00 (2007-12-06)|
|Check usage and version matrix|
The UserPageEditProtection extension will restrict edit access to user pages to the owner of the page (user) and users assigned to groups that have been given user page edit access through $wgGroupPermissions. This effectively provides users with a group of protected pages since this protection also extends to any subpages of the user page (i.e., User:Hoggwild/sandbox1). The User pages can be read by any user assigned to a group with view rights to user pages, but can only be edited by authorized users.
This extension has no effect on user talk pages.
Sysops should probably be provided the ability to edit all user pages to remove user page content that violates the provisions of the wiki. Other user groups can be provided the ability to edit user pages by assigning permission through $wgGroupPermissions as well.
Save the code below in your extensions folder of your MediaWiki installation as UserPageEditProtection.php. Add the following to your LocalSettings.php file:
$wgOnlyUserEditUserPage = true; /* Set this to true to turn on user page protection */ $wgGroupPermissions['sysop']['editalluserpages'] = true; /* Set this to allow sysops to edit all user pages */ require_once("extensions/UserPageEditProtection/UserPageEditProtection.php" ); /* Add this to activate the extension. */
MediaWiki Versions 
- Version 1.0 of this extension has been tested and works fine on MediaWiki versions 1.6.x, 1.7.x, 1.8.x, 1.9.x and 1.10.x.
- Version 2.0 of this extension has been tested and works fine on MediaWiki version 1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x., 1.16.x, 1.17.x, 1.18.x