Extension:CustomUserCreateForm

The CustomUserCreateForm extension replaces the standard user creation form with a custom form.

Usage
Use to change the layout of the user create form or add additional fields to the form. To store data for custom fields create an event handler for the AddNewAccount hook and in the event handler get the user ID for the new record in the user table from the $user parameter. The global $wgRequest will contain the values of submitted custom fields which can then be stored in the user_properties table against the user ID.

Installation

 * Create a folder named customUserCreateForm in your extension folder.
 * Create a new file named customUserCreateForm.php in the above folder and paste the code below into the file.
 * Create a folder named templates inside the customUserCreateForm folder you created above
 * Make a copy of includes/templates/Userlogin.php and includes/templates/Usercreate.php in extensions/customUserCreateForm/templates/
 * Rename the copy of Userlogin.php to customUserlogin.php
 * Within the new customUserlogin.php</tt> file rename UsercreateTemplate</tt> class to customUsercreateTemplate</tt>.
 * Within the new customUserlogin.php</tt> file rename UserloginTemplate</tt> class to customUserloginTemplate</tt>.
 * Edit customUsercreateTemplate</tt> class as you require.
 * Add the line below to the bottom of your LocalSettings.php</tt> file.
 * Decide if you do not wish to allow non-Sysops to create user accounts via E-mail and delete the highlighted lines of code if so.