General help

Formatting Messages

 
 
Picture of Doug Moody
Formatting Messages
Group Particularly helpful Moodlers

2.5.1

I just used the PEOPLE block to choose a mass message to students. When I did, I was able to use the TinyMCE editor, and it allowed me to format the text. I chose the Paragraph style and turned the text red.

However, when students read the message, it has no formatting.

Is there a method to turn on formatting so that the messages retain the original styles they were sent in?

 
Average of ratings: -
Picture of AL Rachels
Re: Formatting Messages
Group DevelopersGroup Particularly helpful MoodlersGroup Testers

Hi Doug,

I don't know about keeping text formatted when using the PEOPLE block, but I know that you can when using the Dialogue plugin. Depending on where and how you set it up in Moodle, you can use it for mass messages to everyone, a group, or a single user.

If you want to play with/try it out, I have it setup on the front page and in the Audio Video Experiments class of the development site I gave you access to in August. In fact, with the PoodLL repository and filter, you can do mass messages with audio and/or video content. cool

AL

 
Average of ratings: -
Picture of Torsten Händler
Re: Formatting Messages
Group Particularly helpful Moodlers

There is no Setting in moodle for the formatting style.

The formatted style is only for email.

We had the same problem and change the code so that it works.

 

 
Average of ratings: -
Picture of Torsten Händler
Re: Formatting Messages
Group Particularly helpful Moodlers

There is no Setting in moodle for the formatting style.

The formatted style is only for email.

We had the same problem and change the code so that it works.

 

 
Average of ratings: -
Picture of Doug Moody
Re: Formatting Messages
Group Particularly helpful Moodlers

Torsten,

I thought that might be the case.

What code did you change and how?

 
Average of ratings: -
Picture of Torsten Händler
Re: Formatting Messages
Group Particularly helpful Moodlers

I change the code in moodle/message/lib.php 

function message_format_message  

 

if ($message->fullmessageformat == FORMAT_HTML) {
//dont escape html tags by calling s() if html format or they will display in the UI
//$messagetext = html_to_text(format_text($messagetext, $message->fullmessageformat, $options));
$messagetext = format_text($messagetext, $message->fullmessageformat, $options);
} else {
$messagetext = format_text(s($messagetext), $message->fullmessageformat, $options);
}

 

html_to_text  change to format_text

 
Average of ratings:Useful (1)
Picture of Doug Moody
Re: Formatting Messages
Group Particularly helpful Moodlers

Excellent. Thank you!

 
Average of ratings: -