Add 3 message Blocks at the course page

Add 3 message Blocks at the course page

by Helaine Ferreira -
Number of replies: 1

Hi, guys.

My client wants to add 3 message blocks at the course page. Each blocks will allow the student to talk 1 - teacher, 2 - Mentor & 3 - Help.

Moodle doesn't allows me to add 3 messages blocks and also doens't allows me to change the name "Message" of the block.

How can I solve this?

Thank you.

Average of ratings: -
In reply to Helaine Ferreira

Re: Add 3 message Blocks at the course page

by Purnendu Dash -
Picture of Plugin developers

For adding multiple instance of message block in course page you can edit <your moodle>/blocks/messages/block_messages.php and change / add the below code to true.


function instance_allow_multiple() {
        return true;
}

This will allow you to add multiple instance of message block in one page and to change the name of the block you need to change the title in the below code

function init() {
       $this->title = get_string('pluginname', 'block_messages');
 }

Regards,
Purnendu