Extension:SemanticSignup
|
SemanticSignup Release status: beta |
|||
|---|---|---|---|
| Implementation | Special page, Tag | ||
| Description | This extension tweaks user registration process in order to make users populate their user pages with semantic data at registration time. | ||
| Author(s) | Diamat mnkutster@gmail.com, Jeroen De Dauw | ||
| Last version | 0.3 (2011-08-15) | ||
| MediaWiki | 1.16.* or greater | ||
| PHP | 5.2 or above | ||
| License | GNU GPLv3+ | ||
| Download | current version - all versions readme release notes |
||
|
|||
|
|||
| Check usage and version matrix | |||
Contents |
Description [edit]
This extension tweaks user registration process in order to make users populate their user pages with semantic data at registration time. Whenever the user registration form is requested the user is redirected to the Semantic Signup special page where he has to enter the usual account data and some additional information into a semantic form. When the form is submitted, the usual account information is used to register the new user account and a new User:<Username> page is populated with the additional data.
Requirements [edit]
SemanticSignup requires:
- MediaWiki 1.16 or above
- Semantic MediaWiki 1.5 or above. 1.6 or above recommended.
- Semantic Forms 1.9 or above. 2.2 or above recommended.
- PHP 5.2 or above
Download [edit]
You can find the current version of SemanticSignup on the Google Code download page, as well as a list of legacy downloads.
You can also get the code directly from SVN. Tags can be obtained via
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SemanticSignup/REL_version
Where 'version' is the version number of the tag, such as 0_1 (see the available tags). The latest code can be obtained from trunk:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticSignup/
Installation [edit]
Insert the following lines into your LocalSettings.php after the inclusion of Semantic Forms:
# Semantic Signup require_once( 'extensions/SemanticSignup/SemanticSignup.php' );
Getting started [edit]
Create a semantic form for user pages (see the SemanticForms manual for details). Use the {{#signupfields:}} function to insert the user account input fields (e. g. username password and all that stuff) into this form - this is required for the form to be suitable for account registration.
You will also need to set the form and bot name settings, as described in the configuration section below. Not doing this will result in errors.
Configuration [edit]
Configuration of SemanticSignup is done by assigning to $egSemanticSignupSettings in your LocalSettings.php file. These statements need to be placed AFTER the inclusion of SemanticSignup. The options are listed below and their default is set in the SemanticSignup settings file. You should NOT modify the settings file, but can have a look at it to get an idea of how to use the settings, in case the below descriptions do not suffice.
Require name [edit]
Require entering a real name during the registration process?
Default:
$egSemanticSignupSettings['requireName'] = false; // true or false
Form name [edit]
The name of the form you want to use for signup.
Default:
$egSemanticSignupSettings['formName'] = '';
Example:
$egSemanticSignupSettings['formName'] = 'Signup_form';
Bot name [edit]
The name of the user to create the user page with. This user needs sufficient priviliges to create new pages in the User: namespace.
Default:
$egSemanticSignupSettings['botName'] = '';
Example:
$egSemanticSignupSettings['botName'] = 'Admin';
Internationalization [edit]
SemanticSignup is fully internationalized. Translation of SemanticSignup messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.