[3.3][RC] AdBlock Detector - phpBB Extension

Extensions for phpBB 3.3.X
Maintained and supported by Stoker
No Avatar
deninho32 Offline
BBCoder II
BBCoder II
Posts: 18
Joined: 05 Feb 2025, 08:35
Local time: 07 Sep 2025 05:54
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector

Post by deninho32 »

Very nice!!
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:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[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
~ 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:54
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by deninho32 »

Nice work! Going to test this later today!
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:54
Last active: -
Location: The Netherlands
Contact:

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by deninho32 »

Tested it and seems to be working just fine! Nice work man.
https://forum.negentiendertien.nl - Voor supporters, door supporters.
No Avatar
romaamor Offline
BBCoder II
BBCoder II
Posts: 19
Joined: 02 Jun 2025, 18:27
Local time: 07 Sep 2025 06:54
Last active: -

[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.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[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?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Steve Offline
Donator
Donator
Posts: 1,589
Joined: 04 Mar 2010, 23:10
Local time: 07 Sep 2025 04:54
Last active: -
Favourite BBCode: {
Favourite EXT: {
Location: { .

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by Steve »

if(! in group_ids, id) || !auth ~ group disables alert message:
display: none;
stokers bugs: {.23%t>
my bugs: .
No Avatar
romaamor Offline
BBCoder II
BBCoder II
Posts: 19
Joined: 02 Jun 2025, 18:27
Local time: 07 Sep 2025 06:54
Last active: -

[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.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

[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
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
romaamor Offline
BBCoder II
BBCoder II
Posts: 19
Joined: 02 Jun 2025, 18:27
Local time: 07 Sep 2025 06:54
Last active: -

[3.3][DEV] AdBlock Detector - phpBB Extension

Post by romaamor »

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