Blocks: Advanced Notifications

Maintained by Picture of Zander Potgieter Zander Potgieter, Picture of Learning Works Learning Works
Allows for notifications to be easily managed and set to be displayed to users
190 sites
25 fans

TravisCI Pull Requests Welcome

Allows for notifications to be easily managed and set to be displayed to users

This block allows users to display Bootstrap-like alerts (which can be easily styled differently in the theme or otherwise) with various configurations.

This could be useful in cases such as alerting users of scheduled outages, welcoming them to your site, teachers can use it to notify users of changes/due dates, etc.



  • Customisable title
  • Customisable message
  • Multiple types of notifications (Bootstrap-based)
  • Type-based icons (optional setting)
  • Dismissible/Non-Dismissible
  • Customisable date range to show notification from and to
  • Display a notification to the user a set amount of times
  • Instance-based or global/site-wide notifications
  • Enable/Disable a/all notifications (Site-wide and instance-based)
  • Edit/Delete/Restore notifications
  • Option to auto-delete notification after end date
  • Option to permanently delete notifications that have had the deleted flag for more than 30 days
  • Option to automatically remove user (dismissed/seen) records that relate to notifications that don't exist anymore
  • AJAX utilised to improve user-experience and simplify processes
  • Live-preview when making/editing a notification
  • Easy to use, but fully documented

For full documentation, please check here - or check the plugin's `/docs` directory.

Notification Anatomy

Alert Types

Installation Notice

All the plugin's settings are disabled by default. Enable it upon installation if you wish to start using it immediately or enable it later by navigating to Site Administration > Plugins > Blocks > Advanced Notifications. 

Backwards Compatibility/Progressive Enhancement

Although the plugin works and is usable without JavaScript, it is highly recommended to use the plugin with JavaScript enabled. Using the plugin with JavaScript disabled does not allow for some features to be used to their full potential ranging from dismissing a notification to dynamically editing existing notifications and the live-preview feature - all of which relies on JavaScript in some form to make the user's experience more enjoyable.

Pull Requests

Pull requests are welcome - submit pull requests to address issues, add features, fix typos, anything!


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Picture of Zander Potgieter
Zander Potgieter (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Mon, 2 Oct 2017, 12:20 PM
    Approval issue created: CONTRIB-7066
  • Picture of Josef Ligorski
    Thu, 7 Dec 2017, 3:56 PM
    Easy to set up and customize. I like it so far, was looking for some kind of notification system for a while smile

  • Picture of Zander Potgieter
    Fri, 8 Dec 2017, 5:08 AM
    Thank you for the kind words, Josef! smile

  • Picture of Nicholas Stefanski
    Tue, 13 Feb 2018, 1:34 AM
    This block is great! Any plans to add hours and minutes to the scheduling of alerts? If not, I may take a crack at it myself and submit a pull request.

  • Picture of Zander Potgieter
    Mon, 19 Feb 2018, 5:33 AM
    Thanks Nick! Yes, I've thought of adding it but haven't got around to actually doing it yet. I also can't promise an expected delivery date, sorry, but it is likely to be added in a future version. If you need the feature urgently, feel free to submit a pull request though. smile

  • Picture of Benjamin Abrial
    Mon, 19 Feb 2018, 8:46 PM
    Thanks for your nice plugin.
    Do you think it is possible do use an HTML wysiwyg field to provide a more sophisticated notification body ?
  • Picture of Zander Potgieter
    Fri, 2 Mar 2018, 5:15 AM
    Hi Benjamin,
    Thanks - glad you like it!
    While Moodle Forms allows for HTML wysiwyg fields, I opted not to use Moodle Forms as it lacked some functionality I required.
    I'm looking into improving the fields in multiple ways, though, so stay tuned! ;)
  • Picture of Nezam Ansari
    Fri, 27 Apr 2018, 9:25 PM
    Dear Zander,

    If we don't choosing the from and to date then it showing 01/01/1970. it would be better to show empty or current date.

  • Picture of Zander Potgieter
    Tue, 1 May 2018, 6:59 AM
    Hi Nezam,

    Good call - makes sense! I'll try to get it in the next update.

Please login to post comments