• Hi AntoineH,

    first of all, great plugin! Provided great fun for me and my friends for this WorldCup.

    We want to increase the points players will gain during the knockout stage. We want to do this so that players at the bottom rank could make a comeback.

    If I change the scoring options now and let the system recalculate, new scoring options will applied to all previous matches. Is that a way to do this without affecting the previous scores? or apply different scoring options for different match types?

    Thanks and appreciated!

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

Viewing 1 replies (of 1 total)
  • Plugin Author AntoineH

    (@antoineh)

    You are right about the calculation. The new scoring options will also be applied to previous matches.
    And unfortunately for you there is no easy way to change the plugin the way you want. There is no hook to extend the plugin on this part.

    This means that if you want to change this, you would have to change the plugin’s code.

    Here are my thoughts (not tested and not guaranteed to work):
    You’ll have to change step 3 in the calculation class (admin folder) to differentiate the scoring for different match types. You can change the query to also filter for match IDs (= source_id in the scorehistory table) and run that query twice with different points and different match ID sets.
    And you would have to change the calc_score() method in the Football_Pool_Pool class.

    It sounds doable, but that also depends on your PHP and SQL knowledge.

Viewing 1 replies (of 1 total)

The topic ‘increasing points gained during knockout stage’ is closed to new replies.