Extension:NewSignupPage

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

Release status: stable

Implementation other (invalid type)
Description Enhances MediaWiki's default signup page
Author(s) Jack Phoenixtalk
Latest version 0.6
MediaWiki 1.25+
License GNU General Public License 2.0 or later
Download

Not supported by translatewiki.net.
Changelog

Example Any ShoutWiki site
Parameters

$wgRegisterTrack
$wgAutoAddFriendOnInvite
$wgForceNewSignupPageInitialization

Added rights

bypasstoscheck

Hooks used
AbortNewAccount

UserCreateForm
AddNewAccount

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

Check usage and version matrix; code metrics

Issues:

Open tasks · Report a bug

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.

Installation[edit | edit source]

  • 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:
require_once "$IP/extensions/NewSignupPage/NewSignupPage.php";
  • 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
  • YesYDone - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

User rights[edit | edit source]

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

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

Parameters[edit | edit source]

  • $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 | edit source]

Version VCS revision Release date Comments
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 tools
SocialProfile OverviewRoadmapDeveloper infoScreenshotsHistoryExtension:SocialProfile/UserStatus (GSoC 2011 project)
Other social extensions Automatic Board WelcomeBlogPageChallengeFanBoxesMiniInviteNewUsersListPictureGamePollNYQuizGameRandomFeaturedUserRandomGameUnitRandomUsersWithAvatarsSiteMetricsSiteScoutSportsTeamsUserStatusUserWelcome
Semanticness Semantic Social Profile
Other related extensions
(which do not depend on SocialProfile)
AnswersCommentsLinkFilterMediaWikiChatNewSignupPageVideoVoteNYWikiForumWikiTextLoggedInOut