Resource notification

General plugins (Local) ::: local_resourcenotif
Maintained by Guillaume 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.
Latest release:
1486 sites
61 fans
Current versions available: 3

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.

Please use Github Issues to report bugs. See Bug tracker URL below.


Screenshot #0
Screenshot #1
Screenshot #2


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

Comments RSS


  • Mon, May 26, 2014, 5:28 AM
    Thanks for sharing this plugin with the Moodle community. Some formal issues were detected and reported by our automated plugin checker tool. Please review all the plugin checker results and fix the issues mentioned, if possible. These changes are typically pretty easy to make but if you have any questions just let us know. For now, I am going to mark this plugin as needing more work. Once you get these formal issues resolved, please use the link “Schedule this plugin for re-approval” so that the plugin code can be fully reviewed and approved by my human colleagues.
  • Wed, Jun 4, 2014, 5:46 AM
    I've just added a tracker url, and two snapshots as required. Thanks for your evaluation.
  • Thu, Jun 5, 2014, 4:11 PM
    Hi Guillaume. Thanks for fixing the plugin record as suggested. I am going to approve your work now. I am sure many people will
    find your tool very useful. However, there are couple of areas where I believe your plugin could be improved yet.

    Please note, in order to facilitate further development and contributions to your plugin, PHP comments should really be in English.

    Please avoid putting PHP closing tags ?> into your files. They are known to cause troubles.

    The string concatenation operator (.) is not supported by our plugins localisation tool (AMOS). Your plugin can't be localised there
    unless you fix the syntax there. Please stick to plain $string['id'] = 'Value'; format. Also note, plugins are supposed to ship with
    the English strings only. All localisation happens via AMOS.

    I found that you plugin does not check for permissions (capabilities). As a consequence, any logged-in course participant can spam
    all others if they type the correct URL into their browser manually. Please make sure that your code checks for the capability before allowing the user to send the message.

    Similarly, the way you get the list of recipients of the message should be improved. Instead of relying on the 'student' role
    assigned in your resourcenotif_get_users_from_course(), you should check the and pick an
    appropriate function from there - such as get_enrolled_users().

    I noticed that the recommended boilerplate was not used in the version.php file. The boilerplate is recommended at the beginning of
    each file and makes explicit the GPL license. You may want to review to learn more
    about the boilerplate comments.

    As your plugin relies on a patch applied to Moodle core, we have to put it into the appropriate category here in the plugins
    directory (to make sure folks are aware of the special attention needed during the installation).

    I am sure you would consider this feedback in future versions of the plugin. Said that, you are cleared to land. Runway free -
    welcome to the Plugins directory!
  • Tue, May 12, 2015, 1:48 PM
    Hi Guillaume, I was just wanting to enquire if this plugin will be updated to suit Moodle 2.8? If so, when would this be likely to occur?
  • Wed, Oct 12, 2016, 5:18 AM
    Thanks to Xi’an Jiaotong-Liverpool University (XJTLU), there is now a new version available for Moodle 3.0 and 3.1. Please refer to the release notes for full details :
  • Thu, Oct 27, 2016, 5:18 AM
    I trying install this plugin. Unpack code the moodle/local folder and visiting '/admin/index.php' . Nothing happens. What's the trick? The folder name or something else?
  • Fri, Jan 27, 2017, 2:10 AM
    Hi Gyula, sorry for the time ; I didn't see your comment until today.
    Which version of Moodle and of the plugin do you use ?
    The folder name must be local/resourcenotif/

    If you have other problems or bug reports, it's better to use the github issues tracker:
  • Sat, Feb 4, 2017, 8:10 AM
    Great plugin, very useful, most of my students are encourage in doing the activities given.
    I would like to modify the layout of the message. How can I achieve this ?
    Thank you
  • Tue, Feb 7, 2017, 5:22 PM
    Hi Aurelien,
    in the menu Site administration > Plugins > Local plugins > Resource notification
    you can type another message template.
    I think it's what you call the layout, right ?

  • Wed, Feb 8, 2017, 11:07 PM
    Hi Guillaume,
    It is what I'm talking about, is html supported ?
  • Mon, Mar 6, 2017, 10:52 PM
    Why it don't appear to translate to PT-PT?
  • Fri, Mar 10, 2017, 10:54 PM
    To Aurelien DARIE :
    html is NOT supported on purpose: we wanted to have this functionality compatible with all notification systems, including Mobile alerts (
    This was not possible for HTML messages, so we had to choose.
  • Fri, Mar 10, 2017, 11:02 PM
    To Dinis Medeiros:
    Currently, there is only english and french versions.
    You can contribute to localize the english messages into pt:PT with the translation platform : see TRANSLATION tab, and AMOS documentation :
  • Sun, Mar 12, 2017, 3:55 AM
    I'm a translator to PT-PT. More than 10000 strings. When i click here (Contribute translations for Português - Portugal ‎(pt)‎) i get No strings found. Where is you plugin? In others plugins when i click in similar links i go to the AMOS respective page and yours plugin don't. Thanks
  • Wed, May 10, 2017, 7:05 AM
    Hi, I jus installed de plugin but I was not able to see the icon in the Edit drop down menu. I checked the folder and the plugin is in the right folder, I was able to see the configuration in local plugin pane but nothing happened in the drop down edit menu. ¿Could you give some advice in order to solved this problem?
Please login to post comments