Support » Plugin: Football Pool » Help with rules of points

  • Hi we have three types of points that we would like to see if it’s possible to add.

    1st – Exact soccer (the plugin already does this)
    2nd – Toto score (the plugin does this also)
    3rd – Goal bonus can we have only two points instead of duplicating in case the player guesses both teams goals.

    So if the player predicts 3-1 and the match ends 3-1 the player only gets 2 points instead of 4 points

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    You can define your own scoring rules in PHP by writing an extension on the calc_score function. Example here. This is relatively simple if you have some PHP knowledge. But it can become complicated if you also want to add your changed scoring rules to the charts.

    Thread Starter salgas

    (@salgas)

    Hi @antoineh.

    I have uploaded the example you put on your reply activated on my website even updated to the most current version and nothing happened.

    Plugin Author AntoineH

    (@antoineh)

    When you enter some test cases for matches, there is no difference in points between a calculation (you have to wait for it to complete) when the plugin is active and when it is inactive?

    Anyway, the example I posted, will not do exactly what you want. Hope you realize this. You’ll have to adjust the code to reflect your requirements.

    Thread Starter salgas

    (@salgas)

    Hi @antoineh.

    Sorry I found what i was doing wrong.

    Made the changes to the coding and all is working now for me.

    Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with rules of points’ is closed to new replies.