1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Block all AdBlockers

Force the user to disable AdBlocker to display advertisements.

  1. Gopala Subramanium

    Gopala Subramanium Active Member

    Gopala Subramanium submitted a new resource:

    Block all AdBlockers - Force the user to disable AdBlocker to display advertisements.

    Read more about this resource...
  2. Rho Delta

    Rho Delta Well-Known Member

    Anyway to make this an add on instead of a template modification?
  3. Matthew Hawley

    Matthew Hawley Well-Known Member

    Why you using the rating image that @Waindigo uses?
  4. Gopala Subramanium

    Gopala Subramanium Active Member

    A little difficult because the script has a JS CDATA parameter in this code and I don't know how to do that :( Sorry...
  5. Gopala Subramanium

    Gopala Subramanium Active Member

    Because I liked it :)
  6. Matthew Hawley

    Matthew Hawley Well-Known Member

    You have to ask. I asked @Waindigo and he said no.
  7. Gopala Subramanium

    Gopala Subramanium Active Member

    @Matthew Hawley I've removed it now, I did not know it is so serious and issue. Anyways, sorry @Waindigo .

    Now, let us all concentrate and enjoy this resource, the main reason why the thread was started. Thanks :)
  8. TsinJu

    TsinJu Well-Known Member

    You cant donate with Adblocker turned on.
    Maybe its possible to turn the Layer off in Donate Window?
  9. Moshe1010

    Moshe1010 Well-Known Member

    In my opinion, this is a traffic killer. People that have ADblocker don't want to see ads. It may work for regular visitors, but new once would exit from the website right away (and this would raise the bounce rate as well - maybe even drastically, depends how much traffic you get from search engines).

    Just my .02 cents anyway.
    Forsaken, tajhay and Amaury like this.
  10. nukedi

    nukedi Member

    Is it possible to add Block all AdBlockers Only in Special Categories ?
    Last edited: Oct 17, 2013
  11. Hornstar

    Hornstar Well-Known Member

    I'd like to only have it block people from downloading attachments. Do you think you could do that?
  12. Bram

    Bram Well-Known Member

    I have installed in the resource_view_header template. No more sucking up expensive bandwidth in our resource manager that contains huge files.

    Really like this mod, lets hope it helps and maybe stirs up a nice discussion on our forums as well. Thanks!
    Last edited: Oct 17, 2013
  13. MikeMpls

    MikeMpls Well-Known Member

    Possibly a violation of AdSense TOS, which forbids doing anything that calls attention to its ads.

    And for AdSense users, what happens when a bunch of users get ticked off, disable their ad blockers and click-bomb you? You can say buy-bye to AdSense.

    Ad much as I despise ad blockers, I'm not about to jeopardize a 4-figure income stream by doing this.
    Bram and Amaury like this.
  14. Bram

    Bram Well-Known Member

    Good point, didn't look at it like that as I don't see it as an encouragement to start clicking.

    But you are right, better safe than sorry.

    (thank god Google themselves aren't encouraging people to click with their arrows :D)
  15. Gopala Subramanium

    Gopala Subramanium Active Member

    Yes, it is very much possible just add this conditional statement if you have installed Donation Manager:

    <xen:if is="{$contentTemplate} != 'merc_goal'">
        *************** ADBLOCK CODE ***************
    Last edited: Oct 21, 2013
  16. Bram

    Bram Well-Known Member

    @MikeMpls I've checked with contact at Google and its not a problem to use this.
  17. Gopala Subramanium

    Gopala Subramanium Active Member

    Thanks a lot @Bram , even I was trying to confirm this. I really don't want any of us getting into trouble. Thanks,

    @Moshe1010 I observed my analytics for last 2 days, there was hardly any change in the bounce rate but trust me the adsense revenue has almost increased by 40%. I know that this a little early to say but I would continue studying it and will confirm in a month's time. Thanks,
  18. Temery

    Temery Active Member

    Outstanding, so I just donated - well worth the money. One question - I added a conditional statement allowing registered users to bypass this adblock blocker code.

    One problem - if they are not logged in, they get the blocking code, but can't get to the login screen. Any idea around this? I'd like to include code that says, "click here to login."
  19. Gopala Subramanium

    Gopala Subramanium Active Member

    Thanks a ton for the donation. Add the following conditions to overcome this:

    <xen:if is="!{$visitor.is_admin}">
      <xen:if is="{$contentTemplate} != 'login'">
            <style>#d7b2{position:fixed !important;position:absolute;top:3px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:3px;width:98%;height:102%;background-color:#1a2534;opacity:.90;filter:alpha(opacity=90);display:block;padding:20% 0}#d7b2 *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none;color:#FFFFFF}#d7b2 ~ *{display:none}</style><div id="d7b2"><i>Please enable / Bitte aktiviere JavaScript!<br>Veuillez activer / Por favor activa el Javascript!<a href="http://google.com">[ ? ]</a></i></div><script>/*<![CDATA[*/window.document.getElementById("d7b2").parentNode.removeChild(window.document.getElementById("d7b2"));(function(l,m){function n(a){a&&d7b2.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,b){return a?h.getElementById(a):h.getElementsByTagName(b)},getStyle:function(a){var b=h.defaultView;return b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,250)},insert:function(a,b){var e=h.createElement("i"),d=h.body,c=d.childNodes.length,g=d.style,f=0,k=0;if("d7b2"==b){e.setAttribute("id",b);g.margin=g.padding=0;g.height="100%";for(c=this.rand(c);f<c;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);c++}e.innerHTML=a;d.insertBefore(e,d.childNodes[c-1])},displayMessage:function(a){var b=this;a="abisuq".charAt(b.rand(5));b.insert("<"+a+'><font color="#FFFFFF">Adblock Detected!<br><br><hr><br><br><br>This website requires you to unblock your Adblocker as advertisements are a source to maintain this community.<br><br> However, if you donate, Advertisements are disabled for 30 days.</font><br><br><label for="LoginControl" id="SignupButton"><a href="goals/monthly-donation.1/donate" class="inner">Donate</a></label><br><hr><br><br>If you have already donated, then click here to <br><br><label for="LoginControl" id="SignupButton"><a href="login/" class="inner">Log in</a></label>'+("</"+a+">"),"d7b2");h.addEventListener&&b.deferExecution(function(){b.getElementBy("d7b2").addEventListener("DOMNodeRemoved",function(){b.displayMessage()},!1)})},i:function(){for(var a="AdAboveGame,FooterAd,ad-220x90-1,ad-stripe,adDiv300,ad_txt,side_ad,ad,ads,adsense".split(","),b=a.length,e="",d=this,c=0,g="abisuq".charAt(d.rand(5));c<b;c++)d.getElementBy(a[c])||(e+="<"+g+' id="'+a[c]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(c=0;c<b;c++)if(null==d.getElementBy(a[c]).offsetParent||"none"==d.getStyle(d.getElementBy(a[c])).display)return d.displayMessage("#"+a[c]+"("+c+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client'},b=this,e=b.getElementBy(0,"script"),d=e.length-1,c,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(c=e[d].src.substr(7,20),a[c]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[c];l[g]=m;f.onload=f.onreadystatechange=function(){k=this;l[g]!==m||k.readyState&&"loaded"!==k.readyState&&"complete"!==k.readyState||(l[g]=f.onload=f.onreadystatechange=null,e[0].parentNode.removeChild(f))};e[0].parentNode.insertBefore(f,e[0]);b.deferExecution(function(){if(l[g]===m)return b.displayMessage(f.src);b.nextFunction()});return}b.nextFunction()},u:function(){var a="/ad_generator.,/adlink_,/adpicture2.,/ads/player-,/adx_iframe_,/banners/ad10.,/magic-ads/ad,/msgads.,/retrad.,_300_250.".split(","),b=this,e=b.getElementBy(0,"img"),d,c;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){c=this;c.onload=null;c.onerror=function(){p=null;b.displayMessage(c.src)};c.src=e[0].src+"#"+a.join("")},d.src=e[0].src);b.deferExecution(function(){b.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.d7b2=d7b2=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);/*]]>*/</script>
    And the output is like this; hope this what you wanted. Now when they click login, this would not appear.

  20. Temery

    Temery Active Member

    I have users who are logged in and seeing ads (no adblock) but still get the screen. When they click "login" again, it just sends them to the same screen (Adblock detected).

Share This Page