Title: Customizing Scoring Algorithm
Last modified: August 21, 2016

---

# Customizing Scoring Algorithm

 *  [lagdonkey](https://wordpress.org/support/users/lagdonkey/)
 * (@lagdonkey)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/)
 * Hello, I am currently working on adding a few custom changes to this plugin for
   a client, to introduce a few custom scoring enhancements.
 * Mainly, I am looking to award additional points for predicting the correct top
   4 seeds going into the 16 round. I’ve thoroughly gone through your plugin, and
   have managed to get the option fields added in the admin section, however I’m
   stuck on adding the actual options to the scoring calculation.
 * Where I’m looking, is in the process function in /admin/class-football-pool-admin-
   score-calculation.php. As a developer, I am well versed in PHP, but I’ve been
   staring at the code for several hours, and I just can’t make heads nor tails 
   of what I’d need to do to intergrate these changes.
 * [https://wordpress.org/plugins/football-pool/](https://wordpress.org/plugins/football-pool/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [predictionschallenge](https://wordpress.org/support/users/predictionschallenge/)
 * (@predictionschallenge)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/#post-4997884)
 * Do you mean the correct top four based on predictions made?
 * If not couldn’t you use the bonus question feature?
 * Or have I misunderstood what you’re asking? (Probably knowing me!)
 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/#post-4997934)
 * What predictionschallenge says: bonus questions is the easiest way to achieve
   this. You won’t have to do any programming.
 * Changing the score calculation is complex. I guess, but haven’t tested it, that
   you would have to define another score type and add an extra step to do your 
   custom calculations (also add 1 to the total number of steps in the admin.js 
   file to make sure the end of the calculation is reached). If the calculation 
   takes a lot of time, or there are a lot of users, you would have to break the
   step into sub steps to make sure no server timeouts will occur.
 *  Thread Starter [lagdonkey](https://wordpress.org/support/users/lagdonkey/)
 * (@lagdonkey)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/#post-4997942)
 * No, the question wouldn’t work. Essentially, my client wants it done automatically.
   Meaning, predictions are made, and once the 16 round hits, the top 4 seeds are
   determined (Much like hockey playoffs, except we only need the first 4 seeds).
 *  Thread Starter [lagdonkey](https://wordpress.org/support/users/lagdonkey/)
 * (@lagdonkey)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/#post-4997943)
 * Sorry hit enter too soon. Once the top 4 seeds are determined, we award additional
   points for predictions for the top 4 seeds. We also need to award additional 
   points for the predictions for teams that make the semi, quarter and finals, 
   but I feel like once I can get this part figured out, it’s clean sailing from
   there.
 * I appreciate the insight by the way 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customizing Scoring Algorithm’ is closed to new replies.

 * ![](https://ps.w.org/football-pool/assets/icon-256x256.png?rev=983880)
 * [Football Pool](https://wordpress.org/plugins/football-pool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/football-pool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/football-pool/)
 * [Active Topics](https://wordpress.org/support/plugin/football-pool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/football-pool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/football-pool/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [lagdonkey](https://wordpress.org/support/users/lagdonkey/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/customizing-scoring-algorithm/#post-4997943)
 * Status: not a support question