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

Anti Adblocker js problem

Discussion in 'XenForo Questions and Support' started by bogus, May 23, 2011.

  1. bogus

    bogus Guest

    I am using an Anti Adblock Script i have already used on my old vB.
    Its an alert Box that pops up if some has Adblock plus in Firefox activated.
    The problem that appears now is, if i integrate this script and deactive Adblock for my side i cant edit Threads and cannot watch attachments anymore.
    I have no idea what this causes and hope that anybody around here with a better js knowledge then mine can help me getting this fixed.

    This part is implemented into the footer right after the last </div>
    Code:
    <script type="text/javascript">
        function DisableAdBlock() {
            if ($('.AdSense').height() == 0)
                alert("Your AdBlocker threatens the existence of brainlag.\nWith every click on a banner ad you support us..\nPlease disable your blocker to help brainlag.\nClick OK to load the page");
        }
        $(DisableAdBlock);
    </script>
    This Codes is added to page_container_js_body at last
    Code:
    <script type="text/javascript" src="js/adblock/antiadblock.js"></script>
    And here´s the js script it´s using
     

    Attached Files:

  2. ragtek

    ragtek Guest

    People who don't want to see adsense, will also block this, so it's not worth spending time with this.
    My 0.02$ ;)
     
  3. bogus

    bogus Guest

    As if i knew it.... my post did not wanted the suggestion what will be or not.
    This post is looking for help.
    ragtek. Ich hab um Hilfe gebeten, nicht das Du mir deine Weisheiten überlässt.
     

Share This Page