Extension:NewSignupPage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
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.4.1
MediaWiki 1.16+
License GNU General Public License 2.0 or later
Download
Changelog
Example Any ShoutWiki site
Parameters

$wgRegisterTrack
$wgAutoAddFriendOnInvite
$wgForceNewSignupPageInitialization

Added rights

bypasstoscheck

Hooks used
AbortNewAccount

UserCreateForm
AddNewAccount

Translate the NewSignupPage extension if possible

Check usage and version matrix; code metrics

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 out to give 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]

  1. Dump the files into $IP/extensions/NewSignupPage
  2. Add require_once("$IP/extensions/NewSignupPage/NewSignupPage.php"); into the wiki's LocalSettings.php
  3. 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
  4. Installation can now be verified through Special:Version

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.

Interface messages[edit | edit source]

Message Default value Description
login-reg-recruited recruited <a href="$1">$2</a> Displayed on Special:UserActivity and on the output of <siteactivity> tag on social wikis; not used on normal wikis
shoutwiki-loginform-tos I am over 13 years of age and I have read, understood and agree to be bound by the <a href="http://www.shoutwiki.com/wiki/Terms_of_use">Terms of Service</a> and <a href="http://www.shoutwiki.com/wiki/Privacy_policy">Privacy Policy</a> The text for the new checkbox which is displayed in Special:UserLogin/signup, right below the "Remember my login on this computer" checkbox
shoutwiki-must-accept-tos You must accept the site's Terms of Service in order to be able to create an account! Displayed to the user in Special:UserLogin/signup in a fancy red <div> if s/he doesn't check the "I accept the Terms of Service" checkbox
right-bypasstoscheck Create new accounts without accepting the site's Terms of Service Displayed in Special:ListGroupRights

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 SVN revision Release date Comments
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 infoScreenshotsHistoryUserStatus (GSoC 2011 project)
Other social extensions Automatic Board WelcomeBlogPageFanBoxesNewUsersListPictureGamePollNYQuizGameRandomFeaturedUserRandomGameUnitRandomUsersWithAvatarsSiteMetricsSportsTeamsUserStatusUserWelcome
Semanticness Semantic Social Profile
Other related extensions
(which do not depend on SocialProfile)
AnswersCommentsLinkFilterMediaWikiChatNewSignupPageVideoVoteNYWikiForumWikiTextLoggedInOut