gpImageRotate
This module has 4 modes (only one mode can be used):
1. Displays a random image on a page.
2. Rotates multiple images on a page (fade in/out).
3. Displays images using carousel effect.
4. Displays a portfolio. This last mode is the reason that I created the module. I was creating a new portfolio site using Drupal and I assumed that there was an existing module that could display a portfolio. I found that I would have to use multiple modules and a bit of work to display the images the way that I wanted (http://groups.drupal.org/node/23732).
You can view demos of the jQuery plugin here: http://grasshopperpebbles.com/demos/index.php/bannerrotater/portfolio
gpGoogleMaps
I actually created this module for a client, but I built it with the basic features of my jQuery Plugin: imGoogleMaps. I am currently upgrading it to add more functionality. A few months back, a Drupal developer asked whether there was a module that was similar to my plugin (http://drupal.org/node/757472).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | gpimagerotate.zip | 16.84 KB | lesgreen |
Comments
Comment #1
manuel garcia commentedHi lesgreen,
Thanks for the interest in contributing to the community!
In order to proceed reviewing this application, please add the modules as attachments so we can review them
Make sure to have read and understood these two pages:
Comment #2
manuel garcia commentedComment #3
avpadernoComment #4
lesgreen commentedThe name of the project is gpImageRotate.
The default mode is 'random' (the same as the jQuery plugin), but I created the module because I needed a portfolio display module for a site that I am working on (so I consequently have done more testing with 'portfolio' mode.
I have not yet created a blog post about the module as I intend to wait until the review is complete before publishing.
I created a post about the jQuery plugin: http://grasshopperpebbles.com/ajax/jquery-plugin-imbannerrotater/
Demos of the plugin can be found here: http://grasshopperpebbles.com/demos/index.php/bannerrotater/random_image
The main difference between the plugin and the module is that image data is retrieved from the database rather a json file.
Comment #5
avpadernoComment #6
avpadernoThe 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), or t(function()); this means that if the argument of the function is not a literal string, it will not appear in the translation template.A module implementing a content type should also implement the permissions , and .
Hook implementation comments should be like the following one:
As reported in Documenting hook implementations:
The module doesn't define the permission .
See http://drupal.org/coding-standards to understand how a module should be written. In particular, see how the code should be formatted (and the indentation to use for the code).
Reserved SQL keywords are written in uppercase.
hook_uninstall(), or doesn't implement it to remove the Drupal variables it defines.Comment #7
lesgreen commentedThanks for your input. This is my first module submission, so your review/comments/suggestions have been very helpful.
I have a few questions.
First let me note that much of the way that I coded this module I learned from book, "Learning Drupal 6 Module Development", so some of your comments/suggestions are contrary to what I have read (but I changed most of the items anyway).
Comment #1: Files available from third-party sites should not be committed in Drupal.org repository. Files licensed under a license different from GPL License (even if it is a compatible license) should not be committed in Drupal.org repositories.
Does this include the jQuery plugin jquery.BannerRotater.js? If so, does it matter that I created the plugin? The view for this Drupal Module is just a wrapper for the plugin, so it does not make sense to me to have a developer install the plugin separately. Some of the modules that I plan to create in the future will also incorporate plugins that I have created.
Comment #5: Hook implementation comments should be like the following one:
Are you referring to the use of "Implements" as opposed to "Implementation of"? If so, I looked at some other modules (Webform, Panels, CCK) and the use of "Implementation of" is also used.
Thanks again for your input. I incorporated all of your other comments into the module and I will attach a new version after your response to my questions.
Thanks,
Les Green
Comment #8
manuel garcia commentedAs far as the question about including jquery.BannerRotater.js (or any other file), there are only these options:
This is basically the way to go about it, contacting the author usually helps, as people who share their work freely are usually happy to find out someone is integrating their work into Drupal, and like the GPL also.
If you can't get through this, providing easy instructions on how to get it, and considering in your code the very real possibility of the user not even reading the instructions is also a good idea.
Further info on licensing can be found here: http://drupal.org/licensing/faq
Comment #9
avpadernoOld modules use what the coding standards suggested at the time the project was created; new modules need to follow what the updated Drupal coding standards.
About the files available on third-party sites, the general rule is that files available from third-party sites should not be committed in Drupal.org repository; files licensed under a license different from GPL License (even if it is a compatible license) should not be committed in Drupal.org repositories.
Comment #10
avpaderno