• Resolved mkrakowiak

    (@mkrakowiak)


    Hello and thank you for this great plugin! I was wondering if it’s possible to add a couple of features to the pool, which cannot be handled by using the bonus questions:

    1. Pick 3 players from a dropdown list that in your opinion will score most goals (penalty shootouts do not count, but penalty kicks during the game do). Your players will get points for every goal scored (2 points), every hat-trick / three goals in one match (3 points) and every assist (1 point).
    2. Pick a goalkeeper who in your opinion will record most games with clean sheets/no goals conceded (penalty shootouts after extra time do not count). Your goalkeeper will get points for every match with the clean sheet (2 points), and every saved penalty during the game (1 point).
    3. Pick 2 teams from every group for the total of 16 that in your opinion have the best chances in the tournament. For every win of your teams in the group phase you get 2 points, for every draw in the group phase you get 1 point, and you get no points when your teams lose. If your team makes it out of a group stage, you get 3 points. The same goes for making it to the quarter-finals, semi-finals and the final (3 points for every one of them). However, if one of your teams wins the Euro Cup, you also get extra 3 points.

    I know that it requires a lot of additional logic and I’d be happy to update points gained by the top scorers or goalkeepers manually. How difficult is it to add these features? I wanted to check the script you posted in the Extension Plugins thread in the Support section, but the link to it is broken.

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

    (@antoineh)

    If you can live with updating scores manually, then it is possible with the bonus questions without modifications. To make life easier for yourself, you can use an Excel to do the calculation of the points per user, so you only have to update the total points in each question. Same applies for all three questions.

    Can the above also be automated in a script? Yes, it should be doable, but I have to be honest; I think it will be quite a lot of work. You not only need to collect all player names somewhere (to populate the dropdowns), but you also need a way to store the goals per player name (admin screen + database table?). And that is for one question. The others have the same approach, but different scoring logic.

    I wanted to check the script you posted in the Extension Plugins thread in the Support section, but the link to it is broken.

    Which link is broken and where? Maybe I can help you find the correct one.

    Thread Starter mkrakowiak

    (@mkrakowiak)

    Hi Antoine. Thanks again for your help and for taking the time to answer my questions.

    The broken link to the example script now works! Not sure what happened there but it’s ok now.

    As for using the bonus questions for what I need, can you help me understand how to go about it?

    So I assume that the only way to make calculations work and to pick a goalkeeper and three top scorers is to create a bonus question for every single option, is that correct? For example, would I need to create these questions (or more) for every goalkeeper or is it possible to use a single question with select/dropdown options? But then, how do I assign points to different answers?

    • Manuel Neuer in your opinion will record most games with clean sheets/no goals conceded (penalty shootouts after extra time do not count). Neuer will get points for every match with the clean sheet (2 points), and every saved penalty during the game (1 point).
    • Hugo Lloris in your opinion will record most games with clean sheets/no goals conceded (penalty shootouts after extra time do not count). Lloris will get points for every match with the clean sheet (2 points), and every saved penalty during the game (1 point).
    • Thibaut Courtois in your opinion will record most games with clean sheets/no goals conceded (penalty shootouts after extra time do not count). Courtois will get points for every match with the clean sheet (2 points), and every saved penalty during the game (1 point).

    So in this case I would end up with Neuer getting 9 points, Lloris getting 14 points and Courtois getting 10 points. If it was possible to assign different answers to different options, it would be awesome.

    Thank you!

    Thread Starter mkrakowiak

    (@mkrakowiak)

    Never mind! To anyone looking for the answer: the plugin does handle multiple choice questions even allowing for multiple answers with a custom amount of points per user. And that comes without any custom coding as long as the admin enters the points manually. Just read the Help page of the plugin on your website.

    Thank you, again, Antoine!

    • This reply was modified 3 years, 9 months ago by mkrakowiak.
    • This reply was modified 3 years, 9 months ago by mkrakowiak.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New features’ is closed to new replies.