Football Pool
Recalculate Scores (3 posts)

  1. harmenzon
    Posted 2 years 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!


  2. AntoineH
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Football Pool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.