• Resolved fmc19337

    (@fmc19337)


    First of all, congratulations for this plugin which is just great and easy to integrate

    I would like to make a modification.

    Currently the goal difference bonus is only for matches with a winner. I would like to add it for a draw

    For example :
    True result: 1-1
    Prediction: 0-0

    In the above example, I would only have the points for the correct result.

    I would like to know how to get: the points for the right result and add the goal difference bonus.

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

    (@antoineh)

    Not sure if it still works, but here is an example on how to do this.

    Thread Starter fmc19337

    (@fmc19337)

    Great it works

    @antoineh I activated this plugin. Should it be reflected in “help” tab in “Points” section?

    I can still see there only totopoints if there was a draw (for example real result was 1-1 and user predicted 0-0)

    Plugin Author AntoineH

    (@antoineh)

    @elmariachi09 The texts on the help page are static, so it won’t show that you changed the calculation method and that you now also award the diff points for a draw. But if hover over the total points in the table, then you can see the actual value that the calc function returns.

    @antoineh thank you.

    One more thing.
    With this plugin enabled when there user predicts 2-0 and result was 2-0 it gives 1 extra point to full points.
    Can this be changed?

    I have 3 points for full points, 1 point for toto and 1 point for goal diff.
    And now when user predicts correctly it gives 4 points instead of 3.

    But in case of a draw I would like to give 2 points when there is 1-1 and prediction was 0-0. Can I do this?

    • This reply was modified 2 years, 3 months ago by elmariachi09.
    • This reply was modified 2 years, 3 months ago by elmariachi09.

    When having the correct score the points for toto and goal diff are also added! This can’t be correct… How to solve this please?

    • This reply was modified 2 years, 3 months ago by pinano.

    It seems to be correct. In the help I found for the calculation for the correctly predicted match result:

    full points plus two times the goal bonus for the correct amount of goals for the home team and the away team.
    total = 5 + 1 + 1 = 7

    With the extra plugin also the the points for the goal diff are added, in my case it’s 1 point.

    So the total score becomes 5 + 1 + 1 + 1 = 8.

    Plugin Author AntoineH

    (@antoineh)

    @elmariachi09 It can be changed in the extra plugin that you installed. The calculation method is pretty straightforward, but still it requires a bit of PHP knowledge to change.

    @antoineh I am not familiar with php very much but will take a look into the code.
    Any hint where to look? I assume it is only to change value to zero for adding points where fullscore points were assigned, right?

    edit: I think it was enough to just substract one point for full scores in plugin options and now it should be ok.

    • This reply was modified 2 years, 3 months ago by elmariachi09.
    • This reply was modified 2 years, 3 months ago by elmariachi09.
    • This reply was modified 2 years, 3 months ago by elmariachi09.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bonus goal difference for draws’ is closed to new replies.