Jump to content

Extension:SignupAPI: Difference between revisions

From mediawiki.org
Content deleted Content added
No edit summary
 
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{archived extension|3104209|reason=broken extension and unavailable files, the only ones that are in the github repository is for mediawiki 1.19 and does not support recent versions of mediawiki}}
{{Extension
|name = SignupAPI
|status = experimental
|type1 = user activity
|type2 = ajax
|type3 = special
|type4 = api
|type5 = hook
|type6 = database
|hook1 = LoadExtensionSchemaUpdates
|hook2 = SignupForm
|username = Akshay.agarwal
|author = <!-- add only if different from user name -->
|description = It creates a special page that cleans up SpecialUserLogin from signup related stuff, adds an API for signup, adds sourcetracking for account creation & AJAX-ifies the signup form
|version = 1.0
|mediawiki = 1.19
|php = 5.0
|needs-updatephp = yes
|license = GPL
|download ={{WikimediaDownload|SignupAPI}}
|parameters = $wgSignupAPIUseAjax, $wgSignupAPISourceCreation
}}

==What can this extension do?==
It creates a special page that cleans up SpecialUserLogin from signup related stuff, adds an API for signup, adds sourcetracking for account creation & AJAX-ifies the signup form.


==Installation==
To install this extension, add the following to [[Manual:LocalSettings.php|LocalSettings.php]]:

{{$IP}}
<source lang="php">
require_once("$IP/extensions/SignupAPI/SignupAPI.php");
$wgUseAjax = true;
$wgSignupAPIUseAjax = true;
$wgSignupAPISourceCreation = true;
$wgUseCombinedLoginLink = false;
</source>

===Configuration parameters===

$wgUseAjax
This paramater is required to use AJAX & is set to true by default in MediaWiki 1.17 & above

$wgSignupAPIUseAjax
If set to true, the extension will AJAX-ify the signup form & facilitate the validation of username, password, retype & email dynamically before submitting the form

$wgSignupAPISourceCreation
If set to true, the extension will add the source tracking paramaters to the 'Create account' link & on successful signup will store them inside the sourcetracking table

$wgUseCombinedLoginLink
This parameter is used to display separate links for Login & Create account instead of the combined 'Login/Create account' link.

==See also==
<!-- add other related extensions here, if applicable. If not, just delete this comment and the see also-header. -->

Latest revision as of 23:58, 10 May 2019