From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status stable

ImplementationTemplate:Extension#type MyWiki
DescriptionTemplate:Extension#description Enhances MediaWiki's default signup page
Author(s)Template:Extension#username Jack Phoenixtalk
Latest versionTemplate:Extension#version 0.7 (November 20, 2015; 12 months ago (2015-11-20))
MediaWikiTemplate:Extension#mediawiki 1.28+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
ExampleTemplate:Extension#example Any ShoutWiki site
  • $wgRegisterTrack
  • $wgAutoAddFriendOnInvite
  • $wgForceNewSignupPageInitialization
Added rightsTemplate:Extension#rights


Hooks usedTemplate:Extension#hook

Translate the NewSignupPage extension if it is available at translatewiki.net

Check usage and version matrix.


Open tasks · Report a bug

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.

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.


  • Download and place the file(s) in a directory called NewSignupPage in your extensions/ folder.
  • Add the following code at the bottom of your 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
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing extensions using wfLoadExtension(), since MediaWiki 1.25. If you need to install this extension in earlier versions, instead of wfLoadExtension( 'NewSignupPage' );, you need to use:

require_once "$IP/extensions/NewSignupPage/NewSignupPage.php";

User rights[edit]

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[edit]

  • $wgUserStatsPointValues['referral_complete'] — set this to something to give out points for referring a new user successfully to the site.


  • $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.

Version history[edit]

Version VCS revision Release date Comments
0.7 gerrit:254686 22 November 2015 Extension registration support
0.6 gerrit:163466 28 September 2014 Version 0.5[sic] from ShoutWiki: a JavaScript-based username existence checker & password validity checker; PHP i18n file removed as unnecessary in favor of the JSON i18n files, hence MW 1.23 or newer is required
0.5.0 gerrit:122742 1 April 2014 Migrated to JSON i18n
0.4.1 r98081 25 September 2011 Initial public release, $wgForceNewSignupPageInitialization variable added, minor tweaks to the main PHP file and the SQL file
0.4 r945 (ShoutWiki SVN) 29 May 2009 Renamed to its current name (from the original ToSHook name), most functionality of Wikia's LoginReg extension merged
0.3 r418, r430 (ShoutWiki SVN) 15 January 2009
17 January 2009
right-bypasstoscheck message added; default for 'shoutwiki-loginform-tos' tweaked to include the "I am 13 years or older" part
0.2 r245 (ShoutWiki SVN) 3 December 2008 bypasstoscheck user right, i18n file, removed backwards compatibility with ancient MediaWikis
0.1 r243 (ShoutWiki SVN) 2 December 2008 Initial version; a simple hook extension which forces the users to check "I accept the Terms of Service" box on the signup page; works on legacy (1.6) MediaWikis

Social toolsSocial tools
SocialProfileExtension:SocialProfile OverviewExtension:SocialProfileRoadmapExtension:SocialProfile/RoadmapDeveloper infoExtension:SocialProfile/For developersScreenshotsExtension:SocialProfile/ScreenshotsHistorySocial tools
Other social extensions Automatic Board WelcomeExtension:Automatic Board WelcomeBlogPageExtension:BlogPageChallengeExtension:ChallengeFanBoxesExtension:FanBoxesMiniInviteExtension:MiniInviteNewUsersListExtension:NewUsersListPictureGameExtension:PictureGamePollNYExtension:PollNYQuizGameExtension:QuizGameRandomFeaturedUserExtension:RandomFeaturedUserRandomGameUnitExtension:RandomGameUnitRandomUsersWithAvatarsExtension:RandomUsersWithAvatarsSiteMetricsExtension:SiteMetricsSiteScoutExtension:SiteScoutSportsTeamsExtension:SportsTeamsUserStatusExtension:UserStatusUserWelcomeExtension:UserWelcome
Other related extensions
(which do not depend on SocialProfile)

See also[edit]