Open main menu
This page is a translated version of the page Extension:NewSignupPage and the translation is 73% complete.

Other languages:
English • ‎русский • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
NewSignupPage
发布状态: 稳定版
实现 MyWiki
描述 增强MediaWiki的默认注册页面
作者 Jack Phoenix
最新版本 1.1.0 (2017-09-30)
MediaWiki 1.33+
许可协议 GNU General Public License 2.0 or later
下载
更新日志
例子 任何ShoutWiki网站
  • $wgRegisterTrack
  • $wgAutoAddFriendOnInvite
  • $wgForceNewSignupPageInitialization
bypasstoscheck
翻译NewSignupPage扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

The NewSignupPage extension enhances MediaWiki's default signup page, Special:UserLogin/signup, 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 edit MediaWiki:shoutwiki-loginform-tos and MediaWiki:shoutwiki-must-accept-tos.

安装

  • 下载文件,并将其放置在您extensions/文件夹中的NewSignupPage目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'NewSignupPage' );
    
  • If you set $wgRegisterTrack = true;, you need to create the user_register_track table in your database; you can do this from command line with php 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:UserLogin/signup (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:Shoutwiki-loginform-tos.

参数

  • $wgAutoAddFriendOnInvite — if the new user was referred to the site by an existing user, should we make them friends automatically? Defaults to false.
  • $wgRegisterTrack — whether to track registrations into the user_register_track DB table. Defaults to false.
  • $wgForceNewSignupPageInitialization — initialize the extension, even if InviteEmail or UserRelationship classes do not exist? Useful for testing.

参见