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

    (@antoineh)

    The hook in the calc_score function can be used to change the score for an individual match.
    If you want to know how many people got the bet wrong, you can take a look at the predictions_pie_chart_data function.

    Thread Starter florent71

    (@florent71)

    thanks for your answer.
    In fact I want to add (on the score of a good bet) the number of people who do not have the good bet. Can you confirm me that I can’t do that with a hook ?
    Many thanks,
    -Florent

    Plugin Author AntoineH

    (@antoineh)

    Ah, in that case you have the correct hook. Using this hook you can do the calc of the amount of users and return the changed score. You can use the previously mentioned function as inspiration for counting the numbers. But if you’re fluent in SQL it also shouldn’t be a problem to come up with your own query.

    Please note that changing the score also impacts the “% of max points” chart. And because the max points will be hard to determine in your scenario maybe you should hide that chart (if you’re using charts, that is).

    Thread Starter florent71

    (@florent71)

    Ok, resolved !
    Many thx ??

    @florent71: it’s sound like you’re preparing an extra plugin for counting users who got bet wrong?

    Thread Starter florent71

    (@florent71)

    just a hook, captain ??
    With one SQL query, in footballpool_score_calc_function_post function

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calculate calculate the number of people who do not have the good bet’ is closed to new replies.