WordPress.org

Support

Support » Plugins and Hacks » Thank You Counter Button » Modify the counter added number

Modify the counter added number

  • nicolaspf

    @nicolaspf

    Hi! First of all thanks for such a great plugin 🙂
    I’m writing because I would like to know how to modify the number that is added for every click on the button.

    This means: when someone clicks the button, it adds 1 number, but I need to sum 50 ‘points’ per click. How could I do this?

    Thanks for your time 🙂

    http://wordpress.org/extend/plugins/thanks-you-counter-button/

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

    @shinephp

    Hi,

    It is possible just via modification of source code. Open thankyou_lib.php file, go to line # 243

    $query = "update $thanksCountersTable set quant=quant+1, updated=CURRENT_TIMESTAMP

    and change 1 there to number you wish, e.g. 50.

    Thanks a lot Vladimir =D
    I’m ging to try this solution and let you know how it works 🙂 Best regards!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify the counter added number’ is closed to new replies.
Skip to toolbar