Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Vb Anti ADblock Alert Box Details »»
Vb Anti ADblock Alert Box
Version: 1.01, by Ghostt Ghostt is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.x.x Rating:
Released: 04-22-2011 Last Update: 04-25-2011 Installs: 39
Template Edits
Additional Files Translations  
No support by the author.





This Mod is compatible to ALL Versions of the Vbulletin Software!

Vbulletin Anti ADblock Alert Box will show a beautiful alert box below the header which is enabled if the user surfs with any advertisement blocking software.

The notification is telling the user to disable his adblocking software on your free website which depends on the sponsor earnings.



Background info: Adblock is getting more and more popular at the expense of the webmasters.
on my friends website are more then 35 % with adblock enabled before he used this mod.
That means ca 35 % less earning! (with this addon and for example trendcounter.com you can easily check how much adblock users surfs with that "websites destroying software")

IF this addon stops working because of adblock adds a preventive filter for it. Just Reply here we will fix it asap! (v2 cant be removed by preventive filter. )

__________________________________________________ ________________________


Follow the 4 steps to Install the mod:

1/4. Upload the adframe.js file and the icon images to your server. [adframe.js to your root directory, not forum/ directory]

2/4. ADD this html code to the bottom of the header template (or where you want this alert box to apear)

Code:
<div class="a"></div>
3/4. ADD the following Code to bottom of the header template (to show alert on every page) or to the showthread template (If you want to show alert only on thread pages). You can edit the red marked text and ad english translation from the end of this post.
Code:
<script type="text/javascript">
<!--
    var adblock = true;
//-->
</script>
<script type="text/javascript" src="adframe.js"></script>
<script type="text/javascript">
<!--
    if(adblock) {
        var allElements = document.getElementsByTagName('div');
        for (var i = 0; i < allElements.length; i++) {
            if (allElements[i].className == 'a') {
                allElements[i].innerHTML = '<div class=\"blocked\">DIESE SEITE IST WERBEFINANZIERT UND DAHER KOSTENFREI. BITTE UNTERST&Uuml;TZEN SIE  WWW.EXAMPLE.COM MIT DER<strong> DEAKTIVIERUNG IHRES WERBEBLOCKERS AUF WWW.EXAMPLE.COM</strong>. VIELEN DANK! (<img src=\"/images/statusicon/cp_help.gif\" height=\"12\" width=\"12\" alt=\"Help\" title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" /> <a href=\"/showthread.php?t=450353\">WIE? und mehr Info<\/a>). <div class="x"><a href=\"/showthread.php?t=450353\"><img title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" src=\"/images/statusicon/cross.png\" alt=\"Close\"></a><\/div><\/div>';
            }
        }
    }

//-->
</script>
4/4. ADD this CSS rules to the bottom of "addtitional Style variables" of your Style.

HTML Code:
.blocked{background: #fff6bf url(/images/statusicon/exclamation.png) center no-repeat;background-position: 15px 50%; /* x-pos y-pos */text-align: left;padding: 5px 30px 5px 45px;border: 2px solid #ffd324; margin-left:auto; margin-right: auto; margin-top:5px;} .x {float: right;margin:-10px -7px 0 0;}
______________________________OPTIONAL____________ _______________________

5*/4(optional)
Open a thread in your forum where you explain the users how to disable adblock on your page. you can use a image like this: http://i.imgur.com/mUzdG.jpg

And how it is important to support this free page with disabling the adblocking software on this page which is depend on the advertisment earnings.
Then replace the thread id with the green marked number in the code from the 3/4 step



** English translation (replace with red text in code.):
Code:
EXAMPLE.COM IS DEPENDING ON ADVERTISEMENT. <b>PLEASE DISABLE YOUR ADBLOCK</b> TO SUPPORT THIS FREE SITE! <a href="javascript:location.reload()"><img src="http://s1.directupload.net/images/140425/8ls6yqpi.png" alt="Reload" title="Reload Page after that" height="16" width="16"></a>  Thank you.
__________________________________________________ ______________________


Advanced Anti_ADblock_Alert_Box_Full_Site_Block_v2 Blocking NOT FILTERABLE for adblock and Increase earning up to 35%, without ads (tested), for only 30$!

if you want to buy it, PM me. Screen shot attached.


__________________________________________________ ______________________


UPDATES:
  • Anti_ADblock_Alert_Box_Full_Site_Block_v2 | 23.05.2014
  • English translation added | 25.04.2014

Download Now

File Type: zip VB.Anti.adblockalert.box.addon.zip (189.2 KB, 481 views)

Screenshots

File Type: jpg screenshot.jpg (30.8 KB, 0 views)
File Type: jpg Anti_ADblock_Alert_Box_fullsite_block_v2.jpg (37.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
hunter1985

Comments
  #2  
Old 04-23-2011, 07:30 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can I block full website....
Reply With Quote
  #3  
Old 04-23-2011, 07:35 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rajubd View Post
how can I block full website....

1. ADD before the red marked text from step 3/4:

Code:
<meta http-equiv=\"refresh\" content=\"0; url= http://example.com/forum/adblock.php\">
2. replace the orange marked url with your url to the site the user get if adblock is enabled.

2,5* (optional). set the redirection time (sec.) due replacing the blue marked digit
Reply With Quote
  #4  
Old 04-23-2011, 09:27 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Danke dir / Thank you
Reply With Quote
  #5  
Old 05-03-2011, 08:12 AM
Noerenberg Noerenberg is offline
 
Join Date: Mar 2009
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works not on my vb4.1.3

the end of my header looks so

<div class="a"></div>
<!--
var adblock = true;
//-->
</script>
<script type="text/javascript" src="adframe.js"></script>
<script type="text/javascript">
<!--
if(adblock) {
var allElements = document.getElementsByTagName('div');
for (var i = 0; i < allElements.length; i++) {
if (allElements[i].className == 'a') {
allElements[i].innerHTML = '<div class=\"blocked\">DIESE SEITE IST WERBEFINANZIERT UND DAHER KOSTENFREI. BITTE UNTERST&Uuml;TZEN SIE WWW.EXAMPLE.COM MIT DER<strong> DEAKTIVIERUNG IHRES WERBEBLOCKERS AUF WWW.EXAMPLE.COM</strong>. VIELEN DANK! (<img src=\"/images/statusicon/cp_help.gif\" height=\"12\" width=\"12\" alt=\"Help\" title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" /> <a href=\"/showthread.php?t=450353\">WIE? und mehr Info<\/a>). <a href=\"/showthread.php?t=450353\"><div class="x"><img title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" src=\"/images/statusicon/cross.png\" alt=\"Close\"></a><\/div><\/div>';
}
}
}

//-->
</script>
Reply With Quote
  #6  
Old 05-03-2011, 02:27 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Noerenberg View Post
It works not on my vb4.1.3

the end of my header looks so

HTML Code:
<div class="a"></div>
<script type="text/javascript">
<!--
    var adblock = true;
//-->
</script>
<script type="text/javascript" src="adframe.js"></script>
<script type="text/javascript">
<!--
    if(adblock) {
        var allElements = document.getElementsByTagName('div');
        for (var i = 0; i < allElements.length; i++) {
            if (allElements[i].className == 'a') {
                allElements[i].innerHTML = '<div class=\"blocked\">DIESE SEITE IST WERBEFINANZIERT UND DAHER KOSTENFREI. BITTE UNTERST&Uuml;TZEN SIE  [url]WWW.EXAMPLE.COM[/url] MIT DER<strong> DEAKTIVIERUNG IHRES WERBEBLOCKERS AUF WWW.EXAMPLE.COM</strong>. VIELEN DANK! (<img src=\"/images/statusicon/cp_help.gif\" height=\"12\" width=\"12\" alt=\"Help\" title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" /> <a href=\"/showthread.php?t=450353\">WIE? und mehr Info<\/a>). <a href=\"/showthread.php?t=450353\"><div class="x"><img title=\"Tutorial zur Deaktivierung von ADblock auf bestimmten Seiten\" src=\"/images/statusicon/cross.png\" alt=\"Close\"></a><\/div><\/div>';
            }
        }
    }

//-->
</script>
the box just not appear or whats the error?

do you have added the css to your style and uploaded the adframe.js to your root directory (not forum/ directory) ?

it might be that adblock has made a new anti anti adblock filter. please check your adblock filter list if adframe.js is blocked by it. if yes. that means all ok.
Reply With Quote
  #7  
Old 05-03-2011, 03:11 PM
Noerenberg Noerenberg is offline
 
Join Date: Mar 2009
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

i do everthing what stand in the first post. But i see no alert to turn of the blocker.

adframe.js is on the filter list, what i can do know that it work?
Reply With Quote
  #8  
Old 05-20-2011, 04:53 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<removed>
Reply With Quote
  #9  
Old 05-25-2011, 07:25 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry it seems there was a missing js start tag
HTML Code:
<script type="text/javascript">
in step 3/4.

please replace the code.
Reply With Quote
  #10  
Old 06-22-2011, 07:55 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't work. Try it. Install Adblock plus for firefox, subscribe to the Easylist and block ads.
Ads are blocked. adblock=false.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04685 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete