Poison Light Posted May 4, 2012 Posted May 4, 2012 File Name: (EJ33) Ad block BlockerFile Submitter: EdgarJFile Submitted: 04 May 2012File Category: Hooks and Plugins With this hook you can show users who are using an ad blocker extension a message or you can block them and redirect them to an intructions page or deny page. Tested with IE, Firefox, Chrome and Opera. (5 different ad blockers). Settings: - Enable / Disable - Popup Title - Popup Message - OK / NOT OK Button - Redirect to a page (Instructions Message or Deny Message) / Only nag screen - exclude specific groups - Show the popup only one time in xx minutes Leave a reply in the support topic if you have suggestions / ideas for the next version or if have found an undetected ad blocker.(Note: The redirect option is disabled in the demo. It is just a nag screen!)For the users who updating the hook. don't forget to overwrite the JS FilesClick here to download this file
Luis Manson Posted May 4, 2012 Posted May 4, 2012 Hello, i have some questions what happens when the user clicks the ok or not ok buttons? lets say im a user with adblock, i see the popup message...if i press ok i see the instructions and if i click NO i will get a deny? can i also specify active users? what if this is google bot or something like that?
Poison Light Posted May 4, 2012 Author Posted May 4, 2012 I have tested it with bots but i can make some extra script so the hook is disabled for bots. If they press on the ok button they will redirected to a instructions page to turn it off, else they will redirected to a deny. But if you want i can make some extra settings so its only a nag screen
Luis Manson Posted May 4, 2012 Posted May 4, 2012 yeah, a nag screen would be GREAT, i will buy this i hope it likes to adsense
Poison Light Posted May 4, 2012 Author Posted May 4, 2012 Ok Maybe i will add some useful settings tonight but else tomorrow. So requests and suggestions welcome :)
Kandice Posted May 5, 2012 Posted May 5, 2012 Hi, I was going to buy this. But can you add in a Group Exception? Example, Admin, Mods, VIP Members, Bots will bypass the block. Especially the bots. I don't want the message popup for them making my site cannot be crawl.
surinp3 Posted May 5, 2012 Posted May 5, 2012 Also I have some conflict with the pop-out for notifications, PMs and profile on the top right on the pages. They do not popout, a new page loads.
Aussie Cable Posted May 5, 2012 Posted May 5, 2012 Thank-you for this mod, I am going to implement this on my site. I would like to have group permissions exception added as Kandice has suggested. Again, thanks for this great mod.
Divine Forces Posted May 5, 2012 Posted May 5, 2012 Few Suggestions: 1. Exception list - I know a few users who I'd like to be able to add manually to an exception list for this modification. - I think this one's very important. 2. Perhaps logging? Some form of feature that shows you which users are blocking adverts? 3. Have a setting so that Instead of showing the nag popup every time they visit, perhaps only show it once every hour, and for the rest of the time allow them to browse normally? I wouldn't want to give users a complete ultimatum of turn off adblock or leave, i'd just want to pester them every hour or so to turn it off.
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Some good suggestions. Maybe i'll add them today :)
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Also I have some conflict with the pop-out for notifications, PMs and profile on the top right on the pages. They do not popout, a new page loads. Which skin do you use? This is a jQuery problem but i added the jQuery noConflict. Do you use other script on your site with jQuery?
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Ok i think add the following things today: - Hook automatic disabled for Bots - Options to exclude usergroups. - Option to show the popup one time in xx minutes - Option to disable the redirect (So just a nag screen)
Aussie Cable Posted May 5, 2012 Posted May 5, 2012 Ok i think add the following things today: - Hook automatic disabled for Bots - Options to exclude usergroups. - Option to show the popup one time in xx minutes - Option to disable the redirect (So just a nag screen) Nice Looking forward to this!
Luis Manson Posted May 5, 2012 Posted May 5, 2012 Hi, i dont want to make your life harder, but this is what i would like...not sure if its possible Ok i think add the following things today: - Hook automatic disabled for Bots maybe with an ACP field where we could add user-agents/regex... - Option to disable the redirect (So just a nag screen) something like this maybe: a message like the one from (IPT33) Validating Message 1.0.0 or this one from[VN32] Sticky Message 1.1
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Maybe later im just done with the update (: (1.0.1) Maybe i will add it in 1.0.2. Updated in 15 minutes. Edit: Updated.
Divine Forces Posted May 5, 2012 Posted May 5, 2012 Does this work on 3.2? :S Doesn't appear to work for me.
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Does this work on 3.2? :S Doesn't appear to work for me. Let me test again. It was working yesterday for me. Are you talking about 1.0 or 1.0.1?
Luis Manson Posted May 5, 2012 Posted May 5, 2012 Also I have some conflict with the pop-out for notifications, PMs and profile on the top right on the pages. They do not popout, a new page loads. Which skin do you use? This is a jQuery problem but i added the jQuery noConflict. Do you use other script on your site with jQuery?i had to disable it, same hereuser profile drop down does not popup, it just take you to the profile...IP.Content created drop-down menu also does the same...it wont drop down, just take you to the link of the main item i just saw in the JS console "unterminated string..." in the message var... after a bit of playing i removed a carriage return from the popup message option and fixed all the problems... surinp3, please check that i will try to reproduce again and see if it crashes again... and post the failing code
Luis Manson Posted May 5, 2012 Posted May 5, 2012 unterminated string literal Line 1563 'message' : 'Hemos detectado que estás bloqueando las publicidades en tu navegad... offending source: $.confirm({ 'title' : 'Bloqueo de publicidad activo', 'message' : 'Hemos detectado que estás bloqueando las publicidades en tu navegador Si deseas puedes ayudarnos desactivando esta funcion, ya nos mantenemos gracias a las ganancias de la publicidad. Gracias!!', 'redirect' : '0', 'buttons' : { to reproduce this, after "en tu navegador" y just placed a carriage return (enter) to make new line in the text displayed to the user...the fix to achieve the same was to use a BR tag instead of a normal carriage return
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Hello luis, Ill fix it as soon as possible. need to gonna go now.
Luis Manson Posted May 5, 2012 Posted May 5, 2012 its ok, not sure if you need to fix this, make a warning or just place an RTF editor there...
Divine Forces Posted May 5, 2012 Posted May 5, 2012 Let me test again. It was working yesterday for me. Are you talking about 1.0 or 1.0.1? Latest copy.
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 A RTF Editor is a good idea. I will add that :smile: Latest copy. The problem is the you used enters in your popup message. So deleted the new lines. I have fixed this for now and will update it later.
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Thanks for the heads up Luis. Its fixed now. But i will update the fix later. First need to find the problem with 3.2 :tongue: i have added some functionality so you can use all. including html, images etc.
Poison Light Posted May 5, 2012 Author Posted May 5, 2012 Sorry for the many updates but the bug is fixed :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.