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

ok please check adblock plus filter if adblock.js is blocked or not.
if not we have to rename/move it.
Reply With Quote
  #13  
Old 06-24-2011, 09:05 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how to use adblock, so I wouldn't know where to look for exclusions.
They specifically have entries in for our site, though.
Reply With Quote
  #14  
Old 06-24-2011, 09:13 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click strg+shift+V when you have the tab of your board in the browser.
then check in the list if the adframe.js is red marked. if yes its right.
Reply With Quote
  #15  
Old 06-24-2011, 09:53 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have lots of keys infront of me now and in the past going back to 1979, and not one has had strg written on it
Reply With Quote
  #16  
Old 06-24-2011, 10:02 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh sry strg is german.
english its CTRL
Reply With Quote
  #17  
Old 06-25-2011, 10:29 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working in the end, thank you.
I think the key is for each person running a forum to randomly pick the name for their own .js file of a blocked .js file from the main filter list.
And then change this every time it breaks. Takes a couple of minutes to do.
Reply With Quote
  #18  
Old 07-23-2011, 06:01 AM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, but I have one problem. I don't want to force my visitors to whitelist my site. Is it possible to make a close button on the notification box and making it not show again if closed once?
Reply With Quote
  #19  
Old 07-25-2011, 01:14 AM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its close automatically when the user disable adblocking sofware.
its better because to keep the user allways in mind to not use this software.
this kind of notifaction is not so aggressiv like other anto adblock tools blockig whole site.
i suggest to include the script in the showthread.php not in header.
Reply With Quote
  #20  
Old 07-27-2011, 01:17 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to fix rule 3, have one box for your language and the other for us english users. Thanks. Which according to google translate should be:

Quote:
THIS PAGE IS FUNDED ADVERTISING AND BE FREE. PLEASE SUPPORT THE WWW.EXAMPLE.COM <strong> DEACTIVATION OF YOUR ADVERTISING ON BLOCKERS WWW.EXAMPLE.COM </ strong>. THANK YOU!
Reply With Quote
  #21  
Old 07-27-2011, 01:28 AM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this google translation is very bad.
ok. i will add an english translation in the next days.
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 07:29 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.08124 seconds
  • Memory Usage 2,338KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)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