This is the first major contribution I have made to an open source web based project. Previously, the over 300 schools who ran games of 'Humans vs Zombies' were limited to using only third party hosting (humansvszombies.org) or creating a custom website themselves. I was hoping the module would be able to bridge the gap between schools who want control over their sites and those who don't have the capability to create their own site.
Key Components of the Module: (a brief description of the actual gameplay: http://humansvszombies.org/rules)
Assigns Kill ID to each player.
Allows permitted roles to select an Original Zombie.
Original Zombies are hidden from non permitted roles until revealed.
Allows (Original) Zombies to input Kill ID's to turn other players into zombies.
Userpoints given for each kill a zombie gets.
Rules integration on key gameplay events.
Pages:
admin/settings/hvz - general administration settings
admin/settings/hvz/ozselection - Original Zombie Selection
hvzplayerslist - list of names, gameplay states, and number of tags
regkill - register a kill to turn a player into a zombie
Blocks:
HvZ Register Tag
HvZ Recent Casualties
Also in case there was any concern about trademark issues or the like, I have already contacted humansvszombies.org admins, and they are in support of the module.
Comments
Comment #1
blaxbb commentedComment #2
blaxbb commentedComment #3
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
Comment #4
blaxbb commentedminor UI additions
any chance on an ETA for review?
Comment #5
sreynen commentedAs much as I'd like to see more zombie in Drupal, this has some issues. Stuff that probably needs to be fixed before this can be approved:
$l = t('<strong>An Original Zombie</strong>');HTML in t() should be avoided, and is easy to avoid here.Stuff that would be good to fix, but maybe isn't necessary:
$content = '';immediately followed by$content .=can be shorted to$content =.This is all in the main module. The other modules both have similar issues. In general, this just seems kind of sloppy, not a finished project.
Comment #6
avpadernoAs reported in Documenting hook implementations:
Strings used in the user interface should be translated.
The character
`is not used from all the database engines that Drupal is compatible with.The return value is always
FALSE; the form submission handler would always report an error.Why isn't the code using
drupal_write_record()?The description should be a string passed to
t()as every string used in the user interface needs to be translated (tagged is not translated).t().That help string doesn't help much.
Why is the query string a concatenation of two literal strings?
The original code contains a couple of parentheses that are not needed (the ones around the function call).
I guess the code is not complete; one of the requirements for CVS applications is that the code is complete.
The first argument of
t()is a literal string, not a concatenation of strings. The script used to create the translation template is not able to handle any dynamic value, even in the case of code similar tot($variable), ort(function()); this means that if the argument of the function is not a literal string, it will not appear in the translation template.Avoid escaping a string delimiter inside a string, especially if the string is passed to
t().Description strings should contain sentences ending with a period.
Comment #7
avpadernoI am closing this application due to lack of replies.
Comment #8
avpadernoPlease read the following links as this is very important information about CVS applications.