扩展:新用户注册页面
NewSignupPage 发行状态: 稳定版 |
|
---|---|
实现 | MyWiki |
描述 | 增强MediaWiki的默认注册页面 |
作者 | Jack Phoenix |
最新版本 | 1.2.0 (2020-01-06) |
MediaWiki | 1.39.10+ |
数据库更改 | 是 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | 更新日志 |
示例 | 任何ShoutWiki网站 |
|
|
|
|
季度下載量 | 11 (Ranked 126th) |
正在使用的公开wiki数 | 1,185 (Ranked 232nd) |
前往translatewiki.net翻譯NewSignupPage扩展 | |
問題 | 开启的任务 · 报告错误 |
The NewSignupPage extension enhances MediaWiki's default signup page, Special:CreateAccount, by requiring users to check a checkbox stating that they've read and understood the site's Terms of Service and Privacy Policy.
除此之外,这一扩展与Social tools 兼容。
If a wiki's admins choose to give out points for recruiting new users, set $wgRegisterTrack
to true (and make sure that user_register_track
table exists on that wiki's database beforehand!) and you're done.
目前,该扩展程序已配置为链接到ShoutWiki的隐私政策和使用条款。
To personalize it for your wiki, you need to set $wgNewSignupPageToSURL
and $wgNewSignupPagePPURL
(for example $wgNewSignupPageToSURL = "URL to ToS";
).
安裝
- 下载文件,并将解压后的
NewSignupPage
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewSignupPage - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'NewSignupPage' );
- If you set
$wgRegisterTrack = true;
, you need to create theuser_register_track
table in your database; you can do this from command line withphp maintenance/sql.php extensions/NewSignupPage/user_register_track.sql
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
用户权限
This extension adds a new user right, bypasstoscheck
, which by default isn't given to any group. Users with this right can create new accounts without checking the "I accept the site's Terms of Service" checkbox.
User points
$wgUserStatsPointValues['referral_complete']
— Set this to something to give out points for referring a new user successfully to the site.
自定义复选框消息
This extension adds a new checkbox in Special:CreateAccount (right below the Remember my login on this computer checkbox).
You can edit the text for this checkbox by editing the system message in MediaWiki:Newsignuppage-loginform-tos
.
参数
Name | Description | Default |
---|---|---|
$wgAutoAddFriendOnInvite |
If the new user was referred to the site by an existing user, should we make them friends automatically? | false
|
$wgRegisterTrack |
Whether to track registrations into the user_register_track DB table. |
false
|
$wgForceNewSignupPageInitialization |
Initialize the extension, even if InviteEmail or UserRelationship classes do not exist? Useful for testing. |
参见
- ConfirmAccount - Adds an ToS link & checkbox to registration
此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |