Course Contacts Block

Blocks ::: block_course_contacts
Maintained by Picture of Mark WardMark Ward, Picture of Richard OelmannRichard Oelmann
The Course Contacts block displays a list of users on your course, various methods for communicating with them, and their current activity status.
Latest release:
1034 sites
44 fans

The Course Contacts block displays a list of users on your course and various
methods for communicating with them.

The block is highly customisable and allows you to choose specific roles which
you wish to display users from. By default the block will show teachers on the
course but this can be changed however you wish.

You can also configure which communication types you wish to show, the block
can provide quick links to Email, Message or Telephone each user.

The block also shows whether the user has been active in the last five minutes.

Potential privacy issues

This block can publish contact details for users; be careful when using it on a course with guest access enabled.


Screenshot #0


Picture of Mark Ward
Mark Ward (Lead maintainer): Co-author
Picture of Richard Oelmann
Richard Oelmann: Co-author
Picture of Mat Cannings
Mat Cannings: Tester
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Vladimir S
    Mon, May 7, 2018, 10:10 PM
    Hello, it seems that it doesn't work very well with "Group mode: Separate groups" and "Force group: Yes" (course settings). All users/students see each other, where they should see people only from their own group. Can this be fixed?
  • Picture of Richard Oelmann
    Tue, May 8, 2018, 1:54 AM
    Well, It's a course contacts block rather than a group contacts block, so I would think that may need quite a lot of attention and is not something I have time to do at the moment. If someone would like to work on it and send me a pull request I'd be happy to consider it.
  • Picture of alain kerv
    Wed, Jul 4, 2018, 4:05 PM
    I use your plugin CourseConstacts and it's a really good tool. But I have a question about it : I created a new role (duplicate from teacher role), but it's not active by default and I must activate it for every new course on "Roles to show" part.
    Where can I change this property for all courses on my moodle site ?
  • Picture of Richard Oelmann
    Wed, Jul 4, 2018, 5:53 PM
    Hi Alain, If you have access to your database, and if the settings are the same for all of your courses then one way I have achieved something similar to this in the past is to use the database directly. The plugin creates a string that represents the settings - its in mdl_block_instances as the configdata. You could make the change on one know context, then take that config string and apply it to all the other contexts (either manually or using an UPDATE sql - but PLEASE backup, test, etc before doing that!)
  • Picture of alain kerv
    Mon, Jul 16, 2018, 4:32 PM
    Hello Richard,
    about role activation with an update sql, it's ok, I understand (but it's not really easy !!). another problem : Email option is activate on blocks, but it's not a "mailto" and we need to config email options for any user in the lists of the course_contacts. Is it possible to automate this feature or is it better to use the notification option (and then, how to deactivate email option for all the blocks course_contacts) ?
  • Picture of alain kerv
    Mon, Jul 16, 2018, 5:19 PM
    I have a question about firstname/lastname on block course_contacts : Sometimes, we have this kind of name (ex : Delphine ARVEN-MOUSLI). With limitations of 18 characters, this name is not correctly shown, But if I exchange the dash (-) with an underscore (_), it's ok !! How I can adjust this problem ?
    Thanks !
  • Picture of LMS Factory
    Tue, Nov 27, 2018, 10:20 PM

    i'm using your block in several courses, its very usefull, student really apreciate it. For the first time I have created separated groups in a course, But even if groups are separated i can see users profiles who are not in my groups. Is there any solutions to hide users who dont belongs to my groups (i'm using Moodle 3.5.2)
  • Picture of Richard Oelmann
    Wed, Nov 28, 2018, 2:45 PM
    The block is designed as a course contacts block and does not currently support groups. As suggested previously, if someone would like to provide a pull request for group support, I'd be happy to review and implement it, but it is not on my road map to develop at this time.
  • Picture of LMS Factory
    Wed, Nov 28, 2018, 3:18 PM
    Thanks for your answer? I'll pull a request, and understand that it wont be available short term.
  • Picture of Vladimir S
    Tue, Feb 12, 2019, 4:51 PM
    Hi Richard, I've made a pull request for group support, when you have time, please take a look.
  • Picture of Lastern Nom
    Wed, Mar 27, 2019, 10:03 PM

    I have a question, when I click the messaging button in your "course contact block" it seems to go to a the "message" page and open the side panel there.
    Is it possible to open the messaging side panel on the page itself without going to the "message page" ?
  • Picture of Qualis Products
    Thu, Apr 30, 2020, 4:18 PM
    nice post
  • Picture of Carlos Vazquez
    Mon, May 25, 2020, 6:32 PM
    You cannot install the version for 3.5 by git because that branch is missing. I have installed it on a 3.5.12+ and with the debug activated it comes out: Notice: Undefined property: stdClass::$description in /var/www/moodle/blocks/course_contacts/block_course_contacts.php on line 268
  • Picture of Richard Oelmann
    Wed, May 27, 2020, 3:06 PM
    So what version have you installed?
  • Picture of Jayden Tyronian
    Thu, Dec 31, 2020, 5:35 AM
    I had been using this on our 3.8 site. I’ve upgraded us now to 3.10.

    The block appears but no longer shows the teaching staff. It will show students perfectly fine.

    I am seeing if it’s something I can manually and easily tweak, but wondering if a 3.10 update to this one was coming and when? I haven’t seen many like this and we heavily utilise the block.
1 2 3 4
Please login to post comments