The wpDiscuz — User Notifications add-on adds a convenient notification system to your site. Users of the site will be able to receive notifications as soon as they appear. Moreover, two notification options are available:
You can put the notification bell in the main menu using the %wpdiscuz-bell% shortcode as the URL of the link. This menu item will be replaced by a notification bell.
As a second option, you can enable web push notifications. Such notifications are displayed on the screen even if you have switched to another tab or minimized the browser window.
Both options are shown in the screenshot:
notification options
By the way, you can also use the [wpdiscuz_bell] shortcode. Put it anywhere, in your post or text widgets, and it will be replaced with a notification bell.
So, let's look at all the available options for the wpDiscuz — User Notifications add-on.
As soon as you activate the add-on, you will see a new tab "User Notifications" in the "Add-on Settings" list.
Notifications loading method
By default, notifications are loaded via the WordPress REST API. If the REST API is unavailable for some reason or works with errors, you can simply change the upload method to AJAX.
Notify me when
Here you can individually configure notifications for users. Consider the available options:
voting for my comment (someone votes on my comment) — the user will receive a notification if someone likes or dislikes his/her comment
subscribing to the user (someone follows me) - the user will receive a notification if someone subscribed to him/her
rating of records (someone rates my post) — this option applies to the authors of the records. If someone gave a rating for a record, then the author of the record will receive
a mention notification (someone mentioned me) — any user will receive a notification if he was mentioned in a comment.
reply to my comment (someone replied to my comment) — the user will receive a notification if someone responded to his/her comment
of the comment of the posts (someone commented on my post) - this option also applies to the authors of the posts. If someone wrote a comment under the record, then the author of the record will receive a notification
comment on the signed record (new comment on subscribed post) — the user will receive a notification if someone left comments under the record where he/she is subscribed. You can learn more about the possibilities of subscriptions with wpDiscuz here.
new comment from a subscribed user (new comment by followed user) — the user will receive a notification if the user he/she subscribed to wrote a comment.
comment approved (my comment is approved) — the user will receive a notification if his/her comment has been approved.
Extension "wpDiscuz - User Notifications"
You can disable any of these options. However, it is important to understand here that users will receive only one notification.
Show notification bell in the top admin bar
This option allows you to display the bell on the "Toolbar" (Admin Bar).
Show notification bell in the top admin bar
Web Push Notifications
Web Push Notifications are short messages that pop up on the screen of a mobile device or computer. And of course, this is one of the ways to attract more users. This option allows you to enable web push notifications for the wpDiscuz plugin.
Display notification bell for
In this section, you can individually configure the roles of users for whom notifications will be disabled. There are three options here for Display notification bell for:
roles — here you can select the roles of users who are allowed to see the bell and receive notifications.
guests — by enabling this option, you will allow non-registered users to see the bell and receive notifications.
new visitors — new visitors are those who have not yet left comments on your website. And there is no information about the commentator's name and email address in the cookies. You can also set up notifications for these users.
Show notifications for last X days
This option allows you to set the number of days after which notifications will no longer be displayed. That is, they will be considered "Obsolete".
Live update
With this option, you can enable real-time updates. Unless, of course, it restarts your server.
Update every
This option allows you to set the update interval in real time. It only works if the previous option is enabled. The value can be set from 30 seconds to 10 minutes.
Notifications count per load
This option allows you to set the number of notifications when loading. Let's say we set the option value to 5 and we have 16 notifications. The picture we will have is as follows: when you click on the bell, we will have 5 notifications and a "Show more" button. Each time you click on the "Show more" button, 5 more notifications will appear, etc.
Notification sound URL
With this option, you can change the standard notification sound. By default, this is: your-domain/wp-content/plugins/wpdiscuz-user-notifications/assets/audio/pristine.mp3
You just need to paste the URL of the .mp3 file into the field and save the settings.
Important: The notification sound will only work with .mp3 files and when the user has already interacted with the site.
Play the sound when notification is:
There are only two available values here:
[NEW] — plays a sound at each new notification.
[UNREAD] — plays a sound if there is an unread notification every time the page loads.
Bell Style
This option also has two values. Depending on the topic, you can choose:
Bordered — not flooded
Filled — filled
Bell Style
Notifications’ container animation speed in milliseconds.
With this option, you can control the animation speed of the notification container. That is, the speed at which the notification sheet opens when you click on the bell.
Colors
In the Colors section, you can change the colors of individual elements using a color mixer ("Color Picker"). Moreover, you can change the colors not only in the menu sheet, but also in the "Toolbar" (Admin Bar).
Extension "wpDiscuz - User Notifications"
Delete all notifications/Delete expired notifications
These two buttons allow you to delete notifications directly from the database.
Delete all notifications — deletes all notifications from the database
Delete expired notifications — deletes "outdated" notifications from the database. "Outdated" notifications depend on the value of the "Show notifications for last X Days" option.
Notifications’ Texts
This section is quite voluminous. Here you can find and change/translate all notification texts.
Notifications’ Container Texts
This section contains all the keywords of the container:
Notifications' Container Texts
That's probably all. Did you like the addition "wpDiscuz — User Notification"?
I will write separate articles about the other additions to the wpDiscuz plugin. By the way, about the wpDiscuz Voice Commenting supplement, there is already a similar analysis. You can read it here. You can find everything about the wpDiscuz Widgets add-on here