Extension:AjaxLogin

From MediaWiki.org

Jump to: navigation, search

               

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
AjaxLogin

Release status: stable

Implementation  Ajax
Description Allows users to log in through an AJAX pop-up box
Author(s)  Inez KorczyƄski
Jack Phoenix
Last Version  2.0.0 (September 12, 2009)
MediaWiki  1.14+
License GNU General Public License 2.0 or later
Download SVN (browse)
README
Example  Wikimedia Usability Initiative Sandbox

check usage (experimental)

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.

[edit] Installation

Note: AjaxLogin requires that MediaWiki API is enabled on your site.
  1. Download the files from SVN and place them in $IP/extensions/AjaxLogin/
  2. Add
    require_once("$IP/extensions/AjaxLogin/AjaxLogin.php");
    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.

[edit] Parameters

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
);