Extension:AjaxLogin
From MediaWiki.org
|
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 |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes 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.
- 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)
- Add
into your wiki's LocalSettings.phprequire_once("$IP/extensions/AjaxLogin/AjaxLogin.php");
- 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 );
