Extension:NewUserActions
From Linux Web Expert
The extension is still a work in progress.
NewUserActions Release status: experimental |
|
---|---|
Implementation | User activity , Hook |
Description | Run actions when a user is newly created. |
Author(s) | Sébastien Santoro (Derecksontalk) |
MediaWiki | 1.23+ |
PHP | 5.4+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the NewUserActions extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The NewUserActions extension executes configurable actions when a new wiki account is created. It has been inspired by Extension:NewUserMessage .
Actions available
Create user page
This action allow to create a user page, following a specific template. This can for example be used to offer a generic starting template for user pages.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/NewUserActions</tvar>|Download]] and move the extracted <tvar name=name>
NewUserActions
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserActions - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'NewUserActions' );
- Configure as required
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Configuration
Global variables
There are some global variables which affect the operation of the extension. These should be set in your LocalSettings.php file.
Variable | Default value | Meaning |
---|---|---|
$wgNewUserActionsSuppressRC
|
false
|
Specify whether or not the new actions should show up in recent changes. If set to true , those edits won't be displayed even if "show bot edits" is selected on RecentChanges or Watchlist.
|
$wgNewUserActionsMinorEdit
|
true
|
Should the actions edit will be marked as minor. |
$wgNewUserActionsOnAutoCreate
|
false
|
Should auto creation (CentralAuth) trigger the actions? |
$wgNewUserActionsCreateUserPage
|
false
|
If true, create a new user page. |
In-wiki configuration
One of the goal of the extension is to improve flexibility. As such, some parameters are configurable on wiki.
Other settings of the extension can be made in the MediaWiki: namespace.
Page title | Default value | Meaning |
---|---|---|
MediaWiki:Newuseractions-userpage-template
|
Template:New user page
|
Specify a template to use as default new user page. |
MediaWiki:Newuseractions-userpage-summary
|
Initial content from [[Template:New user page]].
|
Edit summary for the recent changes entry of a new users message. Always in content language. |
MediaWiki:Newuseractions-editor
|
New user actions
|
Set the username of the user that makes the edits. If this user does not exist, "MediaWiki default" will show up as editing user. The user set here is marked as reserved and won't be able to login. |
Categories:
- Pages with script errors
- Pages with broken file links
- Experimental extensions
- Extensions without an image
- User activity extensions
- Hook extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- AddNewAccount extensions
- LocalUserCreated extensions
- UserGetReservedNames extensions
- All extensions