WordPress.org

Ready to get started?Download WordPress

Forums

Thank You Counter Button
Modify the counter added number (3 posts)

  1. nicolaspf
    Member
    Posted 1 year ago #

    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/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. nicolaspf
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic