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
Block AdBlock Plus (Kaos) Details »»
Block AdBlock Plus (Kaos)
Version: 1.00, by Kaosvf Kaosvf is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.x.x Rating:
Released: 12-04-2010 Last Update: Never Installs: 21
Template Edits
Additional Files  
No support by the author.

Block AdBlock Plus by Kaos

What is it?
This is a small mod that shows a MessageBox to all persons who use AdBlock Plus and block your advertising.

Install

1)
Upload the content (antiadblock.js) of compressed file (antiadblock.zip) in the main folder of your forum.

2)
Put this code at the bottom in Acp-> Styles & Templates-> Style Manager-> (your style)-> Common Templates-> headinclude:
HTML Code:
<script type="text/javascript" src="antiadblock.js"></script>

3)
This is the code that you must put in Acp-> Styles & Templates-> Style Manager-> (your style)-> Common Templates-> footer:
HTML Code:
<script type="text/javascript"> 
	function DisableAdBlock() {
		if ($('.AdSense').height() == 0)
			alert("Please Disable AdBlock Plus");
	}
	$(DisableAdBlock);
</script>
Before this:
HTML Code:
<div id="footer_copyright" class="shade footer_copyright">
You can modify to your liking the phrase "Please Disable AdBlock Plus".


4)
This is the code that you must put in Acp-> Advertising-> Manage Ads-> (for all your banners)
HTML Code:
<div class="AdSense">
<!-- Advert code goes here -->
</div>



Tips:
-------------------------------------------------------------------
You can change this part of code as you prefer, it is javascript:
HTML Code:
alert("Please Disable AdBlock Plus");
I suggest to redirect the user with AdBlock activated to another page immediately with this code:
HTML Code:
location.href="usingadblock.html";
-------------------------------------------------------------------




Enjoy!

If you like it, please support me, click to mark as installed!

Download Now

File Type: zip antiadblock.zip (24.0 KB, 152 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-06-2010, 03:15 PM
Kaosvf Kaosvf is offline
 
Join Date: Feb 2010
Location: Italy - Verona
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the moment I can not do it as a product in the future but probably release it as such.
Reply With Quote
  #13  
Old 12-06-2010, 07:34 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to see this with an option added so that they only get nagged a few times a day instead of everytime a page loads.

I don't want to scare my users away but I would like to coax them into becoming a paying member to avoid all the ads.
Reply With Quote
  #14  
Old 12-06-2010, 07:45 PM
Kaosvf Kaosvf is offline
 
Join Date: Feb 2010
Location: Italy - Verona
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottct1 View Post
that they only get nagged a few times a day instead of everytime a page loads.
o_o
I never thought a that thing
Reply With Quote
  #15  
Old 12-06-2010, 08:06 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're not talking about a person, you are talking about at thing. Refer to it as such.

Quote:
Originally Posted by Kaosvf View Post
At the moment I can not do it as a product in the future but probably release it as such.
Reply With Quote
  #16  
Old 12-06-2010, 08:15 PM
Kaosvf Kaosvf is offline
 
Join Date: Feb 2010
Location: Italy - Verona
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, thx for the correction, thread fixed.
Reply With Quote
  #17  
Old 12-09-2010, 11:56 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Think you can modify it a bit more? To where people using adblock plus can't see links and get informed that it's because they're using the adblock?
Reply With Quote
  #18  
Old 12-10-2010, 11:06 AM
Kaosvf Kaosvf is offline
 
Join Date: Feb 2010
Location: Italy - Verona
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try to follow the Tip, however you can modify the code as you like because this is javascript
Reply With Quote
  #19  
Old 12-16-2010, 05:04 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to have this work so they only see the nag once per visit. (Or maybe have it only pop up on the main forums.php page...)

Any ideas on how to do that?
Reply With Quote
  #20  
Old 12-24-2010, 07:13 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottct1 View Post
I would like to have this work so they only see the nag once per visit. (Or maybe have it only pop up on the main forums.php page...)

Any ideas on how to do that?
You can ONLY make that happen with two ways.

Either you need to track the user via cookie or user account.

The user account your guaranteed to be able to nag X times.

With cookies it's tough. Because if they clear them often then you have NO control over X nag times.

So you could run this based off adding a cookie
Reply With Quote
  #21  
Old 12-24-2010, 05:46 PM
Razz Razz is offline
 
Join Date: Dec 2001
Location: UK
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Adblock users can block antiadblock.js to render this useless.
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 09:16 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.04571 seconds
  • Memory Usage 2,330KB
  • 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
  • (6)bbcode_html
  • (3)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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