View Full Version : Miscellaneous Hacks - [tk] Unblock
hambil
03-04-2009, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=201284&highlight=Paypal).
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 (https://vborg.vbsupport.ru/showthread.php?t=152931&highlight=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 (https://vborg.vbsupport.ru/member.php?u=53016) $50
Niber (https://vborg.vbsupport.ru/member.php?u=161782) $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
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
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
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.
bhanuprasad1981
03-06-2009, 05:44 AM
maybe a simple message will be nice :D
" hello Guest many features has been disabled for you on this site since you are using ad blocking script/ plugin"
hambil
03-06-2009, 05:52 AM
I think a less aggressive option is also a good idea, and have added it to the list. It would work (potentially well) with the paypal donation integration.
hambil
03-06-2009, 06:00 AM
maybe a simple message will be nice :D
" hello Guest many features has been disabled for you on this site since you are using ad blocking script/ plugin"
Something like that already exists Limited Guest Viewing -- Motivate Guests to Register (https://vborg.vbsupport.ru/showthread.php?t=201563). But I will look into integrating with it so this mod can enable or disable it based on ad blocking.
hscorp
03-06-2009, 12:37 PM
nice code man
also i need it to site can u tell me a source to code it by my self to my site? or any lil tips?
tansu
03-06-2009, 01:33 PM
It says "Please disable adblock " but I dont have an adblock..
Sugoi na
03-06-2009, 02:10 PM
It says "Please disable adblock " but I dont have an adblock..
Your browser does if your computer doesn't.
hambil
03-06-2009, 03:06 PM
Update with may new and requested features.
quasan
03-06-2009, 04:26 PM
mmh doesn't work for me, because of a js-error
missing ; before statement
aab_div.innerHTML='<table class....
hambil
03-06-2009, 06:14 PM
What browser?
hambil
03-06-2009, 06:18 PM
And did you change the default messages? If there are errors in your html in the messages it could cause problems.
hambil
03-06-2009, 06:29 PM
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.
Cybertims
03-06-2009, 08:26 PM
it's calling adframe.js which doesnt exist.....
tansu
03-06-2009, 08:29 PM
Your browser does if your computer doesn't.
Nope, I am very against to adblockers...
hambil
03-06-2009, 08:43 PM
it's calling adframe.js which doesnt exist.....
AH CRAP! How did I forget that!? :eek:
It's corrected now. Thank you!
quasan
03-07-2009, 11:22 AM
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
hambil
03-07-2009, 11:33 AM
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.
Doug Nelson
03-08-2009, 10:43 PM
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).
hambil
03-09-2009, 12:13 AM
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.
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?
hambil
03-09-2009, 12:48 AM
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.
gmerin
03-09-2009, 01:13 AM
I'd like my users to stay; this will cause them to leave.
I'd like my users to stay; this will cause them to leave.
stop hating he made this in his free time for other people to use so be grateful there are people like him
I just installed thanks for this hopefully people will start clicking :)
in the future is it possible you could do basically the exact same as this but still let guests browse? - just an idea
edit: its not working for some reason but I think it might be to do with ad block not working, I blocked the google adsense iframe but nothing changed, am I meant to do something with templateedits-antiadblock.xml?
also is the js file definately meant to be in the forums root.
hambil
03-09-2009, 03:17 AM
stop hating he made this in his free time for other people to use so be grateful there are people like him
I just installed thanks for this hopefully people will start clicking :)
in the future is it possible you could do basically the exact same as this but still let guests browse? - just an idea
edit: its not working for some reason but I think it might be to do with ad block not working, I blocked the google adsense iframe but nothing changed, am I meant to do something with templateedits-antiadblock.xml?
also is the js file definately meant to be in the forums root.
The js file needs to be in forum root, yes. It's just a harmless empty file.
You need to have the variable $blockit at the bottom of your navbar template. If you have the Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931&highlight=Template+Modification+System) mods installed before you install this product, it will be done automatically for you. Otherwise you can add it manually, or installed the Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931&highlight=Template+Modification+System) and then use it to import the templateedits-antiadblock.xml file. I hope this helps.
Doug Nelson
03-09-2009, 04:29 AM
Glad it's a bug (ie: fixable) and not something in my configuration.
Quick question: does this follow the conventions of vb's secondary usergroup handling? That is, if I have it enabled for one primary group, but a member also belongs to a secondary group with this disabled, will it then be disabled for that user? I hope so, as I currently block ads for paying users via a secondary usergroup, so I'd like those same paying members to have this plugin disabled for them.
hambil
03-10-2009, 02:44 AM
Glad it's a bug (ie: fixable) and not something in my configuration.
Quick question: does this follow the conventions of vb's secondary usergroup handling? That is, if I have it enabled for one primary group, but a member also belongs to a secondary group with this disabled, will it then be disabled for that user? I hope so, as I currently block ads for paying users via a secondary usergroup, so I'd like those same paying members to have this plugin disabled for them.
It just checks the usergroup permissions as reported by vbulletin, so I would assume it should work just like anything else.
Doug Nelson
03-11-2009, 07:04 PM
Hmmm - tested it - It does not work guests/logged out users. I will get that fixed. Thanks.
Any progress on this?
hambil
03-11-2009, 07:42 PM
I'm juggling three mods all in need of an update release. But it will be done within the next 24 hours I'd guess.
Doug Nelson
03-12-2009, 12:13 AM
I'm juggling three mods all in need of an update release. But it will be done within the next 24 hours I'd guess.
Cool. Thank you for the time and effort you're putting into this excellent mod.
joopster
03-13-2009, 12:40 AM
Doesn't work for me 3.8
Have the .js in the right spot and usergroup permissions set.
hambil
03-13-2009, 03:06 AM
What site?
Doug Nelson
03-15-2009, 03:34 PM
I'm juggling three mods all in need of an update release. But it will be done within the next 24 hours I'd guess.
Any progress on this? I don't mean to nag, and I see you've been busy with other mods.
hambil
03-15-2009, 03:57 PM
Any progress on this? I don't mean to nag, and I see you've been busy with other mods.
Thanks for the reminder - I need to rebrand it anyway - so I'll work on it now.
Blackhat
03-15-2009, 05:01 PM
how does it detect an adblocker ?
hambil
03-15-2009, 11:37 PM
how does it detect an adblocker ?
Via a javascript trick.
hambil
03-16-2009, 01:32 AM
Any progress on this?
I'm not sure what I was thinking when I first answered this - but I just tried setting the permissions for the Unregistered / Not Logged In usergroup to fullblock and partial block and it works fine (blocking guests properly).
hambil
03-16-2009, 01:44 AM
Just a re-branding update - no other changes.
djwins
03-16-2009, 08:36 AM
What about displaying a message (that we can customize) that appears where the (blocked) ads normally appear? This would be less of a turn off to users, yet would help us get the message across that we would appreciate turning off their ad blocker.
hambil
03-16-2009, 08:59 AM
More complex placement of the message in 'partial block' mod is a good idea, and I will work on it. Most likely, if I do implement what you ask it will only be for the built in vBulletin ad system, because I would need a way to reliably detect the places ads used to be.
Doug Nelson
03-16-2009, 01:27 PM
I'm not sure what I was thinking when I first answered this - but I just tried setting the permissions for the Unregistered / Not Logged In usergroup to fullblock and partial block and it works fine (blocking guests properly).
Then would you have any other ideas why it's not blocking me when I test it? Try it yourself and let me know if it's blocking you. http://www.retouchpro.com/forums
hambil
03-16-2009, 01:40 PM
I'm not sure what I was thinking when I first answered this - but I just tried setting the permissions for the Unregistered / Not Logged In usergroup to fullblock and partial block and it works fine (blocking guests properly).
Can you PM or email me log info so I can take a closer look?
Doug Nelson
03-16-2009, 03:44 PM
I suspect it's vbseo causing the problem, since your plugin works on sections of my site where vbseo doesn't operate. I had to uninstall, but I understand you can't be expected to take all configurations into consideration.
hambil
03-16-2009, 06:19 PM
Well, if I know it's an SEO problem that helps. I can look into it with that in mind. Thanks.
Vitaly
03-16-2009, 06:39 PM
amazing mod
Detomah
03-18-2009, 07:08 PM
Tagged for now. Definately interested, but will see how things go with possible vbseo compatibility before installing, having read what Doug said earlier in the thread.
hambil
03-18-2009, 07:22 PM
Thanks to a generous donation this mod has found it's way back toward the top of my pile :)
I plan to check out possible vbseo issues, as well as strength the blocking via a few methods I've been playing with.
Doug Nelson
03-19-2009, 06:12 AM
And statistics? :)
hambil
03-19-2009, 07:00 AM
Yes, and stats :p
This is really pretty interesting. I've been playing with all kinds of ideas, and found a few that seem to work well. Of course, for a skilled user it's always a losing battle, but we can make it hard enough to not be worth it for joe/jane user I think.
hambil
03-20-2009, 09:37 PM
Okay, this has gotten very interesting. I've stumbled on something that seems to be working, I'm just getting out the kinks.
The long and short is, I piggy back on the vbulletin_global.js javascript file to re-insert the removed google ads via ajax. This only works if you are using vbulletin's built in adsense support. But, as far as I can tell it's unblockable (without shutting down all javascript and ajax for the entire forum) - even using noscript.
Doug Nelson
03-21-2009, 04:23 AM
Now that's seriously cool. And a much more PC solution than blocking users.
hambil
03-21-2009, 08:23 AM
Now that's seriously cool. And a much more PC solution than blocking users.
Yeah, except it doesn't work *sigh*
lol
Back to the drawing board. I'm learning a lot about ad blocking software at least. :p
matkus
04-14-2009, 10:06 AM
Looks like great thing, but i have one suggestion : Could it be made so i could translate messages? My forum is multilanguage and i'd like to show those messages in language selected by user.
Vinyljunky
04-14-2009, 01:49 PM
I use the AWC Donation mod (https://vborg.vbsupport.ru/showthread.php?t=177437) :up: Is it possible to get this mod to support it? :)
Thanks
VJ
hambil
04-14-2009, 02:04 PM
I use the AWC Donation mod (https://vborg.vbsupport.ru/showthread.php?t=177437) :up: Is it possible to get this mod to support it? :)
Thanks
VJ
Sounds like I good idea, I'll add it to the list.
hambil
04-14-2009, 02:05 PM
Looks like great thing, but i have one suggestion : Could it be made so i could translate messages? My forum is multilanguage and i'd like to show those messages in language selected by user.
Hmmmm - possibly. I'll see if I can think of an easy way to do this.
Well I do not work, I followed the installation instructions but not working, no error message, simply keep out the banners, opt for this option because I do not want to install another hack, someone can help me, thanks.
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.
Hornstar
04-17-2009, 12:53 AM
Interesting, but I think I would wait for the stats part of the mod before I enable this lol. I could just imagine the problems now lol.
hambil
04-17-2009, 02:55 AM
Well I do not work, I followed the installation instructions but not working, no error message, simply keep out the banners, opt for this option because I do not want to install another hack, someone can help me, thanks.
Well, all the Template Modification System does for this mod is place the $blockit variable where I said lol - it's kind of overkill TBH.
So if that's not working for you there is some other issue. Can you copy and paste the edit you made so I can look at it?
vauge
04-19-2009, 07:01 PM
Interesting, but I think I would wait for the stats part of the mod before I enable this lol. I could just imagine the problems now lol.
Indeed. Tagged and subscribed. :)
MrEyes
04-28-2009, 07:21 AM
Indeed. Tagged and subscribed. :)
Ditto
I would like to be able to silently see what is going on before taking any action
Jah-Hools
05-11-2009, 01:03 PM
The latest version of Kaspersky anti virus software comes with separate banner blocker and pop up blocker options. Both are set to "on" as default. Will this be able to detect Kaspersky anti virus software too?
Many thanks..
In the past I have taken monthly banner delivery stats and monthly Google Analytics page view stats then compared them. The discrepancy betwen them gives the number of page views lost to ad blocker software.. (That is my simplistic view anyway..)
I did this a few years ago and the results weren't too alarming...
I need to try it again soon to get an updated overview of ad blocker impact on my forum..
Nice idea for a mod BTW.. Just what I was looking for..
Gladius2007
05-12-2009, 04:52 PM
Awesome mod idea... but I'd want to check the stats initially as well, before going all the way with the blocking. Keeping close tabs on this - I hope it gets implemented soon!
Gladius2007
06-11-2009, 08:09 PM
Any chance of stats making it in?
Vitaly
06-26-2009, 08:20 PM
Hi, Hambil!
I've tested your mod at my debug site. There'are 2 problems:
1. It conflicts with VBSEO skin in "partial block" mode.
2. HTML is hardcoded, instead of template. Inconvenient to edit.
About (1) - you could replace all kinds of DOM operations with just "document.write('your_text')". That should work with all skins.
mc0676
07-10-2009, 05:21 PM
Why i can see this after installation ?
I've the standard template.
www.vwgolfcommunity.com
TheInsaneManiac
12-17-2009, 05:27 AM
Partial blocking doesn't work at all for me.
Taurus1
12-25-2009, 09:51 AM
Same thing here! Partial blocking does not work at all.
TheInsaneManiac
12-25-2009, 10:08 AM
Same thing here! Partial blocking does not work at all.
I actually support my modification and I got partial blocking to work. So check it out:
https://vborg.vbsupport.ru/showthread.php?t=229984
Ghostt
04-14-2011, 03:51 PM
I actually support my modification and I got partial blocking to work. So check it out:
https://vborg.vbsupport.ru/showthread.php?t=229984
your addon dont work anymore!! please fix
TheLastSuperman
12-02-2011, 07:31 PM
Moved to graveyard per authors request - https://vborg.vbsupport.ru/showthread.php?t=274938
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.