Message My Teacher

Blocks ::: block_messageteacher
Maintained by Mark Johnson
This block allows configuration of roles to be considered "Teachers" of a course. The block will then display a list of these teachers for the current course in the block, with a link to message each one.
Latest release:
1308 sites
353 downloads
53 fans
Current versions available: 6

This block displays a list of all Teachers for the current course page (except for the current user, if they are a teacher).  Each name links to the messaging system allowing the user to quickly message their teacher.

The roles that are considered to be "Teachers" can be configured, allowing control over who is actually displayed in the block.

New in 2.6

  • Support for Moodle 3.9 onwards.

Development of version 2.3 was sponsored by Connecting Waters Charter School (http://www.connectingwaters.org)

 Development of Group support and User Picture support was sponsored by by Proud Photography (http://www.ProudPhotography.com) – Online Photography School.
Will there be a version of this block for Moodle version x.x?

If you'd like to use this block on a later version than the latest release says is supported, try it and see if it works.  There's usually no changes that would affect this block, so it's better to try it and let me know if there's a problem than to ask me if/when there will be an update.  I will do my best to test on new versions and update this page accordingly.

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.

Screenshots

Screenshot #0

Contributors

Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Mark Johnson
    Tue, 6 Mar 2012, 7:16 PM
    Hi Peter,
    I've added this to the Issue Tracker[1], although it's unlikely I'm going to get time to work on it in the near future as our institution handles classes rather differently to yours - we have a separate page altogether for each class, so students are only enrolled on a page with their own teachers.

    If anyone wishes to contribute this feature it would be most welcome!

    [1] https://github.com/marxjohnson/moodle-block_messageteacher/issues/1
  • Peter T
    Sun, 22 Apr 2012, 3:29 PM
    Hello Mark,

    thank you so much for your response. This feature is extremely valuable to us so if you could find the time to do this little hack I'd gladly pay you for it!
  • Daemon Hunt
    Sun, 10 June 2012, 2:14 PM
    Hi Mark,

    Would you have the time to help me? I would appreciate it if you could, and all our teachers would be thankful!

    'Site Admin->plugins->blocks->Message My Teacher' allows me to assign the roles of those who will show up in the block.

    In my case, course administrators wish to be added to the block along with teachers. It seems that any role that I have assigned to a course at the category level does not work. This is problematic for us as we have many courses or 'papers' under each sub/category or 'programme' which makes assigning course admins at a paper level retrospectively to each and every paper very time consuming and error-prone.

    Is it possible for you to come up with a way for me to tweak my MMT code which propogates roles assigned at the category/sub category level instead of ONLY at the paper level?

    I'm not a fluent PHP/MySQL coder, so don't know where to start.

    With Thanks
  • Mark Johnson
    Tue, 12 June 2012, 3:39 PM
    Hi Daemon,
    This would be possible - you'd need to find all of the parent contexts from the path field of the course's context, then iterate up the tree looking for users assigned the selected roles in each context.

    I've created an issue for it on the tracker
    https://github.com/marxjohnson/moodle-block_messageteacher/issues/2
  • Logan Peavey
    Thu, 24 Jan 2013, 3:56 AM
    Hi Mark, for some reason the plugin is only visible when I am in editing mode. It does not show up on the student view at all. I have gone into the block config and changed the setting for it to show on all pages. I have also modified and added the permissions to the student, but still no luck. Any ideas why this might be happening?
  • Andrew Solomon
    Wed, 13 Feb 2013, 7:17 AM
    I've installed it on Moodle 2.3 and I'm having the same problem as Logan
  • Chris Simpson
    Thu, 18 Apr 2013, 11:17 AM
    does site wide messaging have to be enabled? i would like student to be able to message teachers but not each other and i thought this maybe able to complete this? Thanks
  • Jay Salgado
    Mon, 22 Apr 2013, 7:22 AM
    How can I change the title of the block? I use "Tutors" instead of "Teachers" but I don't find the way to change this. I modified the php in the language folder and also introduced $string['blockname'] = 'Message the tutors'; but it is not working. Do you know how to change the title of this particular plug in? Thank you :D
  • Mark Johnson
    Mon, 22 Apr 2013, 4:18 PM
    Chris,
    Your site's Message system will need to be enabled for this block to do anything useful - all it really does is display a link to certain users' Message pages.

    Jay,
    Please refer to this issue on the tracker: https://github.com/marxjohnson/moodle-block_messageteacher/issues/6
  • I like cats
    Thu, 20 June 2013, 7:51 PM
    I'm getting an error trying to upgrade to this latest version:
    block_messageteacher
    Unknown error upgrading block_messageteacher to version 2013031301, can not continue.
    Debug info:
    Error code: upgradeerror
    Stack trace:

    line 249 of /lib/upgradelib.php: upgrade_exception thrown
    line 821 of /lib/upgradelib.php: call to upgrade_block_savepoint()
    line 362 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
    line 1544 of /lib/upgradelib.php: call to upgrade_plugins()
    line 349 of /admin/index.php: call to upgrade_noncore()

    Moodle version is Moodle 2.4 (Build: 20121203)

    I'm going to just remove the block and upgrade to Moodle 2.5 anyway, and when I've got that done and tested I'll try this block again, but I thought I should at least point out the issue. We had been using the previous version of the block, which had no problem.
  • I like cats
    Thu, 20 June 2013, 8:38 PM
    Followup. Upgraded to Moodle 2.5, reinstalled the block, and it went in fine. Perhaps an issue with that particular build of Moodle 2.4 that I was using?
  • Mark Johnson
    Thu, 20 June 2013, 8:43 PM
    Hi Tony,
    Thanks for your report, I have found this and fixed it locally but not yet released the fix. I've added your report to the issue tracker with more infomation: https://github.com/marxjohnson/moodle-block_messageteacher/issues/11
  • Guido Roessling
    Mon, 24 June 2013, 12:41 AM
    Just a small recommendation: adding a " ORDER BY u.firstname ASC, u.lastname" to the query in line 68 of blocks_messageteacher.php makes a longer list far easier to scan (our course has 20+ tutors, so this is relevant). Otherwise - good job!
  • Mark Johnson
    Mon, 24 June 2013, 1:14 AM
    Tony, the newly released version 2.2.2 fixes the upgrade bug.

    Guido, thanks for the suggestion, it's also in the new release!
  • -
    Sat, 10 Aug 2013, 3:54 PM
    Hi,
    How can I quit the default name plugin "MESSAGE MY TEACHER", to none or change? we speak in other language.
    thanks
Please login to post comments