WordPress.org

Forums

BlockAlyzer - Adblock counter
[resolved] WordPress Update? (27 posts)

  1. olivertwist2007
    Member
    Posted 1 year ago #

    Seems the new wordpress update is making your plugin not work properly - it's showing my custom message and the ad. below the message - please get this fixed asap please! Great plugin! :)

    http://wordpress.org/plugins/blockalyzer-adblock-counter/

  2. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    I checked this on my environments and it works as expected. Please check your custom code or environment, clear caches, etc.

  3. olivertwist2007
    Member
    Posted 1 year ago #

    Still not working and trying every single thing you mentioned on your webpage. Shows up with or without ad block... please assist me further - thanks.

  4. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    do I understand you correctly and you built custom code around the plugin? In this case, here is not the place to ask for help unless there is a problem with the raw plugin.
    If you are referring to the article I wrote on http://webgilde.com/en/anti-adblock/, please have a look at the recent comments or use the comment or contact field there.

    Thanks
    Thomas

  5. olivertwist2007
    Member
    Posted 1 year ago #

    I've tried the javascript code and php code - both to document.write / echo out "ad block" detected message and they either don't display the message or they display the message to both ad block and non block visitors. I feel it's to do with the raw plugin.

  6. olivertwist2007
    Member
    Posted 1 year ago #

    And yes I've used that page too and tried the comments before I messaged you on here.

  7. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    did you use a timeout like in https://gist.github.com/webzunft/9078689?

  8. olivertwist2007
    Member
    Posted 1 year ago #

    Yes I did and that in the widget that didn't set out correctly with document.write

  9. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    On which domain is this running?

  10. olivertwist2007
    Member
    Posted 1 year ago #

    http://www.rallyaround.co.uk

    It's not on there right now because I'm keeping it off until it's properly working.

    I'm using the Enhanced Text Plugin which allows Javascript / PHP / Shortcodes etc and just need it to show up before Google Ads etc. and have tried it in the plugin again, functions etc but no luck!

  11. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    You should use the code from gist in a theme file like header.php, single, php, etc. Also try to enable WP_DEBUG and check js error in Firebug. Maybe there was some other js broken before.

    what I can test is set up a clean WordPress installation with version 3.8.1, install BlockAlyzer and put the code in any template file and test it with Firefox and AdBlock enabled. If this works I am not able to help you here.

  12. olivertwist2007
    Member
    Posted 1 year ago #

    It's still not working and exhausting out many options - please assist me further. thanks :)

  13. olivertwist2007
    Member
    Posted 1 year ago #

    Still trying even with functions.php and no luck - still shows adblock message on ie and google even with ie still showing adblock and advertisements...

  14. olivertwist2007
    Member
    Posted 1 year ago #

    There is still this issue to resolve, have tried it on a local wordpress site and it's still not showing anything!

    The coding I'm using is the following:

    <?php 
    
    if ( defined('BA_ADBLOCK_ENABLED') && BA_ADBLOCK_ENABLED == true )
    
    {
    echo "no adblock please";
    }
    ?>

    I'm still adamant it's the wordpress update that's the issue - please look further into this so I can start to use this again please. Thanks.

  15. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    I checked it with WP 3.9 and found no bigger problem. There is a slight issue with saving the counter method though. Go to Settings > BlockAlyzer and save the settings (again). At least one counting method needs to be active.

    If this doesn’t do the trick, please check, if the Cookie "BaAdBlock" is set in your browser to "enabled" if AdBlock is on.

    If both is true, please come back here.

  16. olivertwist2007
    Member
    Posted 1 year ago #

    I've only got the Stats Method which is enabled and Benchmark showing up in my Block=Alyzer settings but BaAdBlock is set to enabled.

  17. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    so the Cookie is set to enabled? Please have a look at file blockalyzer.php and function load_adblock_constant() and check every condition there. What is working?

  18. olivertwist2007
    Member
    Posted 1 year ago #

    Going to sound like a right noob here but how do you check every condition there is? I've tried doing an echo "check passed"; but it doesn't like that due to single if / elseif statement.

  19. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    sure, you can just wrap it around with {}
    e.g.

    if ($_COOKIE['BaAdBlock'] === 'disabled'){
    define('BA_ADBLOCK_ENABLED', false);
    echo "constant defined false"
    }
  20. olivertwist2007
    Member
    Posted 1 year ago #

    Well - it seems that it shows the "constant defined" message on ad block detected but even on using ie which doesn't have adblock on it but still shows the message up.

  21. olivertwist2007
    Member
    Posted 1 year ago #

    The above was showing in the adblock enabled part.

  22. Thomas Maier
    Member
    Plugin Author

    Posted 1 year ago #

    I don’t understand
    So you can verify that the BlockAlyzer Cookie was set to true in IE even without any AdBlocker there?

  23. olivertwist2007
    Member
    Posted 1 year ago #

    It's showing up with the constant cookie / enabled

  24. olivertwist2007
    Member
    Posted 1 year ago #

    And yes - I can verify that on the Cookie / Adblock Enabled as I see the constant message on white page then after one second it changes to my site and still shows the message- even no existing adblock.

  25. iSaumya
    Member
    Posted 8 months ago #

    Is this plugin left by the authour? Looks like it hasnt been updated since wp 3.8.3. I'm on v4 planning to go with even 4.1 also when it comes out. So should I use this plugin?

  26. Thomas Maier
    Member
    Plugin Author

    Posted 8 months ago #

    NO, I am still here. Just nothing to do here. The plugin runs smoothly on the many websites I have and all of them use the latest version of WP

  27. iSaumya
    Member
    Posted 8 months ago #

    Oh the compatibility of the plugin shows upto 3.8.3?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BlockAlyzer - Adblock counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.