Page MenuHomePhabricator

Allow Custom Parameters for Subject and Message
Closed, ResolvedPublic

Description

Patch for extension with example hooks

In order to customize the parameters which could be passed to the email notification message, developers would have to hack the original code.

This solution would allow developers to add or modify parameters using a hook extension. It comes complete with an example.

An example of this is the case where the notification is used by the administrator to facilitate the approval and addition of rights to a user.

Example of a customized, administrator facilitating message with extended parameters that has a link to go and approve the user as well as another link that generates a message to the requester automatically (note, to use this you would also have to modify MediaWiki:Newusernotifbody and MediaWiki:Newusernotifsubj)


From: noreply@local.psitex.com
To: jack.pond@psitex.com
Subject: [JDPLocal] New user notification for User:Jpond

Hello jack.pond@psitex.com,

A new user account, Jpond, has been created on JDPLocal at 00:18, 3 March 2011 for Jpond<jack.pond@psitex.com> from IP address 127.0.0.1.

If this is a desired user, you should approve at: http://local.psitex.com/JDPLocal/index.php/Special:UserRights/Jpond.

Then notify mailto:Jpond<jack.pond@psitex.com>&subject=Account%20Approved%20for%20JDPLocal%20Access&body=A%20new%20user%20account,%20Jpond,%20has%20been%20approved%20on%20JDPLocal%20at%20your%20request.%0A%0AYou%20now%20have%20approved%20rights%20at%20http%3A%2F%2Flocal.psitex.com/JDPLocal%20for%20this%20wiki.%0A%0AYour%20Friendly%20Sysop

Your Friendly Sysop!


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz27831

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:31 PM
bzimport set Reference to bz27831.