WordPress.org

Support

Support » Plugins and Hacks » Doesn't count

Doesn't count

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir Garagulya
    Participant

    @shinephp

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

    Hello!
    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!

    Plugin Author Vladimir Garagulya
    Participant

    @shinephp

    Hi,

    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>
    <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.

    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 )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn't count’ is closed to new replies.