https://bugzilla.wikimedia.org/show_bug.cgi?id=27831

           Summary: Allow Custom Parameters for Subject and Message
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: NewUserNotif
        AssignedTo: jack.p...@psitex.com
        ReportedBy: jack.p...@psitex.com


Created attachment 8234
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8234
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:    nore...@local.psitex.com
To:    jack.p...@psitex.com
Subject:    [JDPLocal] New user notification for User:Jpond

Hello jack.p...@psitex.com,

A new user account, Jpond, has been created on JDPLocal at 00:18, 3 March 2011
for Jpond<jack.p...@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.p...@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!

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to