Advanced Notifications
Versions
Current version
v1.4.3 (2022021419)
v1.4.3
Plugin type: Blocks
Frankenstyle component name: block_advnotifications
Version build number: 2022021419
Version release name: v1.4.3
Maturity: Stable
Supported Moodle versions: 3.10, 3.11, 3.9
Repository URL (Git): https://github.com/zpottie/moodle-block_advnotifications
Repository branch: master
Repository tag: v1.4.3
Issue/bug tracker URL: https://github.com/zpottie/moodle-block_advnotifications/issues
Changelog
v1.4.3 - 14/02/2022
Added
- ISO 8601 Date format - YYYY-MM-DD.
- Event logging - Thanks @danielneis!
Changed
- Minor string changes (backend).
- Tested on Moodle v3.11.
- Bumped version number.
v1.4.2 - 10/02/2021
Changed
- Bumped version number.
Fixed
- Privacy API provider cleanup - removed mtrace (prevent Unit Test warnings) & whitespaces.
v1.4.1 - 06/01/2021
Added
- JS source maps.
Changed
- Increased 'precision'/length of
seenfield in database (from 4 to 10). - Minor Moodle code-check fixes.
- Bumped version number.
v1.4.0 - 18/12/2020
Added
- Users can now create/manage their own (instance-based/non-global) notifications
- Enable via capability/permissions -
manageownnotifications.
- Enable via capability/permissions -
- A package.json file for easier (local) testing, checks & generation of code.
Changed
- General code, UI & language strings cleanup.
- Updated README.md with new feature listed.
- Bumped version number.
Fixed
- TravisCI file - updated moodle-plugin-ci to use Moodle HQ's.
v1.3.12 - 13/10/2020
Changed
- Bumped version number.
Fixed
- Improper default settings value. Now sets first date format as default.
v1.3.11 - 06/10/2020
Added
- Gruntfile - scss & js processing.
- More date formats available.
Changed
- UI/UX Improvements.
- Cleaned up unused SCSS variables & functions.
- Bumped version number.
Fixed
- 'Date-to' would not be shown if 'Date-from' was not set (0). It now correctly checks if date-to is set instead.
- Various travis & moodle plugin db-recommended code style fixes.
v1.3.10 - 02/10/2020
Added
- Setting to customise 'date format' shown by plugin.
Changed
- Utilised bootstrap more for form styling.
- Bumped version number.
v1.3.9 - 22/06/2020
Changed
- Travis file updated to Moodle 3.9.
- Updated buttons classes to be more consistent - primary, secondary, light.
- Bumped version number.
v1.3.8 - 29/04/2020
Changed
- Update imagery - video and gif.
- Simplify README.
- Bumped version number.
Fixed
- Announcement alert type now works properly for preview alert - allowing live preview if custom CSS exists for announcement type alert.
v1.3.7 - 19/12/2019
Changed
- Travis file updated to Moodle 3.8.
- Bumped version number.
v1.3.6 - 19/09/2019
Changed
- Code style fixes.
- Bumped version number.
v1.3.5 - 17/09/2019
Changed
- Moved JS to AMD format.
- Updated TravisCI file to Ubuntu Xenial - MDL-65992.
- Bumped version number.
v1.3.4 - 11/07/2019
Changed
- Removed redundant global variable.
- Bumped version number.
Fixed
- Use lang string for notification type in table(s).
v1.3.3 - 11/07/2019
Added
- Support for theme to override images - thanks @amandadoughty.
Changed
- 'Message' field width enlarged.
- Minor CSS updates.
- Bumped version number.
Fixed
- Placeholder for date fields updated to expected format - for browsers that don't support 'date' input types.
v1.3.2 - 23/01/2019
Changed
- TravisCI file update - ci tool version/source.
- README tweak.
- Bumped version number.
Fixed
- Squashed regression bug - filter removed data attributes required for AJAX calls to dismiss notifications.
- Seen count SQL - when user exports data "Yes" or "No" was shown instead of the seen count.
- Only show manage-related links if the user has permission.
v1.3.1 - 21/01/2019
Changed
- TravisCI file update.
- Bumped version number.
Fixed
- Minor code style fixes.
- EOL fixes.
v1.3.0 - 21/01/2019
Added
- Support for Privacy API (GDPR Compliance).
- Language strings for Privacy API.
Changed
- Bumped version number.
v1.2.4 - 18/07/2018
Added
- Support added for multilang (and other) filters.
Changed
- Bumped version number.
v1.2.3 - 13/07/2018
Changed
- If the from/to dates are not set, a
-is now displayed instead of 01/01/1970. - If the from/to dates match the 'to date' is displayed as a
-. - Updated README - HTML allowed since previous update.
- Bumped version number.
v1.2.2 - 05/07/2018
Added
- 'Allow HTML' setting - toggles if basic HTML is allowed in the Title and Message (filtered for scripts, etc).
Changed
- Preview & Form-related JavaScript improved - more robust and responsive UI/UX.
- Minor styling update for status indicator (Saving/Done).
- Bumped version number.
v1.2.1 - 27/04/2018
Added
- Added .stylelintignore file to exclude scss files (only check final css file).
Changed
- Bumped version number.
v1.2.0 - 24/04/2018
Added
- Added breadcrumbs to manage & restore pages.
- Added language strings for breadcrumbs.
Changed
- Updated dates in Changelog (typos).
- Bumped version number.
Fixed
- Fixed minor illogical JS error.
v1.1.1 - 12/03/2018
Changed
- Small UX Improvement - better padding for dismiss button.
- Bumped version number.
Fixed
- Fixed bug that caused illogical redirect(s).
v1.1.0 - 05/03/2018
Added
- Added locallib file to manage preparation of notifications to be rendered.
- Added CHANGELOG.md file to start keeping track of changes.
Changed
- Moved database calls out of renderer function 'render_notification' - it now purely renders the notifications.
- PHPDocs corrections for class 'advnotifications'.
- Updated 'Message' field to be texarea - allowing for resizing of field.
- Updated SCSS (and therefore CSS) to support resizing of textarea & improved UX for dismiss/close button.
- Bumped version number.
v1.4.2 (2021021012)
v1.4.2
Plugin type: Blocks
Frankenstyle component name: block_advnotifications
Version build number: 2021021012
Version release name: v1.4.2
Maturity: Stable
Supported Moodle versions: 3.10, 3.5, 3.6, 3.7, 3.8, 3.9
Repository URL (Git): https://github.com/learningworks/moodle-block_advnotifications
Repository branch: master
Repository tag: v1.4.2
Issue/bug tracker URL: https://github.com/zpottie/moodle-block_advnotifications/issues
Changelog
v1.4.2 - 10/02/2021
Changed
- Bumped version number.
Fixed
- Privacy API provider cleanup - removed mtrace (prevent Unit Test warnings) & whitespaces.
v1.4.1 - 06/01/2021
Added
- JS source maps.
Changed
- Increased 'precision'/length of
seenfield in database (from 4 to 10). - Minor Moodle code-check fixes.
- Bumped version number.
v1.4.0 - 18/12/2020
Added
- Users can now create/manage their own (instance-based/non-global) notifications
- Enable via capability/permissions -
manageownnotifications.
- Enable via capability/permissions -
- A package.json file for easier (local) testing, checks & generation of code.
Changed
- General code, UI & language strings cleanup.
- Updated README.md with new feature listed.
- Bumped version number.
Fixed
- TravisCI file - updated moodle-plugin-ci to use Moodle HQ's.
v1.3.12 - 13/10/2020
Changed
- Bumped version number.
Fixed
- Improper default settings value. Now sets first date format as default.
v1.3.11 - 06/10/2020
Added
- Gruntfile - scss & js processing.
- More date formats available.
Changed
- UI/UX Improvements.
- Cleaned up unused SCSS variables & functions.
- Bumped version number.
Fixed
- 'Date-to' would not be shown if 'Date-from' was not set (0). It now correctly checks if date-to is set instead.
- Various travis & moodle plugin db-recommended code style fixes.
v1.3.10 - 02/10/2020
Added
- Setting to customise 'date format' shown by plugin.
Changed
- Utilised bootstrap more for form styling.
- Bumped version number.
v1.3.9 - 22/06/2020
Changed
- Travis file updated to Moodle 3.9.
- Updated buttons classes to be more consistent - primary, secondary, light.
- Bumped version number.
v1.3.8 - 29/04/2020
Changed
- Update imagery - video and gif.
- Simplify README.
- Bumped version number.
Fixed
- Announcement alert type now works properly for preview alert - allowing live preview if custom CSS exists for announcement type alert.
v1.3.7 - 19/12/2019
Changed
- Travis file updated to Moodle 3.8.
- Bumped version number.
v1.3.6 - 19/09/2019
Changed
- Code style fixes.
- Bumped version number.
v1.3.5 - 17/09/2019
Changed
- Moved JS to AMD format.
- Updated TravisCI file to Ubuntu Xenial - MDL-65992.
- Bumped version number.
v1.3.4 - 11/07/2019
Changed
- Removed redundant global variable.
- Bumped version number.
Fixed
- Use lang string for notification type in table(s).
v1.3.3 - 11/07/2019
Added
- Support for theme to override images - thanks @amandadoughty.
Changed
- 'Message' field width enlarged.
- Minor CSS updates.
- Bumped version number.
Fixed
- Placeholder for date fields updated to expected format - for browsers that don't support 'date' input types.
v1.3.2 - 23/01/2019
Changed
- TravisCI file update - ci tool version/source.
- README tweak.
- Bumped version number.
Fixed
- Squashed regression bug - filter removed data attributes required for AJAX calls to dismiss notifications.
- Seen count SQL - when user exports data "Yes" or "No" was shown instead of the seen count.
- Only show manage-related links if the user has permission.
v1.3.1 - 21/01/2019
Changed
- TravisCI file update.
- Bumped version number.
Fixed
- Minor code style fixes.
- EOL fixes.
v1.3.0 - 21/01/2019
Added
- Support for Privacy API (GDPR Compliance).
- Language strings for Privacy API.
Changed
- Bumped version number.
v1.2.4 - 18/07/2018
Added
- Support added for multilang (and other) filters.
Changed
- Bumped version number.
v1.2.3 - 13/07/2018
Changed
- If the from/to dates are not set, a
-is now displayed instead of 01/01/1970. - If the from/to dates match the 'to date' is displayed as a
-. - Updated README - HTML allowed since previous update.
- Bumped version number.
v1.2.2 - 05/07/2018
Added
- 'Allow HTML' setting - toggles if basic HTML is allowed in the Title and Message (filtered for scripts, etc).
Changed
- Preview & Form-related JavaScript improved - more robust and responsive UI/UX.
- Minor styling update for status indicator (Saving/Done).
- Bumped version number.
v1.2.1 - 27/04/2018
Added
- Added .stylelintignore file to exclude scss files (only check final css file).
Changed
- Bumped version number.
v1.2.0 - 24/04/2018
Added
- Added breadcrumbs to manage & restore pages.
- Added language strings for breadcrumbs.
Changed
- Updated dates in Changelog (typos).
- Bumped version number.
Fixed
- Fixed minor illogical JS error.
v1.1.1 - 12/03/2018
Changed
- Small UX Improvement - better padding for dismiss button.
- Bumped version number.
Fixed
- Fixed bug that caused illogical redirect(s).
v1.1.0 - 05/03/2018
Added
- Added locallib file to manage preparation of notifications to be rendered.
- Added CHANGELOG.md file to start keeping track of changes.
Changed
- Moved database calls out of renderer function 'render_notification' - it now purely renders the notifications.
- PHPDocs corrections for class 'advnotifications'.
- Updated 'Message' field to be texarea - allowing for resizing of field.
- Updated SCSS (and therefore CSS) to support resizing of textarea & improved UX for dismiss/close button.
- Bumped version number.
v1.3.12 (2020101317)
v1.3.12
Plugin type: Blocks
Frankenstyle component name: block_advnotifications
Version build number: 2020101317
Version release name: v1.3.12
Maturity: Stable
Supported Moodle versions: 3.5, 3.6, 3.7, 3.8, 3.9
Repository URL (Git): https://github.com/learningworks/moodle-block_advnotifications
Repository branch: master
Repository tag: v1.3.12
Issue/bug tracker URL: https://github.com/zpottie/moodle-block_advnotifications/issues
Allows for notifications to be easily managed and set to be displayed 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:
- Customisable title & message
- Basic HTML tags allowed for advanced users
- Multi-lingual/filter support
- Multiple types of notifications (Bootstrap-based)
- 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
- 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's had the deleted flag for more than 30 days
- Option to automatically remove user (dismissed/seen) records that relates 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
_____
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!
v1.3.8 (2020042913)
v1.3.8
Plugin type: Blocks
Frankenstyle component name: block_advnotifications
Version build number: 2020042913
Version release name: v1.3.8
Maturity: Stable
Supported Moodle versions: 3.5, 3.6, 3.7, 3.8
Repository URL (Git): https://github.com/learningworks/moodle-block_advnotifications
Repository branch: master
Repository tag: v1.3.8
Issue/bug tracker URL: https://github.com/zpottie/moodle-block_advnotifications/issues
Allows for notifications to be easily managed and set to be displayed 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:
- Customisable title & message
- Basic HTML tags allowed for advanced users
- Multi-lingual/filter support
- Multiple types of notifications (Bootstrap-based)
- 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
- 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's had the deleted flag for more than 30 days
- Option to automatically remove user (dismissed/seen) records that relates 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
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!
v1.2.4 (2018071817)
v1.2.4
Plugin type: Blocks
Frankenstyle component name: block_advnotifications
Version build number: 2018071817
Version release name: v1.2.4
Maturity: Stable
Supported Moodle versions: 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5
Repository URL (Git): https://github.com/learningworks/moodle-block_advnotifications
Repository branch: master
Repository tag: v1.2.4
Issue/bug tracker URL: https://github.com/zpottie/moodle-block_advnotifications/issues
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.
Features:
- 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's had the deleted flag for more than 30 days
- Option to automatically remove user (dismissed/seen) records that relates 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
For full documentation, please check here - or check the plugin's /docs directory.
Notification Anatomy
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!