vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - [tk] Unblock (https://vborg.vbsupport.ru/showthread.php?t=207466)

hambil 03-04-2009 10:00 PM

[tk] Unblock
 
http://img23.imageshack.us/img23/1514/tkunblocklogo.gif

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

hambil 03-05-2009 08:38 PM

Reserved

maryx 03-05-2009 08:45 PM

Can this be used for the Firefox adblocker add-on?

hambil 03-05-2009 08:55 PM

Quote:

Originally Posted by maryx (Post 1761356)
Can this be used for the Firefox adblocker add-on?

Yes

Sugoi na 03-05-2009 09:08 PM

Neat modification. Great idea. This however may make some members not want to join & also, some members on a forum may not even know how to disable their ads.

You may want to think about including links to other sites that give guides to removing ads.

hambil 03-05-2009 09:14 PM

Quote:

Originally Posted by Sugoi na (Post 1761371)
some members on a forum may not even know how to disable their ads.

Good point. I'll add some text about how to disable the most common blockers for a single site only. BTW: It's a phrase, so you can change the phrase text on your own assuming you know how to do that.

Doug Nelson 03-06-2009 01:01 AM

I don't know if I'm prepared for the firestorm of complaints a plugin like this would generate for me, but I'd definitely find it helpful if it could display how many users it would block if turned on. That would give me a guestimate of the revenue I'm losing, and I could more easily calculate if it's worth the inevitable grief I'd get for turning it on.

hambil 03-06-2009 01:19 AM

Nice idea - collecting some stats. I'll add that. I'm also working on adding support to enable or disable by usergroup, and integration with Cyb - Paypal Donate (show a 'donate to re-enable adblock' link in the message).

petacat 03-06-2009 03:18 AM

Quote:

Originally Posted by hambil (Post 1761490)
Nice idea - collecting some stats. I'll add that. I'm also working on adding support to enable or disable by usergroup, and integration with Cyb - Paypal Donate (show a 'donate to re-enable adblock' link in the message).

I think that is a great idea. I will wait for that and then install, I think. Good work and thanks.
May I also suggest that you give some less "aggressive" options. There might be some good reasons to block popups but require display of inline ads.

Doug Nelson 03-06-2009 04:45 AM

The usergroup idea is great, having this only enabled for guests might actually drive up registration.

I also like the idea of a less aggressive option, perhaps not refusing entry to the site but just displaying a message only to adblock users.


All times are GMT. The time now is 09:18 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.01287 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)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