CVS edit link for jcmc
New Gallery Modul, Gallery as node type
I'm working with Drupal, and just have one way or another to do with Drupal, so why should I not with a module for drupal participate? According to my research about modules that support media, specifically image galleries, I discovered a small gap where I can wat apport. said i, that programming is my bread, but is also my Hoby? Then, I mention it now.
I give this module into the open source and hope it grows and thrives.
PS: And ofcourse, i will maintain my module
The new link to the module example page: http://jcmc.quiptime.com/gallery_assist/
The module create a node-type as gallery.
Comments
Comment #1
jcmc commentedComment #2
avpadernoThe function
gallery_assist_item_box()uses a variable that is not initialized, it's not a parameter of the function, and it's not a global variable. It then executes the following code:The same error is present in most of the module functions.
Comment #3
avpadernoThe module then contains two functions that have their name not prefixed by the module name:
ga_makedirs(), andobject2array().Comment #4
AjK commentedComment #5
jcmc commentedHello,
I have the variable error and the name of functions corrected and send you the module again.
I have the number of the version corrected to.
Regards
Comment #6
AjK commentedA quick look revealed an access by-pass:-
When selecting from or joining to the node table:-
Comment #7
jcmc commentedHello AjK!
You were right, that was a old and for this gallery_assist version not necessary sql query. It belong another features not included in the actualy version. That is, it was a meaningless sql query.
Your comment is taken into account in future.
Compliment for the sharp eyes and my thanks
Regards
Comment #8
jcmc commentedComment #9
AjK commented)Please dont forget to change the status to "needs review" if you want us to look at it again.
Comment #10
jcmc commentedPlease review.
Thanks
Comment #11
AjK commentedPlease don't play with the issue stuff :)
Comment #12
avpadernohook_nodeapi())If the module is handling only its content type, then that code should be in another hook. Modules that implement a content type has hook to show the edit form, to show the node content, etc...;
hook_nodeapi()is used by a module that changes in any way a content type that it doesn't define.substr(), andstrlen()are still used instead of the equivalent Drupal functions, which should be preferred because they are able to handle Unicode characters even when the multibyte string functions are not enabled.There is no reason to create an array to just contain a item; in such cases, it's better to use a simple variable.
image_get_more_info()).hook_display_item(), which is not a Drupal core hook; the module doesn't declare any dependency from other modules. Is the function not a hook, or does the module forget to declare the dependency from a module?hook_item_pager().The code uses an array when it could use a set of variables.
As there is already a module for image galleries, which integrates with Views and CCK, I don't see any reason to have another module that has the same purpose.
This module gets a -1.
Comment #13
avpadernoThis time is my fault (we both were adding a comment at the same issue).
Comment #14
jcmc commentedPlease review
The opinion from KiamLaLuno about modules with equal purpose:
If image and image gallery would not be so unflexible, nobody would be looking for alternative solutions.
I have nothing contra solutions over CCK and Views, both modules offer solutions with high standards but for a simple gallery, the effort is too great, apart from knowledge of the operator, website owner etc.
The motto "drupal is flexible and for everyone" legitimate the existence of this module and the others.
This is my opinion.
Comment #15
avpadernoIt would be better to use 100 as the default value for that Drupal variable. It's not clear why the code checks if the value of the Drupal variable is an empty string, when it is supposed to be an integer; if it is done because the user can use an empty string for input, then it would be better to put that code in the submission function.
Remove the numbers from the titles; they are not required.
The variable is not initialized; even if it would be, it enough to use a normal variable (not an array, not an object).
Comments must start with a capital letter, and end with a period.
It is "break".
The hook is called only for the content type it defines: why is the code checking the content type of the node, then?
dsm()is a debug function.There is no need to use an array, in this case. Use plain PHP variables (
$graphic_next,graphic_previous).You should use English words for variable names, array indexes, etc.
An array variable is again used when there is no use for it; it would be better to use plain PHP variables.
Follow the coding standards.
As I already said, there is already a module that has the same purpose; if it is found to be difficult to be used, that is not a reason to create a duplicate of an already existing module. The code should at least be better of the other module, to be accepted.
Comment #16
jcmc commentedHere is a new version from gallery assist module.
This module create a gallery contenttype and allow to assign the gallery functionality to each other existing content types.
A submodule to assign and manage known lightboxes to galleries created from gallery_assist.
A submodule to make that gallery_assist work with ImageCache.
You can find examples and screencasts at http://simple.puntolatinoclub.de.
I followed the coding standards, as I could.
Comment #17
avpadernoYou need to re-apply for the CVS account, as the application has already been declined; changing the status of this report doesn't change the status of the application.