I'd like to use this module for League and Cup Soccer. Do you think it would be possible, especially concerning the current Conference / Division setup? It seems to be a bit more complicated than Soccer.
I'd like to use this module for League and Cup Soccer. Do you think it would be possible, especially concerning the current Conference / Division setup? It seems to be a bit more complicated than Soccer.
Comments
Comment #1
jvandervort commentedIt should work just fine.
You'll need to add the teams, weeks, and games. Pretty much what this is designed for.
Comment #2
scroogie commentedOkay, I see. I started with an empty file and created teams for the FIFA World Cup 2006 to try it out. It seems to work.
One thing I noted is that you can only pick the winning team, not enter the real ending score, which would be typical for soccer. Could this be implemented, or is a Pickem always like this?
Comment #3
jvandervort commentedYep, right now I've only got pick the winner or use the point spread, no pick the actual score.
How does it work. Is the score used for a tiebreaker? Or do you have to hit it right on?
Comment #4
scroogie commentedI can only speak for the games that are common around here, for example in pubs. You usually differenciate the tendency (you picked the right winner or draw, e.g. you bet 1:0 and it ended 3:0), the goal difference (you picked the right tendency and right goal difference, e.g. you bet 1:0 and it ended 2:1) and exact bet. How many points you get for each depends on your mates, but the most common is 3 for tendency, 4 for difference and 6 for exact. You collect those points the whole season. If you have a point draw at the end of the season, the player who had more days on which he scored the most points wins.
Comment #5
uservol commented2 jvandervort
In this module we have 2 types of results. (two pick boxes for winners in one game).
But For Soccer games we need at least 3 types of results - three pick boxes :
1. 1-st Team (are winner), for example when score is 3:2 or 4:3
2. No winner (draw) , for example when score is 2:2 or 3:3
3. 2-nd Team (are winner), for example when score is 3:4 or 2:3
We need another one pick box for a draw.
Comment #6
jvandervort commented@uservol, that might be true, but if you are using the score technique, perhaps you wouldn't use Winner at all.
You'd just say.
Team1=2
Team2=4
Then you'd have you score diff as well as the winner.
Were you planning to use score? or just win-lose-draw?
Comment #7
scroogie commentedI was planning to use the score, just as you showed in your example. Saving the difference isn't enough though, as the exact bet gets more points as the same diff.
Comment #8
uservol commentedScore - is better solution for soccer. (it will be very good)
But "win-lose-draw" i think is more simple task for you.
Comment #9
toma commentedi want also to use the module on soccer for the la liga !
Comment #10
jvandervort commented@toma, enter the teams, and let us know how it goes!
Comment #11
jvandervort commentedAlso, if you need more timezones added, let me know. Right now there aren't many choices.
Comment #12
summit commentedSubscribing, would be great to use on worldcup soccer! greetings, Martijn
Comment #13
jvandervort commentedI definitely plan to do something like response #4 in the next version for Drupal 7.
Comment #14
soj commentedHas anyone been able to use this for the world cup structure (group stage and knockout stage)?
8 groups (A, B, C, D, E, F, G) with 4 team each, 2 teams advancing from each group creating the knockout bracket until the final (with 3rd place match).
Comment #15
scroogie commentedSo what do you guys use for this years FIFA World Cup? ;)
Comment #16
jvandervort commentedNews: just started the score differential game type branch!
Any testers?
Download the tip here:
http://bitbucket.org/jvandervort/drupal6-pickem2/downloads
Comment #17
jvandervort commentedDev code looking pretty good. I'm guessing about a July release date.
It would be nice to have some testers though...
Comment #18
scroogie commentedYou just missed the FIFA World Cup then, which could have given the module quite some publicity. No time at the moment, sorry, but I'll gladly test it in future.
Comment #19
jvandervort commentedHey, there are a lot of rounds left:) Give the dev code a try.
But yeah, I know. The programming time only shows up when it shows up...
Comment #20
scroogie commentedI just tried out the dev-branch (release tip.zip from bitbucket).
It's a very nice module, thanks for your work.
Unfortunately I don't have time for patches right now, but here is some unordered feedback:
- the Pickem Global Settings should be available in /admin/settings/pickem as well (thats where I searched after installing and I guess others will do so as well)
- Time Zones are US only. Is this really needed? I mean, do you think people will enter start times that are not in their timezone? It should definitely be league specific then. Perhaps you can have a setting for the league "Offset to server time" in which people directly enter the time difference in hours.
- With PHP 5.3 there are a lot of warnings like this: "warning: Parameter 1 to theme_pickem_gamesets_list() expected to be a reference, value given in ..." because $form gets passed as a value to your theme functions, so you should remove the ampersand in front on these theme functions. (c.f. other PHP 5.3 compatability threads)
- Can you use date fields (http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....) instead of textfields for datimes? This way one could enable jquery date picker and so on with additional modules
- Does the Game week really need a starting time? Can't you find the earliest game time of that week?
- What is the "Spread" fields on Game entries?
- In the Standings, the season is split up into "Regular" and "Playoffs". In soccer leagues, there is no playoffs at the end of the season.
- For the "Score Differential" League option, it would be nice to be able to change the amount of points for correct result, correct winning team, etc.
Comment #21
jvandervort commentedThanks for the list. I'll try to address each item one way or the other.
Re Timezones: At least for the other football in the US (NFL), games are played in roughly five timezones and are officially posted in one (US/Eastern). Hence the design of this module. Give me a list of the major European zones, and I'll add them. PHP doesn't really have a good way to render them (for the entire world) across different versions of PHP.
Comment #22
jvandervort commentedLet's number them for follow-ups.
Q1. The Pickem Global Settings should be available in /admin/settings/pickem as well (thats where I searched after installing and I guess others will do so as well)
How exactly did you search? Did you go to the /admin page and look around for something pickem related? Currently they are in their own group because we have five menu items, and the other admin items don't really relate to "settings" particularly. I like them better grouped, than spread throughout the admin arena.
Q2 Time Zones are US only.
Yes, we probably need both regional named timezones and perhaps a hour offset override. Currently we are using named zones because some schedules include both standard and daylight saving time. Picking a named zone allows the server to handle DST without changing the schedule to a DST-less hour offset.
Q3 With PHP 5.3 there are a lot of warnings like this: "warning: Parameter 1 to theme_pickem_gamesets_list() expected to be a reference, value given in ..."
Started fixing the theme functions.
Q4 Can you use date fields (http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....) instead of textfields for datimes? This way one could enable jquery date picker and so on with additional modules
We could if there are enough interested parties. I find cutting and pasting from published schedules is easier than using a date picker.
Q5 Does the Game week really need a starting time? Can't you find the earliest game time of that week?
Yes, the week start time is the time used for locking up the picks for the week, and in some leagues people choose a date/time that doesn't necessarily match the first game start time. We could add a feature that preloads week start time from the scheduled game times though.
Q6 What is the "Spread" fields on Game entries?
It is the point spread for leagues that use the point spread in picking the winner. It is not used in leagues with the "pick the winner" or the "score differential" game types. NOTE: I usually don't enter the game score from this screen either. I use the /admin/pickem/scores/1 screen to enter the entire weeks scores on one page. I also sometimes forget where this screen is, and it takes me a while to find it again:)
Q7 In the Standings, the season is split up into "Regular" and "Playoffs". In soccer leagues, there is no playoffs at the end of the season.
Already fixed. If there are no games in weeks marked "playoff", the standings won't show "Playoffs" at all.
Q8 For the "Score Differential" League option, it would be nice to be able to change the amount of points for correct result, correct winning team, etc.
I agree. I haven't found a tidy way to implement this yet. But I expect it to come.
Comment #23
jvandervort commentedCleaning up the queue.
Comment #24
ghostdog19 commentedI would like to follow up on the issue Q8: Can you tell me where I can manually change the amount of points for correct results, correct score differential and correct winner?edit: Nevermind, found it in pickem.scoring.score.diff.inc on line 46ff.