• Resolved pglock

    (@pglock)


    Can we set a default set of predictions for users that fail to login in time?

    The page I need help with: [log in to see the link]

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

    (@antoineh)

    No this is not possible at the moment. But it should be possible to create this as the calculate function has an action hook that is fired before the calculation starts: football_pool_score_calculation_prepare_before.

    Using this hook you can create a function that checks the prediction table for all matches that are closed. If no prediction is set for a match for a user, then you can add a default prediction.

    The help page and the first post in this forum have some examples on how to use hooks in combination with the plugin. But you’ll also need some PHP and SQL experience to create the function.

    Thread Starter pglock

    (@pglock)

    Thanks for that. The predictions are all held in one table which makes life a bit easier. For the small number of users we have at the moment is actually quite simple to export to excel and manipulate before re-importing.
    I’ll look at using the hook as the number of users grows.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default predictions’ is closed to new replies.