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

[rellect] AdBlock Detector - How to create custom alert type

This guide will teach you how to create a new alert type for AdBlock Detector.

  1. rellect

    rellect Well-Known Member

    rellect submitted a new resource:

    [rellect] AdBlock Detector - How to create custom alert type - This guide will teach you how to create a new alert type for AdBlock Detector.

    Read more about this resource...
     
  2. rellect

    rellect Well-Known Member

    rellect updated [rellect] AdBlock Detector - How to create custom alert type with a new update entry:

    Robot condition

    Read the rest of this update entry...
     
  3. Webby

    Webby Member

    <xen:if is="!{$session.robotId}">
    <script>
    $(document).bind('AdBlockOn', function(){
    alert('If you see this message, your AdBlocker is On');
    });
    </script>
    </xen:if>


    Which template do I add the above code to? It is the second option you showed in the resource.
     
  4. rellect

    rellect Well-Known Member

    Generally it doesn't matter, it should work in any template.
    Personally I'm putting my scripts in the footer template.
     
    Webby likes this.

Share This Page