firesphere / adblockwarning
Show a warning to visitors that don't have an adblocker installed
Package info
codeberg.org/Firesphere/silverstripe-adblockwarning
Type:silverstripe-vendormodule
pkg:composer/firesphere/adblockwarning
Requires
- silverstripe/cms: >=4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Help your users understand the importance of using an adblocker, by alerting those that don't have one.
Demo
Disable your adblocker and visit my website:

Defaults
The included template is based on Bootstrap 5.
Note, the (big) list of classnames is part of the functionality!
Installation
composer require firesphere/adblockwarning
Usage
In your template, include the following:
$AdblockWarning
Customising
Copy the contents of the Templates folder to your theme or app, and modify to your likings.
Contents of heading/notification are editable via the SiteConfig.
Thanks
Did you read this entire readme? You rock!
Pictured below is a cow, just for you.
/( ,,,,, )\
_\,;;;;;;;,/_
.-"; ;;;;;;;;; ;"-.
'.__/`_ / \ _`\__.'
| (')| |(') |
| .--' '--. |
|/ o o \|
| |
/ \ _..=.._ / \
/:. '._____.' \
;::' / \ .;
| _|_ _|_ ::|
.-| '==o==' '|-.
/ | . / \ | \
| | ::| | | .|
| ( ') (. )::|
|: | |; U U ;|:: | `|
|' | | \ U U / |' | |
##V| |_/`"""`\_| |V##
##V## ##V##