Reset score after group games
-
Hi, thanks for a great plugin.
I have a question — how can I reset scores after the group matches are done? So that the next scores are only calculating for Round 16, or qf, semi-f and final ?
-
Maybe that’s enough for you?
Create a second ranking only for matches the knockout phase.
You can do it in the administration panel.OMG! I didnt see this. I can create & define ranking based on matches, round of 16 etc! Wow this is awesome.
I created the rankings are user can select which ranking to show on the Statistics page (despite the other rankings are for future matches — it will return empty page).
However, on the ranking page — seems like only the default ranking is shown as there is no selection/dropdown to select ranking to show (despite I activated User-defined in plugin option in admin). Is this as intended (because Round of 16 ranking etc is still empty) ?
Thanks again for the help.
-
This reply was modified 4 years, 11 months ago by
af3.
When you set the ranking options to “Let the user decide” it should render a dropdown on the ranking page. Even if a ranking is empty, or if matches are not finished yet, it should still show. In that case, when you select the ranking, it will simply show 0 points for all users.
The above only applies to the default ranking page. If you have a page that you built up from widgets or shortcodes, then the dropdown will not be added as for these you have to set the ranking yourself in the settings of the individual widget or shortcode.
Additionally, the message “No results yet. Below is a list of all users.” only appears in the Ranking page, not on the default statistic page where the selection will return empty page. Using WordPress 2021 theme.
Just curious how to name the default ranking — it appears as Option=1 in the Selection but it has no name.
Maybe you can set a text via CSS or javascript?
Best if created ranking can be set as default.
You can alter the link to this page (menu) to include the querystring with the ranking ID that you want as a default, e.g. “/page/?ranking=2”
Additionally, the message “No results yet. Below is a list of all users.” only appears in the Ranking page, not on the default statistic page where the selection will return empty page. Using WordPress 2021 theme.
That is by design.
Thanks again! the option=1 can be hidden using jquery. thanks
Just to share, I added this to the ranking page’s header in the theme. This hides the empty text for option value 1, and use option 5 (for my case to be shown as default).
<script> jQuery(document).ready(function() { jQuery("#ranking option[value="+1+"]").hide(); jQuery("#ranking option[value="+5+"]").attr('selected','selected'); }); </script>@antoineh Now the dropdown is showing the selection. How can I show ALL without the dropdown? Something like — http://example.com/ranking/?ranking=all&_submit=go
Which file can I add this to? Thanks
-
This reply was modified 4 years, 10 months ago by
af3.
You don’t want to show the dropdown? Then you can simply change the setting in the plugin options.
-
This reply was modified 4 years, 11 months ago by
The topic ‘Reset score after group games’ is closed to new replies.