[3.3][RC] AdBlock Detector - phpBB Extension

Extensions for phpBB 3.3.X
Maintained and supported by Stoker
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

There is a bug in the Topic AdBlock function.
Do not use it before next version!
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

I need testers!

Please go to the demo page: phpbb-adblock-detector
Use your adblocker to block elements.
Reload page and see what happens.
And let me know how it goes.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
SpIdErPiGgY Offline
Donator
Donator
Posts: 53
Joined: 13 Dec 2024, 08:43
Local time: 07 Sep 2025 05:52
Last active: -
Location: Erpe-Mere, Belgium
Contact:

[3.3][DEV] AdBlock Detector

Post by SpIdErPiGgY »

At the moment, the blocked elements keeps returning on every pageload.

On Firefox beta with uBlock Origin and AdBlocker Ultimate
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

Thanks Spider
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

Extension updated!

Update Instructions:
You may want to copy the text for the custom page before proceeding.
- Disable in ACP
- Delete data in ACP
- Delete folder via FTP
- Upload the new folder
- Enable extension and enjoy

Fixed:
Bug that disabled topic view for everybody. Not just AdBlockers.

Improvements:
- 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
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
deninho32 Offline
BBCoder II
BBCoder II
Posts: 18
Joined: 05 Feb 2025, 08:35
Local time: 07 Sep 2025 05:52
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector

Post by deninho32 »

Is it also possible to exclude a group? Maybe with
a permission that you have tot set? We have a group with paying members that I would like to exclude from this extension.
https://forum.negentiendertien.nl - Voor supporters, door supporters.
No Avatar
deninho32 Offline
BBCoder II
BBCoder II
Posts: 18
Joined: 05 Feb 2025, 08:35
Local time: 07 Sep 2025 05:52
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector

Post by deninho32 »

Is it also possible to exclude a group? Maybe with
a permission that you have tot set? We have a group with paying members that I would like to exclude from this extension.
https://forum.negentiendertien.nl - Voor supporters, door supporters.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

There is no permissions ATM, but its a good idea for next version.
Until that happens you might want to look at the group templates ext https://www.phpbb.com/customise/db/exte ... variables/
It does require you to do some manual edits of the template files.

Another thing. I you are using an ads ext with permissions, you can just remove ads for that group. Then they dont need adblocker enabled on your site
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
deninho32 Offline
BBCoder II
BBCoder II
Posts: 18
Joined: 05 Feb 2025, 08:35
Local time: 07 Sep 2025 05:52
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector

Post by deninho32 »

I use that template extension for other stuff, going to take a look and see what I can do. I want my paying users to see nothing concerning ads or blockers.
https://forum.negentiendertien.nl - Voor supporters, door supporters.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:52
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[3.3][DEV] AdBlock Detector

Post by Stoker »

Seem like I have permissions working on my localhost.
Need to test it more but looks good so far
~ The greatest achievement in life is to inspire ~
Regards Stoker
Post Reply