Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[tk] Unblock Details »»
[tk] Unblock
Version: 1.5.1, by hambil hambil is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.1 Rating:
Released: 03-04-2009 Last Update: 03-15-2009 Installs: 34
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.



This mod forces users to disable ad blocking software for your site in order to view it. It gives them a nice message, in the style of your board.

Features
  • Blocks several common ad blockers, including AdBlock and AdBlock Plus for Firefox.
  • Uses your forums style and colors.
  • All messages can be customized.
  • Supports both full and partial blocking.
  • Integrates with Cyb - PayPal Donate.
  • Customizable by usergroup.

Upgrade
Uninstall the product-antiadblock.xml file from your admincp product manager, then follow the install instructions bellow.

Install
Unzip [tk] Unblock_1.5.1.zip
Upload the files in the upload directory to your forum folder.
Import the product-antiadblock.xml file from your admincp product manager.
By default all usergroups are set to 'no blocking'. Edit your usergroups to set them to the desired type of blocking (full or partial).

Uninstall
Uninstall the product-antiadblock.xml file from your admincp product manager.

Dependencies
This mod makes use of the Template Modification System.

To use it, install the Template Modification System first, then this mod.

Just in case you don't do that, and decide you want to after the fact, I've included a seperate templateedits-antiadblock.xml file you can import using the Template Modification System.

However, you can also manually add the $blockit variable to the bottom of the navbar, just above $ad_location[ad_navbar_below] if you wish not to use the Template Modification System.

Integrating with Cyb - PayPal Donate
When activated, and if the Cyb - PayPal Donate mod is detected, a customizable donate message and donate link are added to the ad blocking message box. Cyb - PayPal Donate can be configured to move a user to a new usergroup when they make a donation. Enable this ability, and move them to a group that has blocking set to 'no blocking'.

Donations (Thank you!):
Vitaly $50
Niber $30

Show Your Support

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

Comments
  #22  
Old 03-06-2009, 06:29 PM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think in the next version I'll install some validation and checks on the input HTML to make sure it won't cause problems.
Reply With Quote
  #23  
Old 03-06-2009, 08:26 PM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's calling adframe.js which doesnt exist.....
Reply With Quote
  #24  
Old 03-06-2009, 08:29 PM
tansu's Avatar
tansu tansu is offline
 
Join Date: Apr 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sugoi na View Post
Your browser does if your computer doesn't.
Nope, I am very against to adblockers...
Reply With Quote
  #25  
Old 03-06-2009, 08:43 PM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybertims View Post
it's calling adframe.js which doesnt exist.....
AH CRAP! How did I forget that!?

It's corrected now. Thank you!
Reply With Quote
  #26  
Old 03-07-2009, 11:22 AM
quasan quasan is offline
 
Join Date: Jan 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hambil View Post
And did you change the default messages? If there are errors in your html in the messages it could cause problems.
yep now it works, but your script is very picky about the html. I wanted to include an image in the "Partial Site Block Message"-Box, but everytime I tried, the js error occured. In the "Disable Instructions"-Box the html for the image worked
Reply With Quote
  #27  
Old 03-07-2009, 11:33 AM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by quasan View Post
yep now it works, but your script is very picky about the html. I wanted to include an image in the "Partial Site Block Message"-Box, but everytime I tried, the js error occured. In the "Disable Instructions"-Box the html for the image worked
Yeah, I've been thinking on this. It's a rather tricky issue actually, but I have some ideas. Glad you got it working.
Reply With Quote
  #28  
Old 03-08-2009, 10:43 PM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this, enabled it for unregistered users, logged out, turned on adblock plus, and noticed no difference. It still blocked the ads, but I saw no sign this plugin was functioning.

I uploaded the .js file to the forum directory and manually added the variable to the navbar template. I'm using vb3.8.1 with vbseo (that's the only variable I can think of that might interfere).
Reply With Quote
  #29  
Old 03-09-2009, 12:13 AM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doug Nelson View Post
I installed this, enabled it for unregistered users, logged out, turned on adblock plus, and noticed no difference. It still blocked the ads, but I saw no sign this plugin was functioning.

I uploaded the .js file to the forum directory and manually added the variable to the navbar template. I'm using vb3.8.1 with vbseo (that's the only variable I can think of that might interfere).
I use Zoints, so I don't think SEO is an issue.

Hmmm - tested it - It does not work guests/logged out users. I will get that fixed. Thanks.
Reply With Quote
  #30  
Old 03-09-2009, 12:35 AM
Sp32 Sp32 is offline
 
Join Date: Sep 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it okay to install now? I think this mod is a great idea and want to know if it will work fine at this present time?
Reply With Quote
  #31  
Old 03-09-2009, 12:48 AM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works fine, just not for guests/logged out users. It doesn't cause an error, it just does nothing for them. That will be fixed sometime soon probably, so you can wait if you want, or upgrade.
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 12:02 AM.


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.05000 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (5)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
  • (4)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete