## General help

### Formatting Messages

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Formatting Messages

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: -
Re: Formatting Messages

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.

AL

Average of ratings: -
Re: Formatting Messages

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: -
Re: Formatting Messages

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: -
Re: Formatting Messages

Torsten,

I thought that might be the case.

What code did you change and how?

Average of ratings: -
Re: Formatting Messages

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)
Re: Formatting Messages

Excellent. Thank you!

Average of ratings: -