Thank You Counter Button
Doesn't count (5 posts)

  1. qwertis
    Posted 3 years ago #

    I installed a plugin without an error but when i click the button, it does not count on every post..
    at some posts i can click the button and it count my click, but on some pages i can click all i want but i doesn't count anything
    What did i do wrong?
    Thank you


  2. Vladimir Garagulya
    Plugin Author

    Posted 3 years ago #

    If you still use this plugin, could you send link where it doesn't work?

  3. qwertis
    Posted 3 years ago #

    here does it not work on: http://code.markdereijer.nl/?p=211
    and on this page it does work: http://code.markdereijer.nl/?p=360
    It's a bid random..
    Thanks for your support!

  4. Vladimir Garagulya
    Plugin Author

    Posted 3 years ago #


    Compare source code of page with working button and page where button doesn't work.
    1st page contains JavaScript code needed to plugin for work

    <script type='text/javascript'>
    /* <![CDATA[ */
    var ThanksSettings = {"plugin_url":"http:\/\/code.markdereijer.nl\/wp-content\/plugins\/thanks-you-counter-button","ajax_nonce":"293d3636b0","button_image_url":"http:\/\/code.markdereijer.nl\/wp-content\/themes\/Code\/img\/leeg.png","button_image_glow_url":"http:\/\/code.markdereijer.nl\/wp-content\/themes\/Code\/img\/leeg.png"};
    /* ]]> */
    <script type='text/javascript' src='http://code.markdereijer.nl/wp-content/plugins/thanks-you-counter-button/thankyou.js?ver=3.4.2'></script>

    look just before

    <div id="footer">

    Not working page doesn't contain this JavaScript code. This is the reason.
    Open JavaScript console in the Google Chrome, you will see JavaScript errors. There are some errors related to the SyntaxHighligther at the working page also.

  5. qwertis
    Posted 3 years ago #

    The strange thing is that all the pages are generated from single.php.
    So my logic is that if one page doesn't work, all the pages should not work.

    I fixed some errors, but i guess not the ones that causes the problem.

    When i click the button i get "Uncaught ReferenceError: thankYouChangeButtonImage is not defined" in the JavaScript console.

    Do you know how to fix this? (exept from removing SyntaxHighligther )

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Thank You Counter Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.