WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
Recalculate Scores (3 posts)

  1. harmenzon
    Member
    Posted 3 months ago #

    Hello. Thanks for the great plugin!

    Question.. I am trying to automate the match results process.
    I created a php script which will automatically update the match score in the database ('pool_wp_matches').
    Is there a way that I can extent my php script to automatically run the 'recalculate scores' process?

    Thanks in advance!

    https://wordpress.org/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 3 months ago #

    The calculation script is called using AJAX requests (see the admin.js for information on the variables that are passed and returned). So my guess is that you should be able to call these from a PHP script. One thing to bear in mind is the execution time for each step in the calculation; a (sub) step has to be completely finished before the next may start.

    But I haven't done it myself, so maybe this is not possible at all.

  3. harmenzon
    Member
    Posted 3 months ago #

    Thanks for your quick response.
    I had a look at the file, but it will take me a lot of time to understand the coding.
    I was hoping that I could somehow simulate the onclick button event 'FootballPoolAdmin.calculate()'.
    Anyways, thanks again. I guess I just have to manually press the button evry morning. :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.