Extension:Minimum Name Length

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Minimum Name Length

Release status: stable

Implementation User identity
Description Enforce a minimum username length during account creation
Author(s) Rob Church (Robchurchtalk)
Last version 1.1 (2008-01-11)
MediaWiki 1.16+
License BSD
Download
README
see Subversion
Hooks used
AbortNewAccount
Check usage and version matrix

The Minimum Name Length extension allows wiki administrators to set a minimum length for usernames which will be enforced during account creation.

Contents

Requirements [edit]

The Minimum Name Length extension requires MediaWiki 1.11.0 or above.

Installation [edit]

  1. Check out all extension files and place them in a MinimumNameLength subdirectory within your MediaWiki extensions directory
  2. Add the line require_once( "{$IP}/extensions/MinimumNameLength/MinimumNameLength.php" ); to your LocalSettings.php file

Installation can be verified through the Special:Version page on the wiki.

Configuration [edit]

To configure the minimum name length, set $wgMinimumNameLength in LocalSettings.php, after the call to include the extension, e.g.

require_once( "{$IP}/extensions/MinimumNameLength/MinimumNameLength.php" );
$wgMinimumNameLength = 10;

Change log [edit]

A complete log of changes to the extension code (including internationalisation updates from third parties) is available from the Subversion log, however, summarised information on changes between point releases is given below:

Version Release Date Comments
1.1 11/01/2008 now using wfLoadExtensionMessages
1.0 29/03/2007 Initial version