Author: Stoker, credits to Detect Adblock for the js
Extension Version:
Requirements:
Extension Description:
If your phpBB forum relies on advertising revenue, you're likely losing money to ad blockers. A significant portion of your audience never sees your ads, directly impacting your financial stability. This is why an AdBlock Detector for phpBB is not just beneficial, but crucial for forum administrators.
AdBlock Detector Configuration:
AdBlock Detector Page:
This setting enable/disable the AdBlock Detector custom page.
If enabled messages will be displayed.
AdBlock Detector Messages:
If this is disabled the extension will run in "Testmode". Messages will only display on the AdBlock Detector page.
If enabled messages will display on all pages.
Display inline:
Displays the AdBlock Detector message inline in the header.
Display fixed:
Displays the AdBlock Detector message fixed at the top.
Display modal:
Displays the AdBlock Detector message as a modal.
WARNING!!! This option is very intrusive. It will block the entire screen until they either close it or disable their AdBlocker.
I do not recommend this option UNLESS you know what you are doing AND have a very strong content. The risk is that your users leave your board!
Noscript message:
Displays a message in the header if JavaScript is disabled.
Topic noscript message:
Disable topic views and display a message if JavaScript is disabled.
WARNING!!! This option is very intrusive. It will block the entire screen until they either close it or disable their AdBlocker.
I do not recommend this option UNLESS you know what you are doing AND have a very strong content. The risk is that your users leave your board!
Topic AdBlock:
Disable topic viewsand display a message if an AdBlocker is detected.
WARNING!!! This option is very intrusive. Users can`t see the topics.
I do not recommend this option UNLESS you know what you are doing AND have a very strong content. The risk is that your users leave your board!
Dynamic generated ID's:
AdBlock messages appear on next pageload EVEN if attempted blocked with an AdBlocker.
Simple Messages:
Simple messages are more subtle styling. This goes for both AdBlock and NoScript messages.
Permissions:
Set groups permissions -> Misc in ACP. By default all is off!
All display types can be combined!
On this Adblock Detector Demo I have enabled all 3.
Release history:
Fixed:
Bug that disabled topic view for everybody. Not just AdBlockers.
Improvements:
1.0.1 dev
- Simple messages, a more subtle way to display messages
- Permissions added. Set groups permissions -> Misc in ACP. By default all is off!
1.0.0 dev
- All CSS is moved from stylesheet to inline HTML. This means that AdBlockers doesnt have a class to block
- Dynamic ID's. New ID on every pageload. This means that when an AdBlocker block the current ID, the block will appear again on next pageload.
- Noscript added. Then users cant just disable javascript to avoid ads and AdBlock detector messages. They will get the same if javascript is disabled.
- Link to custom page added in the AdBlock detector messages. Then you can explain why they see the messages.
- Several minor tweaks
Demo:
phpBB AdBlock Detector
Download:
Screenshots: