World Cup Predictor V1.2 released with new features for local time zone support, configuration of the countdown clock to local language, manual sorting of the group tables and the display of all user predictions in one table.
Timezone Toggle
The plugin now has support to allow users to toggle match kickoff times between South African time and user local time.
For example,
Match times are currently set to South African local time, please click here to convert to your time zone.
Match times are currently set to your time zone, please click here to revert to local time.
You must be logged in to predict.
By adding the following code to your post, or in the sidebar, users can toggle between timezones. Make sure you use HTML rather than the Visual post editor in WordPress.
<div id="tzContainer">
<p id="tzLocal">Match times are currently set to South African local time, please click here to convert to your time zone.</p>
<p id="tzClient" style="display: none;">Match times are currently set to <strong>your time</strong> zone, please click here to revert to local time.</p>
</div>
Modify the text, add clock images etc. to suit your needs. The paragraph identified by tzLocal is shown for South African times, and toggled with the paragraph (tzClient) when switching to the users’ timezone.
This can be applied to any post/page where a shortcode displays match times or dates.
Warning – Match dates and times MUST be set to South African time in the Admin screens for correct results
For more information see the help.
Auto Translate Match Kickoff Times
The plugin will attempt to display match dates and kickoff times according to the users browser locale setting. For example, American vs British date format. Month names in the users local language.
Enable or disable this feature in the Overview settings.
Localize Countdown Clock
The countdown clock can now be configured via a setting in the Overview screen to alter the message and suffixes for your blog language. For example,
Date limite de prédiction suivante dans %%D%%j %%M%%m %%S%%s
to display ‘j’ for jours rather than ‘d’ for days.
Manually Sort Group Tables
According to Wikipedia in the event of a tie in the group stage FIFA may draw lots to determine the winner. To ensure that the Group Table results are ordered correctly you can change the ‘group_order’ setting in Admin->Teams to sort entries as required.
This option is useful to display the Group Tables in the correct order before the competition starts (i.e. all teams are tied) to modify the order to correspond with http://www.fifa.com/worldcup/standings/index.html
For example – Group A – Set the group order as – RSA -1, MEX – 2, URG – 3, FRA – 4. Similarly for Group B, ARG – 1, NIG – 2 etc.
For new installations this is done as part of the Import process. For upgrades you will to use the Admin->Teams menu to enter the values manually.
Display all users Predictions
You can show display all users predictions for all completed matches by using the shortcode [world-cup-predictor scores=-1] Instead of supplying the match id, use -1 to display all matches.