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
352 sites
31 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
  • Basic HTML allowed for advanced users
  • 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 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.

  • Picture of Dan Jeffries
    Thu, 7 Jun 2018, 11:07 PM
    Hi Zander - great plugin, congrats!

    I've gone to use it for the first time as I wanted to advise users of an important website, however there's no option for HTML! I appreciate a WYSIWYG editor may not be ideal, but including HTML would be invaluable (I have used HTML in other bootstrap elements before).

    Hopefully it's something that can be implemented smile

    Best - Dan
  • Picture of Zander Potgieter
    Mon, 11 Jun 2018, 12:27 PM
    Thanks Dan!

    And thanks for the feedback. I've added it as an issue/feature request over on GitHub ( - you can follow any progress there.

  • Picture of Yannick Vrolant
    Tue, 19 Jun 2018, 12:40 AM
    Hi, thanks for this awesome plugin ! One suggestion though : would be really nice if we could use the multilang tags and filter within the title + text of the notifications... Let us know if you ever make this dream come true and congrats on a great job !
  • Picture of Zander Potgieter
    Fri, 6 Jul 2018, 1:15 PM
    Hi Dan & Benjamin,

    basic HTML is now allowed to be used in the Title & Message of the notification (from v1.2.2+) - scripts and the like are stripped. More advanced users can now customise their notifications with custom HTML. I've also made it a setting so administrators can turn this functionality on/off if they wish to do so. Hope it helps a bit! smile

  • Picture of Zander Potgieter
    Fri, 6 Jul 2018, 1:18 PM
    Hi Yannick,

    Thanks a lot, and nice suggestion! I've added it as an issue over on GitHub ( I hope to implement it in an upcoming release.

  • Picture of Zander Potgieter
    Fri, 13 Jul 2018, 9:14 AM
    Hi Nezam,

    The plugin has been updated to display dates better now - no more 01/01/1970! ;)

  • Picture of Zander Potgieter
    Fri, 20 Jul 2018, 9:31 AM
    Hi Yannick,

    I've added support for filters in the latest release, so it should support multilang tags as you requested now. Enjoy!

1 2
Please login to post comments