Extension:NewSignupPage

From Linux Web Expert

MediaWiki extensions manual
NewSignupPage
Release status: stable
Implementation MyWiki
Description Enhances MediaWiki's default signup page
Author(s) Jack Phoenix
Latest version 1.2.0 (2020-01-06)
MediaWiki 1.39.7+
Database changes Yes
License GNU General Public License 2.0 or later
Download
Changelog
Example Any ShoutWiki site
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the NewSignupPage extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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.

In addition to that, the extension is compatible with 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.

Currently, the extension is configured to link to ShoutWiki's privacy policy and terms of use. To personalize it for your wiki, you need to edit MediaWiki:shoutwiki-loginform-tos and MediaWiki:shoutwiki-must-accept-tos.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/NewSignupPage</tvar>|Download]] and move the extracted <tvar name=name>NewSignupPage</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewSignupPage
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    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
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

User rights

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.

Customizing checkbox message

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.

Parameters

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.

See also