Blocks: Advanced Notifications

block_advnotifications
Maintained by Picture of Zander PotgieterZander Potgieter, Picture of Learning WorksLearning Works
Easily create, manage and display notifications/alerts to users.
1185 sites
809 downloads
85 fans
Current versions available: 2

TravisCI Pull Requests Welcome


Easily create, manage and display notifications/alerts to users

This block allows users to display DEFCON-like alerts, which are Bootstrap-based, allowing for 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.

Features


Features:

  • Customisable title & message
  • Basic HTML tags allowed for advanced users
  • Multi-lingual/filter support
  • Multiple types of notifications (Bootstrap-based styles)
  • Type-based icons (optional setting)
  • Dismissible/Non-Dismissible
  • Customisable date range to show notifications
  • Display a notification to the user a set amount of times
  • Instance-based or global/site-wide notifications
  • (NEW) Users (e.g. teachers) can create and manage their own instance-based notifications - disabled by default
  • 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 used to improve user-experience and simplify processes
  • Live-preview when making/editing a notification
  • Easy to use, but fully documented with all the nitty-gritty information
  • Implements Privacy API (GDPR Compliance)

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!

Screenshots

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

Contributors

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 Renee Doehrel Rhodehamel
    Tue, Jul 7, 2020, 11:31 PM
    Hello. Does this work at the course level, so that a instructor can send out a message to only the students in their course (not global messages). We cannot get the configuration to work. Our instructor role seems to be blocked from adding notifications. Only admins can create messages.
  • Picture of Zander Potgieter
    Wed, Jul 8, 2020, 7:43 AM
    Hi Renee,

    I think this is a combination of being a bug and a feature I've been meaning to add. I've created an issue on GitHub - https://github.com/learningworks/moodle-block_advnotifications/issues/24 - to track this and fix it in (hopefully) the near future. Anyone is also free to submit a pull request to implement this if they have time. smile

    Thanks,
    Zander
  • Picture of Renee Doehrel Rhodehamel
    Wed, Jul 8, 2020, 8:14 AM
    Zander - Thanks for the fast reply. It seems like the site admin would also need to be able to block the permission for the instructors to send out global notifications.

    Renee
  • Picture of Zander Potgieter
    Wed, Jul 8, 2020, 10:01 AM
    Yeah, I'd likely make it so that only admins can create notifications by default (as is the situation currently) and roles needing to be given express permission - using Moodle's permissions system. This will prevent existing users of the plugin from being surprised by their teachers/instructors all of a sudden being able to make notifications in a new version of the plugin.

    Thanks,
    Zander
  • Health & Safety Training Ninja
    Fri, Oct 23, 2020, 10:06 PM
    After testing this plugin, I realise there is no way to selectively choose, which notification(s) are displayed in any given 'Advanced Notifications' block when added.

    I believe it will just show all notifications created when adding the block.

    So, for example, I thought this was a brilliant solution as I wanted to put these Advanced Notifications into specific courses, so I can display course specific info messages/ notifications on a particular course.

    However, It doesn't look like I can achieve this without the ability to select, which notification(s) should be displayed in any particular block added to a course or elsewhere.

    Is there any chance of adding this feature as it would vastly improve the functionality and flexibility of this plugin?

    Great job btw, just hoping I can use this in the above scenario.
  • Picture of Zander Potgieter
    Mon, Nov 16, 2020, 7:56 AM
    Hi Steve,

    maybe you're looking for more than just this, but you should be able to do it by unticking the "Global notification?" checkbox when you create a notification. Global notifications show in all Advanced Notifications blocks (as global ones are usually very important - site going down for maintenance, etc), but if it's not global, it should only display for the block it was created in.

    In short, you need to go into the course you want to add the unique message to, turn editing mode on, add the 'Advanced notifications' block, click the cog/configure button for the block and select "Manage notifications" from the dropdown, create the course-specific notification, make sure "Global notification?" is unchecked, click "Save". Your new notification should now only show in that course.

    Two things to note:
    * Global notifications are shown everywhere there is an Advanced Notifications block
    * You need to create the non-global notification from the block you want it to appear in, and leave 'Global notification' unchecked.

    Hope that helps! smile

    Thanks,
    Zander
  • Picture of Santos M
    Sat, Dec 5, 2020, 3:21 AM
    Nice plugin, when will it be available for version 3.10?
  • Picture of Zander Potgieter
    Wed, Dec 9, 2020, 7:39 AM
    Hi Santos,
    I suspect it should still work for Moodle v3.10 - but I will test it soon and officially update it.
    Thanks,
    Zander
  • Picture of Zander Potgieter
    Fri, Dec 18, 2020, 12:26 PM
    Hi Renee (& others interested), the plugin has been updated to now support users to manage their own notifications. Give the role(s) you want the permission `manageownnotifications` and they will be able to make their own instance-based (not global) notifications.
    More info here: https://github.com/learningworks/moodle-block_advnotifications/issues/24

    This update also ensured the plugin supports Moodle v3.10!

    Hope this helps!

    Thanks,
    Zander smile
  • Ricardo Caiado
    Fri, Dec 18, 2020, 12:49 PM
    Hi,

    It would be great if it was possible to selectively display the block to members of specific cohorts.

    Ricardo
  • Picture of Zander Potgieter
    Tue, Dec 22, 2020, 5:04 AM
    Hi Ricardo, thanks for the suggestion - please see my full response here: https://github.com/learningworks/moodle-block_advnotifications/issues/26

    In short, it's not currently possible to *push* notifications to groups or cohorts or the like, only to show them globally or a specific instance of a block.

    Pull requests are always welcomed, while trying to keep the core principle of the plugin alive - keeping it simple and easy to use.

    Thanks,
    Zander
  • Picture of Zander Potgieter
    Thu, Jan 7, 2021, 5:01 AM
    Thanks for reporting the issue and the detailed info, Ricardo! smile

    I've replied on GitHub and have now released a new version (v1.4.1) which significantly increases the maximum number of times a notification can be seen by a user. Please have a look at https://github.com/learningworks/moodle-block_advnotifications/issues/27 for more info.

    Hope that helps & thanks again,
    Zander
  • Picture of Shurmano Bengano
    Wed, Jan 13, 2021, 7:37 AM
    Hi. When i manage your plugin says: You don’t have permissions. ¿How can i fix?
  • Picture of Zander Potgieter
    Wed, Jan 13, 2021, 10:55 AM
    Hi Shurmano,

    What role(s) do you have in the system? And what were you doing before the message showed up?
    There are two main permissions that manage your access to the plugin's features - your role will need to be granted these permissions by an admin of the site:
    - block/advnotifications:managenotifications => Allows you create & manage ALL notifications
    - block/advnotifications:manageownnotifications => Allows you to create & manage ONLY notifications you created

    You can also create an issue here with detailed steps of how the error occurred, screenshots, Moodle/plugin version, etc: https://github.com/learningworks/moodle-block_advnotifications/issues

    Thanks,
    Zander
1 2 3
Please login to post comments