Resource icon

Show adblock detected notice

Dnyan

Well-known member
Dnyan Deshmukh submitted a new resource:

Show adblock detected notice - Polite request to user for disabling adblock software

Today i used an old resource of xF1 on xF2 by copying required things.

This Tutorial will help you to shows adblock notice to user in place of google advertisement banner.

View attachment 173313

In order to get it working on your website, first create a template

Name it - advertisement.js

add following code to it - its just a one line code.

PHP:
<script>document.write('<div id="tester">an advertisement</div>');</script>

Then go to extra.less template and add...

Read more about this resource...
 
This is definitely a great modification. I have tried to implement it on my forum but unfortunately the ad block message comes up even with ad block off. Does anyonw know what could be the issue? I'm on XF 2.0.7
 
Thanks for this.

Works very well (tested with Ghostery and uBlock Origin) and Google Ads.

But i just used on the first banner in my Forum, to not annoy my public, lol.
 
This is definitely a great modification. I have tried to implement it on my forum but unfortunately the ad block message comes up even with ad block off. Does anyonw know what could be the issue? I'm on XF 2.0.7
My tutorial was linked in this resource and was looking to see if anyone else has found another way of doing this (such as an easier way) when I came across this post. What's your code that you were using? Mind pasting the whole thing so we can see and help troubleshoot?
 
Back
Top Bottom