A collection of improvements to the XenForo Alerts system.
This add-on requires php 5.6 or newer
Features
- For threads/conversation/profile pages, automatically marks alerts as read from content on a given page when viewed.
- Mark unread link for individual alerts on the Alerts page.
- Supports the following add-ons:
- Content Ratings
- Global Optional, Alert summerization by selected content type or user
- User Option to prevent marking as read...
V2.8.20
- Another attempt to reduce deadlocks during alert pruning
- When editing a post, mark related alerts as read, as this displays changes in post contents to the visitor
- If Live Content add-on is installed; only try to mark alerts as read if the visitor has unread alerts
- Require php 7.2+
- Require XenForo 2.2+, remove XF2.1 support
- Fix sticky unread alerts could unexpectedly occur due to (effectively undocumented) 'auto read' functionality in XF2.2
- Fix confusion over view_date vs read_date not being correctly used in the expected places
- Fix alerts pop-up not respecting "Days to retain viewed alerts in popup" option in all cases
- Fix 'mark read' functionality could result in inconsistent view/read date for older alerts near the expiry...
- Fix "Alert summarization" option being disabled still showed user's preference options to configure it
- Require Standard Library by Xon v1.18.0+
- Fix alert summarizing only triggered on +25 unread alerts instead of the user-defined threshold
- Fix summary alerts in the alert pop-up would be pushed under the just read alerts as if it had been read a while ago
- Adjust "Alert summarize limit" option description text to better describe what a limit of 0 does (ie no limit)
- Fix regression in v2.9.0 where empty content summary alerts was being generated, and incorrectly preferring a per-user summary instead
- Fix that editing alert preferences when summarization is disabled, would disable some summarization options
- Fix "Alerts pop-up skips mark read" and "Alerts page skips summarizing" user-options did not save as expected
- Fix "Alert resummarize flood check" global option didn't allow selecting 0 to disable it
- Work-around surprisingly expensive add-on live-ness join when fetching alerts and instead filter by content_type
- Fix some bad index selection for newer MariaDB/MySQL versions for various parts of the add-on
- Fix some bad performance when using the 'unsummarize' feature
- Fix bad links for profile-post summary alerts
- Fix formatting of alert summarization threshold option not being a numberbox
- Fix summary alerts could have a "G" as the user avatar for alerts which aren't...
- Fix alerts grouped by user could occur event if the alerts by a user was less than the configured threshold
- Fix new installs did not migrate alert preferences
- Fix migrating alert preferences would block the installer
- Fix alert preferences where not respected during alert migration from stock to add-on configuration
- Adjust text around the alert pop-up marking alerts as read behavior
- Use a separate css class for the recent alert marker
- Convert confusing named...
- Fix adding a user via the admincp could result in a php type error
- Fix "getSvAlertPref(): Return value must be of type array, null returned" when adding a user via the admincp
- Force a consistent mysql locking ordering of affected user records when a user receives a reaction
- Fix unsetting "Pop-up auto-read" for some XF stock alerts would fail
- Fixes for grouped/summarized alerts
- Group by newest alert not oldest when computing alert summary data
- When gluing together per-content type reaction summary, use ", " not just whitespace.
- Fix setting "Alerts page skips summarizing" in "User Registration" to false wasn't applied to new accounts
- Fix incorrect phrase for default alert type in admincp
- Fix new alert types could be opted out by default instead of opt-in
- Fix user's alert preferences may not save with some configurations
- On alert opt-out list; only render "reset" checkbox for non-default values
- Add explain text to the "Use custom" value for "Alerting Preferences" per-user option
- Add "[Alert Improvements] Can customize advanced alert preferences" permission to control is a user can change the following per-user preferences: "Alerts page options"/"Alert pop-up options"/"Alerts summarize threshold"
Permission granted to Registered user group by default
- When the user's alert count is non-zero, the alert-popup is forced to fetch unread alerts first, and if no unread alerts are discovered this indicates the user's alert count is out-of-sync and needs to be reset.
Add "Use stock UI for marking alerts as read" style property (default disabled)