From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear app error.png

Release status: unstable

Implementation Ajax
Description Allows users to log in through an AJAX pop-up box
Author(s) Inez Korczyński
Jack Phoenix
Latest version 2.0.0 (2009-09-12)
MediaWiki 1.14+
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn


Hooks used


Translate the AjaxLogin extension if possible

Check usage and version matrix; code metrics

AjaxLogin extension allows users to log in through an AJAX pop-up box. Instead of being taken to Special:UserLogin when they click "Log in / Register", an AJAX pop-up box will be presented to them.

Installation[edit | edit source]

AjaxLogin requires that MediaWiki API is enabled on your site.
  1. Download the files from SVN and place them in $IP/extensions/AjaxLogin/. Version for MediaWiki 1.17 doesn't work with 1.17 instead it's recommended to download the trunk version. --John Ericson 20:18, 13 September 2011 (UTC)
  2. Add
    into your wiki's LocalSettings.php
  3. Installation can now be verified through your wiki's Special:Version.

If you want users to be able to log in on edit view (?action=edit) without losing their changes, you will need to hack MediaWiki core. See README for more info about this.

Parameters[edit | edit source]

The $wgEnableAjaxLogin controls whether AjaxLogin is enabled for the current skin or not. By default, AjaxLogin is enabled for Monobook and Vector skins. The default looks like this:

// Array of skins for which AjaxLogin is enabled.
// Key is: 'skinname' => (true or false)
$wgEnableAjaxLogin = array(
	'monobook' => true,
	'vector' => true