Jump to content

Extension:MassMessageEmail: Difference between revisions

From mediawiki.org
Content deleted Content added
new extension
 
No edit summary
Tags: Visual edit Mobile edit Mobile web edit
Line 1: Line 1:
<languages />The '''MassMessageEmail''' extension allows sending email messages to a list of users. It can also email wiki pages to users by transcluding them within the message. It requires the [[Extension:MassMessage|MassMessage]] extension. For usage instructions, follow the instructions on that extension's page. If there is a User page in the MassMessage delivery list, instead of posting to the user's talk page, if the wiki can email that user then it will.
<languages/>
{{TNT|Extension|templatemode = {{{templatemode|}}}
|name = MassMessageEmail
|status = beta
|type1 = special
|hook1 = MassMessage/MassMessageJobBeforeMessageSent
|hook2 =
|username = tosfos
|author = Ike Hecht
|description = Allows users to send email messages to a list of users
|image =
|imagesize =
|version = 0.2.0
|update = 2017-08-06
|mediawiki = 1.25+, possibly earlier
|php = 5.3
|needs-updatephp = No
|composer =
|table1 =
|table2 =
|license = GPL-2.0+
|download = {{TNT|WikimediaDownload|MassMessageEmail}}
|changelog =
|example =
|namespace =
|parameters = <!-- configuration parameters, for use in LocalSettings.php -->
|tags =
|rights = <!-- user rights, for use with $wgGroupPermissions -->
|compatibility =
|phabricator =
}}

The '''MassMessageEmail''' extension allows sending email messages to a list of users. It can also email wiki pages to users by transcluding them within the message. It requires the [[Extension:MassMessage|MassMessage]] extension. For usage instructions, follow the instructions on that extension's page. If there is a User page in the MassMessage delivery list, instead of posting to the user's talk page, if the wiki can email that user then it will.


==Installation==
==Installation==

Revision as of 00:57, 19 March 2018

The MassMessageEmail extension allows sending email messages to a list of users. It can also email wiki pages to users by transcluding them within the message. It requires the MassMessage extension. For usage instructions, follow the instructions on that extension's page. If there is a User page in the MassMessage delivery list, instead of posting to the user's talk page, if the wiki can email that user then it will.

Installation

  • Download and place the file(s) in a directory called MassMessageEmail in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MassMessageEmail' );
    
  • Install the hook, as below.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Hook installation

In order for this extension to work, you must modify the source code of your MassMessage extension as follows.

In the file extensions/MassMessage/includes/job/MassMessageJob.php, find these lines (around line number 180):

		// If the page is using a different discussion system, handle it specially
		if ( class_exists( 'LqtDispatch' ) && LqtDispatch::isLqtPage( $title ) ) {

... and change to:

		// If the page is using a different discussion system, handle it specially
		if ( !Hooks::run( 'MassMessageJobBeforeMessageSent', array( $this ) ) ) {
			return true;
		} elseif ( class_exists( 'LqtDispatch' ) && LqtDispatch::isLqtPage( $title ) ) {

See also