Extension:MassMessage

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎italiano • ‎日本語 • ‎polski • ‎português do Brasil • ‎русский • ‎中文
MediaWiki extensions manual
Crystal Clear action run.png
MassMessage

Release status: stable

Screenshot of MassMessage MediaWiki extension.png
Implementation Special page, API
Description Allows a user to easily send a message to a list of users.
Author(s) Kunal Mehta (Legoktmtalk)
Latest version 0.0.3 (2014-02-25)
MediaWiki 1.23+, use 0.0.2 for <1.23
Database changes No
License GPL v2+
Download
Parameters
  • $wgNamespacesToPostIn
  • $wgNamespacesToConvert
  • $wgMassMessageAccountUsername
Added rights
  • massmessage
Hooks used
ParserFirstCallInit

SpecialStatsAddExtra
RenameUserPreRename
UserGetReservedNames
UnitTestsList
APIQuerySiteInfoStatisticsInfo
BeforeEchoEventInsert

Translate the MassMessage extension if it is available at translatewiki.net

Check usage and version matrix; code metrics
Vagrant role
MassMessage
Bugs: list open list all report

The MassMessage extension allows a user to send a message to a list of users via special page Special:MassMessage. For help on how to use the extension, see Help:Extension:MassMessage. The API documentation can be found at Extension:MassMessage/API.

Installation[edit | edit source]

  • Download and extract the file(s) in a directory called MassMessage in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/MassMessage/MassMessage.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit | edit source]

Namespaces to post in

When posting messages, only post them in the specified namespaces. All talk namespaces are already whitelisted.

$wgNamespacesToPostIn = array( NS_PROJECT );
Namespaces to convert

If you want users to be able to provide a link to a User: page, but have the bot post on their User talk: page you can define that here.

$wgNamespacesToConvert = array( NS_USER => NS_USER_TALK );
Username

What username the bot should post with. By default, this is "MediaWiki message delivery". If the user already exists, the extension will take over the account. It will be impossible for users to rename the account. You can override the default account name by specifying (for example):

$wgMassMessageAccountUsername = 'MessengerBot';
Enable global messaging

Whether to enable sending messages from one wiki to another. If running on a wikifarm setup like Wikimedia, you can disable this on all wikis except one to keep the logs in one place.

$wgAllowGlobalMessaging = true;

User rights[edit | edit source]

  • massmessage - Lets a user send out messages. By default assigned to the "sysop" user group.