[3.3][RC] AdBlock Detector - phpBB Extension

Extensions for phpBB 3.3.X
Maintained and supported by Stoker

[3.3][DEV] AdBlock Detector

Post by deninho32 »

Very nice!!

[3.3][DEV] AdBlock Detector

Post by Stoker »

Extension updated!
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!


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

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by deninho32 »

Nice work! Going to test this later today!

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by deninho32 »

Tested it and seems to be working just fine! Nice work man.

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by romaamor »

I would add another very important function to the extension. Namely, disabling the display of messages asking to disable the ad blocker for selected user groups.

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by Stoker »

romaamor wrote: 27 Jul 2025, 09:51 I would add another very important function to the extension. Namely, disabling the display of messages asking to disable the ad blocker for selected user groups.
Not sure I understand what you mean?

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by Steve »

if(! in group_ids, id) || !auth ~ group disables alert message:
display: none;

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by romaamor »

Stoker wrote: 27 Jul 2025, 10:06
Not sure I understand what you mean?
For example, I have a group of users on the forum - friends. For this group, I disable advertising on the forum. But if someone from this group has an ad blocker enabled, he sees a warning although advertising is disabled for him.

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by Stoker »

You will have to do this with 2 template edits
overall_footer_after.html and overall_footer_body_after.html
Replace the very first line with this:

Code: Select all

{% if (S_IN_ADBLOCKDETECTOR or ADBLOCKDETECTOR_INLINEABM_ENABLE or ADBLOCKDETECTOR_FIXEDABM_ENABLE or ADBLOCKDETECTOR_MODALABM_ENABLE) and U_ADBLOCKDETECT and FORUM_ID != 2 %}
adjust this part FORUM_ID != 2 to match the ID you want to exclude

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by romaamor »

I think it will be cooler this way. :)
Image