Posted by kenorb on January 23, 2009 at 12:37am
Jump to:
| Project: | Fantasy Formula 1 |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | ff1 |
| Status: | closed (fixed) |
Issue Summary
Port to Drupal 6.x?
| Project: | Fantasy Formula 1 |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | ff1 |
| Status: | closed (fixed) |
Port to Drupal 6.x?
Comments
#1
I have plans to port this module to drupal 6, but I won't get time to do it until this summer.
#2
Awesome! Got some friends in Shanghai that would love to try this out!
#3
Busy summer I guess. If no port to 6, I'll grab 5 for next year's season.
#4
Try to convert here:
http://boombatower.com/tools/deadwood
#5
Sorry, I haven't made progress on converting this to D6 yet. I've had a busy summer and with a new baby just arrived, I'm not likely to make much progress in the next few months.
With that in mind, I'd certainly be prepared to review/accept patched for a D6 port.
I'm thinking about completely re-writing the module using CCK and Views, which will make it much more flexible, allowing improved customisations and hopefully allowing it to be used for lots of different racing series. This will probably not make it for a D6 version and may need to wait for D7.
#6
Great to hear about the baby...not so great to hear about the wait...we really need a Drupal 6.
#7
Just to keep you all up to date... I've been working on this and I'm nearly ready to release an alpha version. If there's interest, I could release a 6.x-1.x-dev version, but I know there are big bugs in it. So my current plan is to sort out the known bugs, then release the alpha for testing. Hopefully, this will be ready next weekend. :o)
#8
lots of interest!!!!
#9
subscribe
#10
I have released an alpha version of the D6 port.
The race calendar now uses the CCK date field (instead of the old event module).
The points table is now populated on install. TODO: provide admin interface to edit points.
The javascript code has been ported to jquery.
There is skeleton (and currently broken) integration with migrate module to allow admins to import races and components (when used with table wizard module). More work on this soon.
Hopefully, the main bulk should work as the D5 version did, but I now need to test things over a full season which I should be able to do over the next week.
Any help with testing will be greatly appreciated. If you need any help getting set up, just let me know (It might even prompt me to write some documentation!).
Ian
#11
I am happy to test and help to fix bugs, can you please provide link to D6 version.
#12
Thanks. That's great!
You can download it form the project page: http://drupal.org/project/ff1
#13
I've now updated the 6.x version to alpha3. The latest updates fix JQuery problems within Team, Component and League forms and adds the ability to select a flag for each race.
More testing...
#14
I have gone through and just looked at the code to understand what it is doing and then tested setting up race, teams, and components. An error occurred when entering components,
"user warning: Column count doesn't match value count at row 1 query: INSERT INTO ff1_components (nid, comp_name, comp_type, nationality, website, price) VALUES (42, 'Engine1', 'engine', 'USA', 'http://www.formula1.com', 5, '') in /modules/ff1/ff1.module on line 423."
Looking at the code now to edit and fix
changed Line:(Dropped '%s')
case 'ff1_component':
db_query("INSERT INTO {ff1_components} (nid, comp_name, comp_type, nationality, website, price) VALUES (%d, '%s', '%s', '%s', '%s', %d)", $node->nid, $node->title, $node->comp_type, $node->nationality, $node->website, $node->price);
#15
Next step, creating team created this Userwarning:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: INSERT INTO ff1_teams (nid, team_name, tiebreaker, tbvalue) VALUES (47, 'Tester', '1:13:56.924', ) in /modules/ff1/ff1.module on line 443.
Correction at line: (Added '%s')
case 'ff1_team':
db_query("INSERT INTO {ff1_teams} (nid, team_name, tiebreaker, tbvalue) VALUES (%d, '%s', '%s', '%s')", $node->nid, $node->title, $node->tiebreaker, $node->tbvalue);
#16
Okay I am stumped at the race creation section, you should be able to see results, but no results are posted (using the following links, I am assuming that it does not matter that they are past results) 2009, ie the table is not populated.
Qualification results: http://www.formula1.com/results/season/2009/821/6614/results.html
Race results: http://www.formula1.com/results/season/2009/821/6615/results.html
Fastest lap results: http://www.formula1.com/results/season/2009/821/6615/fastest_laps.html
Ideas.... I am sure I am missing something small here,
#17
Thanks for the testing... it's really appreciated!
I think I've fixed the problems you had. I've created an Alpha4.
I'll look into the results updating as soon as I can.
Ian
#18
@chum44:
To get the results to populate, you need to make sure the setting 'Pre season' is not checked. ff1_cron does not run the site is in pre-season mode.
#19
I've just added an Alpha5 release.
There are lots of minor fixes in this release. Currently, there is a major bug with adding teams to a league, so I'll try to fix that ASAP.
#20
I've fixed the bug with adding teams to a league.
The port is basically usable now, so I'm going to close off this issue. If you find any bugs in the D6 release, please file a new issue.
#21
Automatically closed -- issue fixed for 2 weeks with no activity.