• Is there a way to give users points for only participating? As in perhaps 10 for correct answer, 5 for correct winner, 1 for any answer and 0 for not answering at all.

    Thanks!

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

    (@antoineh)

    Matches or questions? For the matches you’ll have to hook into the calculation method. Doable if you have PHP knowledge, very difficult if you don’t.
    For questions you can decide as an admin what points you give per question.

    Thread Starter 104jk15

    (@104jk15)

    Thanks.

    I was asking about matches. Can you point me to the PHP file that relates to this? If I’m able to do this successfully I’ll release the code back so that others may use it too!

    Plugin Author AntoineH

    (@antoineh)

    You can look up the calc_score() function in classes\class-football-pool-pool.php, but it’s best if you use the footballpool_score_calc_function_post filter. Like in this example.

    Thread Starter 104jk15

    (@104jk15)

    Thanks. Looks like all it took was to change the initial value of $score[‘score’] from 0 to 1.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Points for only answering a question’ is closed to new replies.