General plugins (Local): Resource notification

Maintained by Picture of Guillaume AllègreGuillaume Allègre
This Moodle plugin allows a teacher to notify course students by internal messaging when a new resource/activity is created or modified into a course.
323 sites
36 fans
Current versions available: 1

This Moodle plugin allows a teacher to notify course students by messaging when a new resource/activity is created or modified into a course.

The notification is activated by an action performed by the teacher.
This new action is shown in a new entry at the end of the Edit dropdown menu, available for each resource or activity, on a course page.

The notification message contains two links by default, one to the resource, and the other to the course.
The Moodle admin can modify this default setting.
The teacher can change the text to send.                                                                                       

The teacher can control who the message is sent to, by default all the users enrolled into the course and allowed to view the resource.
The notification conforms to resource access restrictions such as course groups.

Moodle 3.0 is required.


  • Unpack or `git clone` under `local/`.
  • Install the plugin into Moodle with either by typing `php admin/cli/upgrade.php` (CLI) or by visiting '/admin/index.php' (web).
  • If you want additional translations (for example french), you may want to upgrade your language pack (doc).

This plugin was developped by Silecs and initially sponsored by Université Paris 1 Panthéon-Sorbonne, France in 2013.
Additional enhancements and migration to Moodle 3.0 were sponsored by Xi’an Jiaotong-Liverpool University (XJTLU), China in 2016, then in 2018 by IFMS Valenciennes (France) for the Boost upgrade.

Portuguese translations are contributed by Dinis Medeiros.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Guillaume Allègre
Guillaume Allègre (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Ejiro Ekpogbe
    Thu, Mar 29, 2018, 7:18 PM
    Hello Benoit,
    I have followed your instructions but still wasn't successful. I am using the Boost theme Fordson, Moodle 3.2.
    Could you please guide me on how to make the resource notification plugin work for our moodle site?

  • Picture of Guillaume Allègre
    Fri, Mar 30, 2018, 4:42 AM
    A new version (3.1.0) is now available, handling both Clean and Boost - and their derivatives.
  • Picture of Guillaume Allègre
    Tue, Jul 10, 2018, 9:26 PM
    A new version (3.1.1) is available for all 3.x Moodle versions, including the latest 3.5.1
    Added a workaround for a moodle bug when redirecting after the recipient clicked on message read.
  • Profile pic
    Fri, Aug 31, 2018, 1:48 AM
    Does anyone know how to fix this error?

    Detectado un error de codificación, debe ser corregido por un programador: Invalid property courseid specified
  • Picture of Arnaud Trouvé
    Tue, Sep 11, 2018, 7:09 PM
    My answer on github :
    Moreover this page should be updated to mark releases 3.1.0 & 3.1.1 as not compatible with Moodle 3.0 & 3.1.
  • Picture of Amit Kumar
    Wed, Sep 26, 2018, 12:08 PM

    If we will send resource notification 100 + user, it will take much time to send email and screen goes blank.

    Does anyone know how to fix this issue.
  • Picture of Eric-Efrain Solano-Uscanga
    Wed, Mar 6, 2019, 8:35 AM
    Hi, will there be an update for 3.6?
  • Picture of pierpaolo red
    Fri, Apr 5, 2019, 4:45 PM
    Hi! Does it work with Moodle 3.6?
  • Picture of Frankle Lee 李智高
    Thu, Apr 25, 2019, 10:05 AM
    I tried on my 3.6 and it doesnt work sad , waiting for upgrade.
  • Picture of Acqua Alta
    Sun, May 26, 2019, 1:58 PM
    Frank Lee, I installed the plugin on Moodle v3.6.3 and it works
    Do you mean that the plugin doesn't work at all (doesn't send e-mail at all)?
    Are you sure that your system has e-mail configured correctly?
  • Picture of Guillaume Allègre
    Sat, Jun 8, 2019, 6:42 AM
    The plugin has been tested with success on Moodle 3.6 and 3.7, with the default theme.
    If you find a failure, please tell us your precise Moodle version, which theme do you use, and what other plugins are installed.
  • Picture of Frankle Lee 李智高
    Sat, Jun 8, 2019, 9:25 AM
    Thanks, here is the debug info
    Invalid database query parameter value
    Debug info: Objects are are not allowed: moodle_url
    Error code: codingerror
    ×Stack trace:
    line 859 of /lib/dml/moodle_database.php: coding_exception thrown
    line 1010 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->detect_objects()
    line 1372 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->normalise_value()
    line 89 of /message/output/weixin/message_output_weixin.php: call to mysqli_native_moodle_database->insert_record()
    line 475 of /lib/classes/message/manager.php: call to message_output_weixin->send_message()
    line 360 of /lib/classes/message/manager.php: call to core\message\manager::call_processors()
    line 328 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
    line 316 of /lib/messagelib.php: call to core\message\manager::send_message()
    line 154 of /local/resourcenotif/lib_resourcenotif.php: call to message_send()
    line 99 of /local/resourcenotif/lib_resourcenotif.php: call to resourcenotif_send_email()
    line 125 of /local/resourcenotif/resourcenotif.php: call to resourcenotif_send_notification()

    this plugin was working on my 3.4 with lambda theme. I have a msgoutput plugin call weixin to send the notification directly to an IM App call weixin(not by email), and they work perfectly.
    But they stopped working after my upgrade to 3.6 with the latest lambda theme.
    I do can see the button and fill the details before sending notification, but the above information popup after I click the send button.
    I tried to set email as my primary msgoutput and it works fine. So, I do believe this error is related to my weixin plugin.
    Any suggestion is appreciated! Thanks!
  • Picture of Guillaume Allègre
    Sat, Jun 8, 2019, 2:42 PM
    Frankle, sorry, I don't find the weixin plugin in the Moodle plugins list. Where does it come from?
  • Picture of Frankle Lee 李智高
    Sun, Jun 9, 2019, 7:45 PM
    The weixin plugin is developed by a private company, it is not a public plugin. It works from 2.9 to 3.6 and still working perfectly except for resource notification. It worked with resource notification on my 3.4 and stopped working after my upgrade to 3.6. So, should I look into the differences between 3.4 and 3.6 on message output?
  • Picture of Guillaume Allègre
    Mon, Jun 10, 2019, 12:38 AM
    Hello Frankle. The bug/incompatibility may be in resource_notification, or in weixin, or, more probably in-between. I'm very sorry, but if the weixin code is private, I can't investigate the problem. Maybe you should ask the weixin developpers?
1 2 3
Please login to post comments