Back to vBulletin 4.x Add-ons

Block AdBlock Plus (Kaos)
Mod Version: 1.00, by Kaosvf

vB Version: 4.x.x Rating: (1 vote - 5.00 average) Installs: 21
Released: 06 Dec 2010 Last Update: Never Downloads: 141
Not Supported Template Edits Additional Files  

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

File Type: %1$s antiadblock.zip (24.0 KB, 154 downloads)

Similar Mods

Board Optimization Adblock Alert vBulletin 3.7 Add-ons
Miscellaneous Hacks Nag Users Using Ad Block - Popup Alert For Adblock Users vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024