I’m pleased to announce V1.0 of the plugin.
This should be the final release barring any bugs. Thanks to the testers who have reported problems and the translators for language files.
If you wish to contribute additional language translations then I will add them to this page.
Changelog
- Added Spanish translation – Thanks Domingo Robaina
- Added Brazilian Portuguese – Thanks Ed Torres
- Added Dutch – Thanks Deborah Kerkhof
- Removed unnecessary scoring option ‘Predict a loss’
- Added new scoring option to award bonus points for correct goal difference
- Changed prediction entry form so the default goals are space not zero
- Bug Fix – Clear group results cache and re-calculate when modifying a team, match or venue
- Bug Fix – Fix minor HTML error in footer and table display
- Bug Fix – Report winning teams in bold consistently
Ian.
Documentation
Deutsch-Dokumentation
Hi,
how do I activate german translation on my blog?
Im using an english version of WordPress, but i want to use the german Translation of World-Cup-Predictor
Hi,
You need to edit the file wp-config.php in the top level directory of your WP install and change
define ('WPLANG', '');to
define ('WPLANG', 'de_DE');and it should work
See http://codex.wordpress.org/Installing_WordPress_in_Your_Language for more details
hi – I an a bloody wordpress-beginner and want to create a blog for the worldcup – finally I managed to run the Arras theme and now I activated your game .. find it in the admin list on the left side and could pull it over to the right sidebar — all it shows me is a dark grey blank field … do I have to create a naked page first for it and then make a link or how do I get it to show up ???
sorry for those blonde questions but everone once begins with someting he never did before
thanks in advance
Britta
PS is there maybe a step by step advice somewhere ??? because the link on your homepage how it should look like does not work — links work for the car-games but not the last one, the soccer game ….
H Britta,
I guess you mean the widget that you have dragged. The blank grey box is normal. Once there are predictions or results this will fill in.
To display the entry form you need to create a new post or page and put the shortcode [world-cup-predictor] anywhere in the post.
There are options for the shortcode (and other shortcode) but that should get you started. See http://wordpress.org/extend/plugins/world-cup-predictor/other_notes/ for more details.
PS – I’ve fixed the broken link. Thanks
thanks for replying — I will try out and let you know how it works — wordpress should be simple but I learned good old fashioned table-html and have problems to run down imagination
)
I try now …….
Hi, can you send me the sql, cause i cant import the teams, matches, stadiums in the admin panel, so i want to try import the sql file. Can you help me? Thank you ( davidrabello [at] gmail.com )
Hey, i re-install and now works fine! great plugin good job. Tx
Hi,
I’m looking for some kind of world cup predictor source and I found your plugin. It’s fantastic.
I’m a newbie to WordPress. I would like to have a welcome page where my users can register and eventually log in to get directed to the prediction page. How can i achieve this?
TQ for yout enlightening…
You might want to look at some of the many login redirection plugins for WP. For example, http://wordpress.org/extend/plugins/sidebar-login/
So create your front page and have a link to a registration URL, e.g. /wp-login.php?action=register. Drag the sidebar login widget onto a sidebar.
Configure the sidebar login, so after login users get redirected to the prediction page.
Ian.
Hi man, this is grrreeeaaatttt! Just what we were looking for!!!!!
Some questions:
we like to run it on a german site, so would be good to get the team names in german. Is it possible to import the team names in german in a way? Are they imported from the fifa website or like hardcoded into the db? anyway I could not find how to change the names in the admin.
And can I change the time format for the scedules to something usual german like day-month-time. the format of the countdown clock I checked in wcp-predict.class.php from D to Tage and h to Stunden etc.
I would highly be thankful for some hints.
Geetings from Cologne
Peter
Glad you like it.
The team names etc. are imported only in English. Using the Admin menu you change change the team names, group names, stadiums etc into German by clicking on the Id link in the table below and changing the values.
If your version of MySQL is set to a German Locale then the dates and times should be displayed in German. The countdown clock is the exception and slipped through the I18N net. As you worked out, you’ll need to edit wcp-predict.class.php (approx line 390) to change d, h, m and s to the German equivalents. Don’t change the uppercase %%D%%, etc. as these are the substitution strings. E.g. %%D%%Tage %%H%%Stunden …
You may need to re-edit wcp-predict.class.php if there is another release.
Ian.
Yeah, that helped me on, did´nt notice that ID is the link….
I just can check in phpmyadmin that my databse server runs already german, or is it in the db itself?
Thans again!
Peter
It’s the Db setting.
See http://dev.mysql.com/doc/refman/5.0/en/locale-support.html
and try some of the example queries to see if day,month names are displayed in German. In your case,
mysql> SELECT @@lc_time_names;
should return de_DE if things are setup correctly.
Ian.
Hello,
I’m getting the following error when I click “Activate” in the WP admin panel.
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /my/server/path/wp-content/plugins/world-cup-predictor/world-cup-predictor.php on line 41
I’m using WP 2.9.2 and version 1.0 of the plugin.
Any idea what could be happening?
Thanks!
lex
You need PHP V5.0 or later, preferable V5.2+
Ian.
Ian…thanks for a great plugin. I have a follow-up question. Is it possible to change the kickoff time? I’d like to set it for Pacific Daylight Time, but I’ve been unable to find a place in the files to modify to make that change.
Thanks.
lex
I haven’t done the mental gymnastics (timezones make my head hurt) but you could change the kickoff time to PDT. You would also need to modify your Timezone difference to +/- the appropriate hours to ensure that users cannot predict after the match result.
I can only suggest making the changes (maybe move one match to later today) in Admin->Teams & Matches and check that the countdown timer is correct, and that after the deadline the match is no longer displayed.
There isn’t any reason to change any code, but I haven’t tested your particular combination.
Hope that makes sense.
Ian.
Hi Ian,
I have a problem with wcp (no points are given when i simulate a match result – it worked the first time i tried but now no points are given) so i try to reinstall the plugin (delete plugin from server, download the zip, unzip and upload new files to my server) but when i do it nothing changes, all previous forecasts are still shown and have the same points problem.
Could you tell me how to delete completely the plugin ? Or to resolve my points problem ?
Thanks
Eric
Hi Eric,
Did you remember to select the match results in the Score Matches tab under the Predictions menu and click Score Matches ?
Scores are not automatically updated when you enter a result. Maybe they should – it’s a bit of a hang up from the original version to aid testing.
Your previous forecasts are stored in the database, so deleting the files and re-installing doesn’t affect the database. If you want to remove the plugin AND the plugin database tables, then from the plugins menu, choose, deactivate, then delete.
Ian.
Sorry it’s ok i fixed the problem.
Great work Ian !
Yep I forgot to select match results and click score matches
The matches sorted by kickoff is a very good idea. Thanks
eric
Hi Ian,
Thanks for your response. I did what you suggested re: the timer and it worked.
As far as changing individual match kickoff times, are you saying that I would need to manually change the time on each entry in the matches admin? I was hoping I could just make an edit somewhere in the code +/- hours so the times would all change to PDT automatically.
Thanks.
lex
Glad it worked. The date/times displayed on the prediction form come directly from the database without any processing.
If you’re comfortable with SQL you could always run a query something like:
sql> update wp_wcp2010_match set kickoff = DATE_SUB(kickoff, INTERVAL 09:00 HOUR_MINUTE);
Otherwise, I’m afraid it’s manual modification, one at a time.
Ian.
I couldn’t get that query to work but I remembered a workaround I’d done before. I exported the wp_wcp2010_match table to CSV and edited the kickoff times in Excel. Then did an import of the file back into MySQL.
One word of advice to anyone trying this method. Make SURE you reformat your dates and times into yyyy-mm-dd hh:mm:ss (e.g., 2010-06-11 07:00:00). Excel will likely reformat the MySQL format and then your data will be corrupt when you import the file.
This method worked great, and it was certainly faster than me hacking at queries all afternoon.
Is there a value somewhere that adds an ndash to the end of the group titles? I’ve modified the output table with times and venues and don’t need the dashes but can’t seem to find where the trailing dash is after Group A -.
Thanks again for your help.
am getting this error after installing this plugin … my whole site not work after this ..
Fatal error: Class ‘WP_Widget’ not found in /public_html/wp-content/plugins/world-cup-predictor/wcp-widgets.class.php on line 14
You need at at WP V2.8 for the Widget stuff to work.