CVS edit link for daily_game
Playedonline.com has developed a module to post free flash games to Drupal-based sites.
The module is called "Daily Game".
At playedonline.com we manage an extensive flash games catalog, that's updated daily with the best and newest games around the web. The games are sent directly to our subscribers' site, with no hassle on their side.
The module is flexible and allows customization of the content along with the option to reduce the number of posted games. It also creates new options for monetizing the site as pre-roll ads for games can be easily added.
Currently the system successfully works with VBulletin and Wordpress, and now it's ready to go live on the Drupal platform.
For more questions or remarks feel free to contact us directly at ilya@playedonline.com
Comments
Comment #1
daily_game commentedThe new Daily Game module files
Comment #2
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.
Comment #3
daily_game commentedHi
Thanks for your quick reply, too bad I didn't see it on time...
I'm not sure how I can edit the description and the motivational message so I'll just add here, hope it works fine :
As for the module's features I'll add some more details :
The service is a turn-key solution for automatically adding free content - online flash games. Each game is embedded in a separate node, with a thumbnail, description and instructions. The settings screen allows customization of the node's title template, the author of the posts and addition of adverts that appear while the games load. The daily game doesn't have to be actually "daily" and can be configured to post new games on specific days of the week - only on the weekends for example.
About the technical aspects - we are using the "Services" module to create a server that accepts requests from our site (run daily at 3am PST) and creates a new node for the new game after verifying a secret API key.
For a live demo please visit http://www.dailygame.org/
About similar solutions - I didn't find any modules that offer a service for adding free online games.
Thanks for your time and attention
Ilya Agron
Playedonline.com
Comment #4
avpadernovariable_del(), and passing to the function a literal string containing the name of the variable to delete (using an SQL query that deletes all the variables with a name starting with the module name would remove variables of a module named , in example).The first argument of
t()must be a literal string; differently, the script that extracts the string to translate to create the translation template will not be able to extract the string, which would not be translatable (if not in the case another module uses the same exact string, but it's rather difficult it happens, when the string is dynamically changed).The function is passing too much HTML content to the function; it could be reduced if the module would use a CSS file for the CSS style it uses (it is rather recommended to not use inline CSS styles).
It useless to pass to
t()parts that cannot be translated; HTML tags are not translated, and if there isn't the possibility to use a different URL basing on the language (as it happens with Wikipedia), it is better to not put URL in a string to translate. That part is at the beginning of the string, and it is easy to avoid to pass it tot().The code is making assumptions about the content types currently defined from the Drupal site, and the input format associated to the content type. The content type could not exist (in fact, I removed that content type from my site when I installed Drupal); by default, the input filter a user can use is filter HTML, which would filter most of the HTML tags you are trying to use (including the JavaScript code).
In such case, it is probably better if the module defines its own content type.
Comment #5
daily_game commentedThanks for the thorough review.
I've made the requested changes and updated the code for approval.
Comment #6
mrotolo commentedThis looks pretty cool, let me know once it's approved I'd like to try it out.
Comment #7
daily_game commentedCould a moderator please review our module?
It's been 2 months since we have suggested it...
Comment #8
avpadernoIn Drupal 6, there isn't a
hook_admin()hook; the function is simply a form builder.See what I previously reported about using URLs inside strings to translate.
Those permissions are already defined from node.module, which defines a set of permissions for each content type defined from third-party modules (including Drupal core modules).
See the code in node_example_access(), for how the hook should be implemented.
hook_form()is supposed to return a form, not to print the node body.There is a Drupal theme function for images.
Strings used in the user interface should be translated.
Comment #9
avpadernoI am closing this issue due to lack of replies.
Comment #10
avpadernoPlease read the following links as this is very important information about CVS applications.