The Volleyball Landesverband Württemberg (VLW) is responsible in organizing official Volleyball competitions in Württemberg, Germany.
They provide game data via XML, thus enabeling interested Clubs to display customized score tabs, results, next game announcements and season schedule on their website.
This module is written primarily for the needs of my local club FV Tübinger Modell, but may be usefull for other Clubs as well.
This module also features integration to the (restricted) XML game data service of the Deutsche Volleyball Liga (DVL) for the 1.Bundesliga and 2.Bundesliga. The submodule for including the new "Dritte Liga" will be included till Sept.2013, since our site depends on it.
Coming up
FIVB and therefore DVL/DVV changed to a new score scheme, all XML interfaces will change, once the dataprovider issue a new xml scheme (scheduled for August 2013).
history of this project
I started a similar module with Drupal5 (only VLW part) but did a rewrite for Drupal6 due to upgrade problems. I needed support for germanwide 2.Bundesliga in 2012, which resulted in restructuring this whole thing into one main and two submodules. Since the inclusion of the germanwide submodule, this project is now interesting for many more clubs, not just my own. This is why I decided to make it public.
git clone --branch 6.x-1.x http://git.drupal.org/sandbox/wingnut00/2021949.git vlw_game_data_service
cd vlw_game_data_service
Comment | File | Size | Author |
---|---|---|---|
#8 | coder-results.txt | 4.49 KB | klausi |
Comments
Comment #1
divesh.kumar CreditAttribution: divesh.kumar commentedHi,
Please make sure that code sniffer should ran on your code.
Go to this URL and check.
http://ventral.org/pareview/httpgitdrupalorgsandboxwingnut002021949git
Comment #2
divesh.kumar CreditAttribution: divesh.kumar commentedHi,
Few more comments.
File: vbgame.module
----------------------
Please provide description in .info file along with all
recommended parameters.
In method vbgame_settings_form please wrap renderable strings
like title and description in t() method.
Proper comment blocks are missing everywhere.
vbgame_summary_content() method is way too big around 150+
lines and seems doing everything. Can we break this module in
logical sections?
_vbgame_block_view() have got HTML part in it. Please consider
moving html to template and create a theme hook entry to render
this.
File: vbgame_theme.inc
----------------------
Please move html part from code to templates.
"UPDATE {xxx} SET type='xxx' WHERE type='value'" is not matching drupal's query standards, please change this.
Common suggestions
------------------
Do not use methods like substring rather use drupal_substr or wherever applicable.
Comment #3
cbudzi CreditAttribution: cbudzi commentedThanks divesh.kumar for your review!
there was some code duplication, which I simply transformed into a function.
This way I probably don't need a template anymore, right?
update
All PAReview issues resolved!
Comment #4
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
divesh.kumar CreditAttribution: divesh.kumar commentedGreat! Keep working on..
About "So how do I do secure UPDATEs? ", You would need to write proper drupal sequence or syntax as per drupal query standards and it will be taking care of everything.
Comment #6
klausiI'll look at this now in the Project applications sprint
Comment #7
klausiSorry for the delay, but you have not listed any reviews of other project applications in your issue summary as strongly recommended in the application documentation.
Review of the 6.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
So that potential XSS security issue is a blocker, I don't understand why you did not create a theme function for that with sanitization same as in the other theme functions?
Comment #8
klausiForgot attachment.
Comment #9
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9.0
PA robot CreditAttribution: PA robot commentedrephrased
Comment #10
cbudzi CreditAttribution: cbudzi commentedHello,
i finally managed to work on this code again. Thanks klausi for your review!
1) ok, I may have misunderstood the howtos on that...
2) With setting "comment_vbgame_teampage" i'd like to disable comments for this content type by default. Is there another way?
4) my website is using my module for ~90% of its static content, so i'll ship it every time, but I can move it to all view functions if preferred.
5) Ok!
6) all html is now in a theme-function, all variables there are check_plain'd.
7) done.
The current version is adapted to the announced remote changes. I also did a lot of cleanup.
Can you please check again?
Comment #11
pal4life CreditAttribution: pal4life commentedHi,
I am just getting in to these reviewing this so began with the Automated Reviewing.
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
http://pareview.sh/pareview/httpgitdrupalorgsandboxwingnut002021949git
Please take a look.
Thanks.
Comment #12
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.