Kaosvf
12-04-2010, 10:00 PM
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:
<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:
<script type="text/javascript">
function DisableAdBlock() {
if ($('.AdSense').height() == 0)
alert("Please Disable AdBlock Plus");
}
$(DisableAdBlock);
</script>
Before this:
<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)
<div class="AdSense">
<!-- Advert code goes here -->
</div>
Tips:
-------------------------------------------------------------------
You can change this part of code as you prefer, it is javascript:
alert("Please Disable AdBlock Plus");
I suggest to redirect the user with AdBlock activated to another page immediately with this code:
location.href="usingadblock.html";
-------------------------------------------------------------------
Enjoy!
If you like it, please support me, click to mark as installed!
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:
<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:
<script type="text/javascript">
function DisableAdBlock() {
if ($('.AdSense').height() == 0)
alert("Please Disable AdBlock Plus");
}
$(DisableAdBlock);
</script>
Before this:
<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)
<div class="AdSense">
<!-- Advert code goes here -->
</div>
Tips:
-------------------------------------------------------------------
You can change this part of code as you prefer, it is javascript:
alert("Please Disable AdBlock Plus");
I suggest to redirect the user with AdBlock activated to another page immediately with this code:
location.href="usingadblock.html";
-------------------------------------------------------------------
Enjoy!
If you like it, please support me, click to mark as installed!