Jump to content

Extension:InviteSignup/zh

From mediawiki.org
This page is a translated version of the page Extension:InviteSignup and the translation is 12% complete.
MediaWiki扩展手册
InviteSignup
发行状态: 稳定版
实现 用户身份 , 特殊页面
描述 Allows to invite users to signup to a closed wiki
作者 Niklas Laxström (Nikerabbit留言)
最新版本 1.0.0+2021-09-01
MediaWiki >= 1.40.0
数据库更改
Composer mediawiki/invite-signup
invitesignup
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
  • $wgInviteSignupHash
  • $wgISGroups
  • invitesignup
前往translatewiki.net翻譯InviteSignup扩展
問題 开启的任务 · 报告错误

The InviteSignup extensions allows account creation to be offered to a user on a closed wiki where it's restricted.

The extension adds a "Special:InviteSignup" special page, available to users with invitesignup permission.

  • The inviter, from this page, by entering just an e-mail address, can quickly invite a single person to create an account on the wiki.
  • The person can then set a username and password, confirming the creation of the account, which is logged; until then, no account is created.
  • The inviter can optionally set additional user groups to which the account will be added automatically after creation.

安裝

  • 下载文件,并解压InviteSignup文件夹到extensions/目录中。
    开发者和代码贡献人员应改从Git安装此扩展,输入:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InviteSignup
    
  • 請新增下列代码到您的LocalSettings.php 文件的底部:
    wfLoadExtension( 'InviteSignup' );
    
  • 請运行更新脚本,它将自动创建此扩展所必须的数据库表。
  • You will need to give the invitesignup permission to at least one user group. To have administrators be able to do the inviting, for instance, add the following to LocalSettings.php:
$wgGroupPermissions['sysop']['invitesignup'] = true;
  • You can also set the variable $wgISGroups to an array of user groups. When inviting, you can mark to which groups the invited user will be added automatically. For example, with the following setting, you are able to invite 1) normal users 2) translators 3) sysops.
$wgISGroups = [ 'translator', 'sysop' ];
  • Yes 完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。

参见