Moodle Tech Tip – customising the forum post subject line

Do you ever wish you could change the title of Forum posts from Moodle?

Usually when forum subscribers receive emails from Moodle Forums, the subject line is of the form Course short name + Subject of post.

So it looks like this:

forum1.png

But notice that it doesn’t have the actual course name?

That could be confusing when learners are active in multiple courses eh?

But it’s a little known secret that the subject line can be changed – for example to:

Course short name + Forum name + Subject

Administrators can do this by going to:

 Site administration > Language > Language customisation

and then in the forum.php file changing the string:

 postmailsubject

For example changing this to:

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

Will result in the following:

forum2.png

Pretty cool and very useful eh?

🙂

blank
Follow me

ElearningWorld Admin

Administrator at HRDNZ
Site administrator
blank
Follow me

Latest posts by ElearningWorld Admin (see all)

blank

ElearningWorld Admin

Site administrator

Add a reply or comment...

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: