Your Moodle version

Other: Resource notification

Maintained by Picture of Guillaume Allègre Guillaume Allègre
This Moodle plugin allows a teacher to notify course students by mail when a new resource/activity is created or modified into a course.
157

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

The notification is activated by an action performed by the teacher, available as a new entry
in the "Edit" dropdown menu available for each resource or activity.
The notification message can be customized, but contains by default two links, to the resource
and to the course.
The message is sent to all users enrolled into the course and permitted to view the resource.

This plugin was sponsored by Université Paris 1 Panthéon-Sorbonne, France, as part of a heavily customised Moodle instance.

Screenshots

Screenshot
Screenshot

Contributors

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 Plugins bot
    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.
  • Picture of Guillaume Allègre
    Wed, Jun 4, 2014, 5:46 AM
    I've just added a tracker url, and two snapshots as required. Thanks for your evaluation.
  • Picture of David Mudrák
    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
    http://docs.moodle.org/23/en/Capabilities/moodle/course:manageactivities 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 http://docs.moodle.org/dev/Enrolment_API 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 http://docs.moodle.org/dev/Coding_style#Files 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!
Please login to post comments