Clanbite Settings

Option
clanbite_notifications_settings
Class
Kernowdev\Clanbite\Extensions\Notifications\Admin

Profile subpages

FieldWhat it doesDefault
subpage_player
checkbox
Player profile: Notifications tab
When off, the notifications template and tab are omitted and that URL redirects to the profile root.
true

Notification bell

FieldWhat it doesDefault
poll_long_polling
checkbox
Use long-polling
When enabled, poll requests may stay open until new notifications arrive or a timeout is reached (fewer HTTP round-trips). When off, each poll checks once and returns immediately (better for busy sites and limited PHP workers). Developers can still override behavior with the clanbite_notification_poll_blocking_wait filter.
false

Popups

FieldWhat it doesDefault
toasts_enabled
checkbox
Show popups
Short notices that appear on the screen, such as a rank-up, points earned, a confirmation or an error. Every Clanbite extension uses the same popups, so these settings apply to all of them. When off, no popups are shown.
true
toast_position
select
Popup position
Where on the screen popups appear.
Options are built when the screen loads.
Shown when toasts_enabled is on
top-right
toast_duration
select
Show popups for
How long a popup stays before it disappears. Choose Custom to type your own length. Visitors can always close it sooner.
Options are built when the screen loads.
Shown when toasts_enabled is on
5
toast_duration_custom
number
Custom length (seconds)8
toast_pause_on_hover
checkbox
Pause when hovered
Hovering over a popup pauses its countdown so it can be read; moving away resumes it. Popups always pause while they have keyboard focus.
Shown when toasts_enabled is on
true
toast_show_timer
checkbox
Show a countdown bar
A thin bar along the bottom of each popup fills up as it gets close to disappearing. Popups that stay until closed have no bar.
Shown when toasts_enabled is on
true

Defined in inc/extensions/notifications/class-extension-notifications-admin.php

Changelog

VersionDescription
1.5.0Updated.