Extension:NewUserMessage

Usually after a new user registers on a MediaWiki, the message in MediaWiki:Welcomecreation is displayed. This extensions allows a message in a specified template to be added into the new users talk page instead.

In case LiquidThreads is installed, this extension will create a new thread on the user talk page. See In-wiki configuration for details.

Installation

 * 1) Download the files from Git or download a snapshot. Choose the version that matches your version of MediaWiki.
 * 2) Create a directory   in your   directory.
 * 3) Extract the files to this   directory.
 * 4) Add   to the bottom of LocalSettings.php.
 * 5) Installation can now be verified through Special:Version of your wiki.

Global variables
There are some global variables which affect the operation of the extension. These should be set in your LocalSettings file after the require_once of the NewUserMessage.php script.

In-wiki configuration
Other settings of the extension can be made in the MediaWiki: namespace. Note that these items are articles, to edit them go to the article in your browser and edit the text accordingly.

Example NewUserMessage page
A very simple example of the page you should create as Template:Welcome:

Hello
Welcome to our Wiki

Possible template parameters

 * 1: User name
 * 2: Real name (can be empty)

Subject
A very simple example of the page you should create as Template:Welcome-subject:

Hello

This message will be used as the thread subject - preprocessed and substituted. If this page is empty, this extension will not do anything when LiquidThreads is installed.


 * Template parameter
 * 1: User name (user real name if used at registration)

Body
A very simple example of the page you should create as Template:Welcome-body:

Welcome to our Wiki,

This message will be used as the thread body. It will be substituted if MediaWiki:Newusermessage-substitute‎ has contents. If this page is empty, this extension will not do anything when LiquidThreads is installed.


 * Template parameters
 * 1: User name
 * 2: User real name

Hooks
This extension adds one new hook:
 * CreateNewUserMessage