Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
13 Nov 2010 at 00:10 UTC
Updated:
13 Apr 2019 at 18:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
RavenHursT commentedHere is the compressed module.
Comment #2
avpadernoHello, and thank you for applying for a CVS account. I am adding the review tags, and somebody will report what needs to be changed.
As per requirements, the motivation should include more than two sentences of features, and a comparison with the existing solutions.
Comment #4
RavenHursT commentedMy apologies.
The current Gallery Assist module is a wonderful implementation for back-end administration of large photo galleries. But the front-end display options seem lacking.
The current front end view for GA nodes is a listing of images in a gallery along with a paginator. This is fine for basic applications but with the recent explosion of jQuery-driven visual effects, there needs to be a solution that will allow for not only easy management of large galleries, but also a means of displaying those galleries to users utilizing the rich effects that are now available for the myriad of jQuery gallery plugins available to thes global front-end developer community.
This module attempts, in a small and humble way, to address that solution. The Galleria plugin is one of the most efficient and visually appealing gallery solutions out there and it only makes sense to have it as an option to display galleries through. It is also HIGHLY customizable with a rich "theme" layer to it's front-end code allowing for the future expansion of this module to allow for limitless front-end gallery visual effects.
In future versions of this module I would like to include new Galleria "themes" to allow for these different front-end experiences for users of Drupal sites as well as create something that will allow Drupal site developers and themers a simple way to enrich the media section of their Drupal sites.
Comment #5
RavenHursT commentedComment #6
RavenHursT commentedCould someone please review this? Or tell me what else I need to do to get this project going? It's been over a week now... :-(
Comment #7
cafuego commentedThe module's info file should not contain a version string. Drupals packaging system would handle that.
I'm not convinced you should call drupal_set_message() or watchdog() in the install and uninstall hooks, I'm pretty sure notifications there are handled internally, as is the management of the system table. You can remove your hook_install() implementation completely and leave only the variable_del() call in the uninstall hook.
Can you use a more descriptive array key than 00001 in _gag_settings_form?
What happens when a user enters -200 as height or width in the settings form? Perhaps you should add a validate handler as well.
The code could do with a tiny bit of cleanup, that's mostly an issue of spacing though. Sometimes you use
if(...){and sometimesif (...) {I believe the latter is the preferred Drupal Way™ ;-)In the js file, some indenting uses tabs and some uses spaces. Pick one, pick spaces ;-)
Do you maintain the $Id tags manually? CVS requires only
$Id$and inserts revision info automatically.Finally... you're including an external jQuery library (customdata). If any other modules also include this, they may end up clashing... would it be worth adding a separate jQuery Customdata module and having GAG depend on it?
Comment #8
awolfey commentedIn uninstall you don't need to worry about the system table. Uninstalling will do that on its own.
Same for clearing the cache, I'm pretty sure.
I think you can have the external js libraries go in sites/all/libraries. They probably do not qualify to be included in Drupal's repo anyway.
It looks like you left your site's url in the tpl file.
The tpl also needs an id tag at the top.
Comment #9
RavenHursT commentedCool.. thanks guys.. I'll do some updates..
Comment #10
RavenHursT commentedAlrighty:
Here's a new zip with the updates suggested above along with a few others to correct some bugs etc...
Thanks
Comment #11
RavenHursT commentedCorrected Admin form validation
Comment #12
RavenHursT commentedAdded libraries dependency to the .info file.
Comment #13
RavenHursT commentedOops... forgot to delete some stuff... cleaned up...
Comment #14
awolfey commentedThis looks ready to go to me. I worked with RavenHursT on fixing some minor problems. I did not actually test it.
Comment #15
RavenHursT commentedRenamed jquery.gag.js to gag.js
Comment #16
avpadernoComment #17
HedgeMage commentedThis looks good.
I haven't tested, but the only change since awolfey reviewed was the rename RavenHursT described, and between our two pairs of eyes we should have (hopefully) noticed anything major.
Comment #18
avpadernoThere should be an empty line between functions.
The sentence should be changed ( is probably better).
hook_uninstall(), but it doesn't delete all the variables it defines.gag_preprocess_node(&$vars, $hook)are not correct; Drupal passes only the first argument.gag_gallery_assist_display_list()is not a theme function, but outputs HTML tags.Comment #19
RavenHursT commentedI've corrected the first three issues kiamlaluno noted above, but is #4 really not a themeable function? Why does it say so in the GA module? If it really isn't, why is it outputting a html tags in the following and how should I fix it ?
gallery_assist_list_display.inc, line 440:
Thanks for the review kiamlaluno.
Comment #20
RavenHursT commentedSetting back to NR..
Comment #21
avpadernoIn Drupal, a theme function is a function with a name that starts with
theme_, which is registered in ahook_theme()implementation;theme_gallery_assist_display_list()is a theme function, butgag_gallery_assist_display_list()is not.Comment #22
RavenHursT commentedSo do I just need to rename the function?
Comment #23
cafuego commentedI expect you might even need to rename it to theme_gag_gallery_assist_display_list() and register the function in a hook_theme() implementation.
Comment #24
avpadernocafuego is right; plus, you also need to change how the function is called.
Theme functions are never called directly; they are usually called as
theme('image', <parameters>).Comment #25
jcmc commentedHello RavenHursT,
the best is, you remove the last function from the script. It is not declared in the hook_theme() and is not called or used.
To learn and know how theme functions should be written or called visit the Default theme implementations api.
Regards
Juan Carlos
Comment #26
RavenHursT commentedOk... I removed that last function.. not sure why that was in there.. I think it was something I forgot to delete.. oops... Should be good for review again...
Comment #27
RavenHursT commentedHere's a test URL:
http://007.stage.assist-series.com/node/1
Comment #28
jcmc commentedHello RavenHursT,
- you should insure that your scripts are free from console.log() or dsm() - calls etc.
see line 40 from gag.js console.log( this.settings.width);
- In the hook_theme you initialize the template with the name gag_display.
Rename the template to gag-display
Rename the file galleria.tpl.php to gag-display.tpl.php
Regards
Juan Carlos
Comment #29
avpadernoI am changing the status as per previous comment.
Comment #30
RavenHursT commentedI've made the changes above. Setting back to NR..
Comment #31
jcmc commentedHello Kiam,
points from #28 fixed as expected.
Regards
Juan Carlos
Comment #33
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #34
RavenHursT commentedWoohoo! Thanks Kiam!
Comment #37
avpadernoI am giving credits to the users who participated in this issue.