Thread: Alert Adblock Users

Results 1 to 8 of 8
  1. #1 Alert Adblock Users 
    Registered Member
    Join Date
    Feb 2016
    Posts
    116
    Thanks given
    8
    Thanks received
    8
    Rep Power
    11
    Hey so I'm not sure if many people will use this but it could still help a few people.

    Add this code in your header or guest header.

    Code:
    <div class="YOUR_CLASS">Alerts!&nbsp;</div> <script>
    (function() {
        var message = "Please disable Ad block to browse this site!";
        var tryMessage = function() {
                setTimeout(function() {
                    if(!document.getElementsByClassName) return;
                    var ads = document.getElementsByClassName('YOUR_CLASS'),
                        ad  = ads[ads.length - 1];
      if(!ad
                        || ad.innerHTML.length == 0
                        || ad.clientHeight === 0) {
    [Only registered and activated users can see links. ]
     

  2. #2  
    Registered Member
    Mtarik's Avatar
    Join Date
    Nov 2015
    Posts
    230
    Thanks given
    133
    Thanks received
    66
    Rep Power
    325
    delete this please.. accidently commented was testing something
    Last edited by Mtarik; 06-19-2016 at 08:44 PM. Reason: delete this please
     

  3. #3  
    aaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa
    Planets's Avatar
    Join Date
    Aug 2014
    Age
    26
    Posts
    2,161
    Thanks given
    675
    Thanks received
    1,958
    Discord
    View profile
    Rep Power
    5000
    Wheres the rest

     

  4. #4  
    Web Developer & Designer

    IlluZive's Avatar
    Join Date
    Mar 2014
    Age
    25
    Posts
    300
    Thanks given
    161
    Thanks received
    202
    Rep Power
    404
    Quote Originally Posted by ZerkYoAGS View Post
    Hey so I'm not sure if many people will use this but it could still help a few people.

    Add this code in your header or guest header.

    Code:
    <div class="YOUR_CLASS">Alerts!*</div> <script>
    (function() {
        var message = "Please disable Ad block to browse this site!";
        var tryMessage = function() {
                setTimeout(function() {
                    if(!document.getElementsByClassName) return;
                    var ads = document.getElementsByClassName('YOUR_CLASS'),
                        ad  = ads[ads.length - 1];
      if(!ad
                        || ad.innerHTML.length == 0
                        || ad.clientHeight === 0) {

    Your code isn't even complete. I get that you're trying to help people but do you even know what you're posting here 90% of the time?

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
     

  5. Thankful user:


  6. #5  
    Registered Member

    Join Date
    Dec 2011
    Posts
    1,622
    Thanks given
    1,984
    Thanks received
    830
    Rep Power
    1049
    Quote Originally Posted by IlluZive View Post
    Your code isn't even complete. I get that you're trying to help people but do you even know what you're posting here 90% of the time?
    Doesn't even look like an effective way to detect an ad block.
     

  7. #6  
    Banned

    Join Date
    Nov 2014
    Posts
    615
    Thanks given
    180
    Thanks received
    156
    Rep Power
    0
    [Only registered and activated users can see links. ]
     

  8. #7  
    aaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa
    Planets's Avatar
    Join Date
    Aug 2014
    Age
    26
    Posts
    2,161
    Thanks given
    675
    Thanks received
    1,958
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Thrallix View Post
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

     

  9. Thankful users:


  10. #8  
    Banned

    Join Date
    Nov 2014
    Posts
    615
    Thanks given
    180
    Thanks received
    156
    Rep Power
    0
    Quote Originally Posted by Substance View Post
    [Only registered and activated users can see links. ]
    2 months old isn't really gravedigging, and it might help someone.
     

  11. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [TuT]Stopping multi logins through user ips
    By Wolf in forum Tutorials
    Replies: 21
    Last Post: 09-06-2007, 03:20 AM
  2. Red-Halo | User
    By Purefire in forum Showcase
    Replies: 7
    Last Post: 09-01-2007, 06:42 PM
  3. How to make an alert command & a bonus tut
    By Jodan Belfort in forum Tutorials
    Replies: 10
    Last Post: 08-21-2007, 07:35 AM
  4. Replies: 21
    Last Post: 08-03-2007, 04:53 PM
  5. My First User Bar!
    By Lumby in forum Showcase
    Replies: 4
    Last Post: 05-31-2007, 05:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •