Extension:UserPageEditProtection/vi

Category:GPL licensed extensions/vi
Cẩm nang phần mở rộng MediaWiki
UserPageEditProtection
Trạng thái phát hành: ổn địnhCategory:Stable extensions/vi
Cài đặt User rights Category:User rights extensions/vi
Mô tả Allows to restrict edit access to user pages
Tác giả
Phiên bản 4.1.0 (2020-03-07)
MediaWiki 1.29+Category:Extensions with manual MediaWiki version
PHP 7.0+
Database changes Không
Giấy phép GNU General Public License 2.0 or later
Tải xuống Category:Extensions in Wikimedia version control/vi
README
CHANGELOG
$wgOnlyUserEditUserPage
Quarterly downloads 5 (Ranked 83rd)
Translate the UserPageEditProtection extension if it is available at translatewiki.net
Category:All extensions/vi

The UserPageEditProtection extension restricts user page edit to the owner of the page and users assigned to groups that have user page edit access through $wgGroupPermissions. This effectively provides users with a group of protected pages, since this protection extends to any subpages of the user page (i.e., User:Hoggwild/sandbox1). Any user assigned to a group with view rights to user pages can read a user page, but only an authorized user may edit it. Tiện ích mở rộng này không ảnh hưởng đến các trang thảo luận của thành viên.

Installation

  • Tải và đặt (các) tệp trong một thư mục với tên UserPageEditProtection trong thư mục extensions/ của bạn.
  • Thêm mã sau vào dưới cùng tệp $LocalSettings của bạn:
    wfLoadExtension( 'UserPageEditProtection' );
    $wgOnlyUserEditUserPage = true;
    
  • Configure user permissions as required
  • Yes Xong – Chuyển tới Special:Version trên wiki của bạn để xác nhận phần mở rộng được cài đặt thành công.

Configuration

This extension comes with an extra user right called editalluserpages to allow fine-grained control. By default it is assigned to the "sysop" user group. To assign it to another user group, e.g., userpageeditor, add the following code to the "LocalSettings.php" file right after invoking this extension:

$wgGroupPermissions['userpageeditor']['editalluserpages'] = true;

You revoke permission for the "sysop" user group, for example, by adding the following line:

$wgGroupPermissions['sysop']['editalluserpages'] = false;

See also

Category:Edit extensions/vi Category:Page specific user rights extensions/vi
Category:All extensions/vi Category:Edit extensions/vi Category:Extensions in Wikimedia version control/vi Category:Extensions included in Miraheze/vi Category:Extensions included in WikiForge/vi Category:Extensions which add rights/vi Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/vi Category:GetUserPermissionsErrors extensions/vi Category:Page specific user rights extensions/vi Category:Stable extensions/vi Category:User rights extensions/vi