Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #32  
Old 01-04-2012, 05:34 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ ofir24
this question is allready was answered.
its not possible in this version of plugin
Reply With Quote
  #33  
Old 06-26-2012, 04:00 PM
Noerenberg Noerenberg is offline
 
Join Date: Mar 2009
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I try it again and i see no message. :-(

EDIT, now it run, hmm but not when i use tms.
but its ok, nice mod, thanks
Reply With Quote
  #34  
Old 11-12-2012, 12:43 PM
Ellendway Ellendway is offline
 
Join Date: Jan 2011
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any chance to add background image to the text? Something like adblock icon?
Reply With Quote
  #35  
Old 11-13-2012, 02:07 PM
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've implemented this code and it does not work with "Do Not Track Plus" ad block software, regardless of how many different things we try.
Reply With Quote
  #36  
Old 12-29-2012, 04:10 PM
emp1re emp1re is offline
 
Join Date: Jan 2005
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Somehow the redirect does not work on mozilla firefox.
It stays on the site. it does show the message but does not redirect after 2 seconds (the time i entered).

In chrome it works..chrome got redirected...
Any ideas ?
Reply With Quote
  #37  
Old 04-25-2014, 03:01 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATES:

english translation added | 25.04.2014

____________________

@ Budget101 please test with adblock plus or noscript

@emp1re will be fixed on enough requests.
Reply With Quote
  #38  
Old 05-23-2014, 02:22 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anti_ADblock_Alert_Box_Full_Site_Block_v2 added
Reply With Quote
  #39  
Old 09-28-2014, 12:11 PM
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ghostt View Post
@ Budget101 please test with adblock plus or noscript

.
Thank you, it does work with those, but that wasn't my point. The point was that it doesn't work with the most widely used adblocker system. ;-)
Reply With Quote
  #40  
Old 02-02-2015, 08:30 PM
RealitYYY RealitYYY is offline
 
Join Date: Dec 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This stopped working recently and not sure why that is...

http://filesharingtalk.com/forum.php

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\"><center><span style="color:#FFFFFF"><span style="color:#FF0040">Turn AdBlock OFF and this will NOT show!!<span style="color:#FFFFFF"><br><a href="http://affiliate.astraweb.com/" target="_blank rel="nofollow"><img src="http://a.fststatic.com/aw.gif" alt="" /></a><br><a href=\"/showthread.php?t=125697\"><img src=\"/images/statusicon/cp_help.gif\" height=\"12\" width=\"12\" alt=\"Help\" title=\"READ THIS\" /><span style="color:#3366FF"> -> How to Disable AdBlock for This Site since the ads are NOT obtrusive. <- <\/a><a href=\"/showthread.php?t=125697\"><img title=\"How To Close This\" src=\"/images/statusicon/cross.png\" alt=\"Close\"></a></center><\/div><\/div>';
            }
        }
    }

//-->
</script>
Reply With Quote
  #41  
Old 02-02-2015, 08:45 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RealitYYY View Post
This stopped working recently and not sure why that is...

http://filesharingtalk.com/forum.php

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\"><center><span style="color:#FFFFFF"><span style="color:#FF0040">Turn AdBlock OFF and this will NOT show!!<span style="color:#FFFFFF"><br><a href="http://affiliate.astraweb.com/" target="_blank rel="nofollow"><img src="http://a.fststatic.com/aw.gif" alt="" /></a><br><a href=\"/showthread.php?t=125697\"><img src=\"/images/statusicon/cp_help.gif\" height=\"12\" width=\"12\" alt=\"Help\" title=\"READ THIS\" /><span style="color:#3366FF"> -> How to Disable AdBlock for This Site since the ads are NOT obtrusive. <- <\/a><a href=\"/showthread.php?t=125697\"><img title=\"How To Close This\" src=\"/images/statusicon/cross.png\" alt=\"Close\"></a></center><\/div><\/div>';
            }
        }
    }

//-->
</script>
It appears Ad Block Plus is now blocking your adframe.js from loading.



This is not unusual I've seen it happen before for similarly named scripts like "ad-blocker.js". You need to rename the javascript file to something else and edit the reference to the name in the script above. It should then start to work again.
Reply With Quote
Reply

Thread Tools

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 04:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04922 seconds
  • Memory Usage 2,349KB
  • 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
  • (5)bbcode_code
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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