Jump to content

Download: (EJ33) ad block Blocker


Poison Light

Recommended Posts

  • Replies 89
  • Created
  • Last Reply
Posted

one question, i wan to track ad blocking, so i wonder where in your code should i add some analytics calls?
something like events: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

the JS call is:

_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

Posted

not really sure, but i want to have that called only if the users has adblock enabled, maybe just MAYBE along with the user agent to make some stats...dunno just an idea

Posted

i will think about it, its not THAT important it was for tracking ppl blocking ads with analytics :)




Okay, but if you want you can send me a pm to intergate it in my hook.
Im off now :P
Posted

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)




Edgar, when you say Hook Automatic Disabled for Bots. Does that mean it automatic Disabled for Guest user too? Because I notice that IPBoard use Bot Group as a Guest. I'm using Bot Group Hook that specify a group for Bot, so I can use use the Exclude Usergroup Exception. But still wondering if this Mod use the same group for Bots and Guest.
Posted

If that is true. I think I rather just have the Group Exception there. I can just use Group Bot Hook and add to the exception. This way the hook will not disabled for both Guest and Bot at the same time.

Hope this make sense, thanks.

Posted

now that you ask i can not find references for bot or google in the sources, maybe its disabled for guests...




isset( $result['uagent_type'] ) && $result['uagent_type'] == 'search' && $this->settings['spider_active']

Posted

my users are fast... check this Edgar ;)



+ greasemonkey


+ function removeJS(a)

{

var elmDeleted = document.getElementById("confirmOverlay");

elmDeleted.parentNode.removeChild(elmDeleted);

}


// Wait until the page is fully loaded

window.addEventListener( 'load', function( e ) {


// Remove annoying popups

removeJS('none');


},false);

Posted

my users are fast... check this Edgar ;)





+ greasemonkey


+ function removeJS(a)

{

var elmDeleted = document.getElementById("confirmOverlay");

elmDeleted.parentNode.removeChild(elmDeleted);

}


// Wait until the page is fully loaded

window.addEventListener( 'load', function( e ) {


// Remove annoying popups

removeJS('none');


},false);




Lol i see.
I can do some extra checks :P
Anyway i added an extra check for the search engine bots so i will update the hook soon.
Someone suggestions? :P
Posted

if i were really mad i would ban them, how ever i think that maybe the confirmOverlay div could be named dinamycally with, lets say Date(milliseconds) or some dinamic/random string... that would make their work a bit harder...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...