• Hi Antoine,
    thank you for the great plugin and your tireless support here! We are very impressed by your commitment!

    Our goal: Even Users who have not won any points with their prediction should receive at least one point as a reward for a prediction given.
    My question: Is there a way to set this in the plugin settings? Can you please give us a hint as to how we can adjust this, thank you very much.

    Thanks in advance.

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

    (@antoineh)

    Hi,

    There is no out of the box solution for this. But I did a quick check and think that it can be done by overwriting the ‘calc_score’ method. When the ‘user_home’ and ‘user_away’ vars are not null (in other words: the user predicted them), you can add 1 point.

    I have an example of overwriting the calc_score that may help understand what I mean.

    Some notes/thoughts:

    • This will only work in normal calculation mode. The simple calculation mode always filters out matches without a prediction. There is no option to overwrite this behavior.
    • If you use the charts, you will also have to update those.
    • The score calculation is a complex piece of code. You’ll need more than basic understanding of PHP to extend it.
    Thread Starter raysi7

    (@raysi7)

    Hi,

    Thank you for your quick response. We will try this evening.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add one Point for geven prediction’ is closed to new replies.