vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Block AdBlock Plus (Kaos) (https://vborg.vbsupport.ru/showthread.php?t=254736)

Kaosvf 12-04-2010 10:00 PM

Block AdBlock Plus (Kaos)
 
1 Attachment(s)
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!

rajubd 12-05-2010 09:26 PM

can it full block member viewing if they use adblocker?

lubbie 12-05-2010 09:54 PM

Tagged. Will take a look 2morrow. Thanks was looking a long time for something like that

Kaosvf 12-05-2010 09:56 PM

Quote:

Originally Posted by rajubd (Post 2129782)
can it full block member viewing if they use adblocker?

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="index.php";

OldSchoolDSL 12-05-2010 09:57 PM

You currently have this modification tagged.

I will be watching this one very closely http://www.sociallyuncensored.com/fo...ilies/w00t.gif

FreshFroot 12-06-2010 06:06 AM

Looks good, I know some sites that have this too.

Would you happen to make this mod for vB 3.8.x too?

Kaosvf 12-06-2010 06:09 AM

This mod works for all sites, forums, blogs, etc.
Follow the steps and will work for vB 3.8.x too. :)

lubbie 12-06-2010 02:15 PM

Works fine. the only Problem is, that u have to add this all the time u made an update/upgrade
And as we all know, this happens to often atm

Kaosvf 12-06-2010 02:42 PM

Usually when I do an upgrade these templates are not restored, so the changes remain.

rajubd 12-06-2010 02:49 PM

can you release it as product?


All times are GMT. The time now is 01:54 AM.

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.01720 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete