Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44505

Make subject line of forum notifications a configurable language string

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide

      Prerequisites:

      • Needs a course, and a forum in that course to which users are subscribed (e.g., the News forum).
      • Needs access to the notification e-mails sent from this forum (e.g., by diverting them to an administrator's address).

      Test script:

      • Post a message in the forum.
      • Wait for notification e-mails to be produced (e.g., check "Mail now" then run cron.php).
      • Verify: In the notification e-mails, the subject line is of the form
        "Courseshortname: Subject of post"
      • Change the language string "postmailsubject" in component "forum" to:

      {$a->courseshortname} {$a->forumname} {$a->subject}

      • Clear all caches.
      • Go back to the forum and post a message in the forum.
      • Wait for notification e-mails to be produced.
      • Verify: In the notification e-mails, the subject line is of the form
        "Courseshortname Name-of-forum Subject-of-post"
      Show
      Prerequisites: Needs a course, and a forum in that course to which users are subscribed (e.g., the News forum). Needs access to the notification e-mails sent from this forum (e.g., by diverting them to an administrator's address). Test script: Post a message in the forum. Wait for notification e-mails to be produced (e.g., check "Mail now" then run cron.php). Verify: In the notification e-mails, the subject line is of the form "Courseshortname: Subject of post" Change the language string "postmailsubject" in component "forum" to: {$a->courseshortname} {$a->forumname} {$a->subject} Clear all caches. Go back to the forum and post a message in the forum. Wait for notification e-mails to be produced. Verify: In the notification e-mails, the subject line is of the form "Courseshortname Name-of-forum Subject-of-post"
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:

      Description

      Users can be very picky as to the format of the subject line of the notification e-mails generated by mod/forum. (Indeed, here we had a lengthy discussion about that, and changed the format by hacking the core at that point.)

      I propose to make the subject line of the notification e-mails a configurable language string. This string will depend on parameters (course short name, post subject, forum name; others can potentially be added). Moodle admins could then adapt this easily to their local requirements.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14