Closed (won't fix)
Project:
Drupal.org CVS applications
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Nov 2009 at 17:50 UTC
Updated:
27 Jan 2010 at 10:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
web2make commentedModule uploaded
Comment #2
avpadernoComment #3
avpadernoFiles available from third-party sites should not be included in Drupal.org CVS.
In Drupal.org CVS the only accepted files are the ones licensed under GPL license v2+; compatible licenses are not accepted.
Comment #4
web2make commentedLicensed code removed.
Comment #5
avpadernoSee the Drupal coding standards to understand how a module code should be written.
You should add a file INSTALL.txt, explaining that the user needs to download two files, where to download them from, and where to copy them.
Comment #6
web2make commentedI modified code to apply to standards. Also I added a Readme file to explain installation and usage of a module. Please review it.
Regards
Comment #7
web2make commentedForget to attach a code!
Comment #8
avpadernoThe JavaScript code is not using any jQuery functions to handle the HTML elements.
See the Drupal coding standards to understand how a module code should be written.
Comment #9
web2make commentedJquery added, and some code changes. Please review.
Comment #10
sreynen commentedYou're still not following Drupal coding standards. Coder can point out specific problems, but you should really read the link kiamlaluno keeps suggesting to get a good understanding of Drupal coding standards. In addition to the standards, you're violating an important guideline from JavaScript in Drupal:
"All pages should be perfectly functional without scripts."
That's not really Drupal-specific at all, just best practice on the web in general. Putting your HTML in the HTML document rather than the JavaScript will also allow you to validate it, which will reveal a lot of validation errors.
Comment #11
avpadernoI am changing the status as per previous comment.
Comment #12
web2make commentedThanks for the comments Sreyen. Didnt now about Coder, it is very useful!
Now coder shows zero errors, and I removed Javascript for now. Please review again :)
Comment #13
avpadernoThat code is not necessary; the module declares its dependency from the other module, and it cannot be enabled if the other module is not enabled too.
Implemented hooks should be declared to be hooks, as it has been already done with the others.
Debugging lines should be removed; the level of the error reporting is already set by Drupal at bootstrap, and modules don't have a reason to change it. If you would use a Drupal development snapshot (which allows to see even the E_NOTICE warnings), the module would interfere with a feature of Drupal that one is supposed to see; sometimes the development snapshot is installed because it allows to see also those warning notices that a module should never produce.
The HTML output is supposed to be XHTML; the output of the theme function is not well formed XHTML (see
<TD CLASS='table_sub_heading' ALIGN=CENTER>). For a reference of the differences between HTML 4 and XHTML 1.0, see http://www.w3.org/TR/xhtml1/.Comment #14
web2make commented1. Removed, however I copied this code from imagefield and videofield module as reference on how to create CCK widget.
2. My mistake, forget it!
3. Yes, you are correct. I removed this and some other debuging lines as they are useless within Drupal.
4. I removed Align=center as this should be in CSS, also I added quatations to other properties (rowspan, colspan,...) and removed nobr tags. I think thats it!
Comment #15
avpadernoThe output still is not well formed XHTML.
Check how the FOR-statements are writting; they should be written as
for ($i = 12; $i < 23, $i++) {(the name of the variables is not the point, of course).Comment #16
web2make commentedXHTML now passes validation on http://validator.w3.org/check
Comment #17
atheneus commentedExternal libraries should really be placed in sites/all/libraries or sites//libraries. I suggest using the Libraries API to allow easier management/sharing of external libs (see: http://drupal.org/project/libraries).
excelfield_formatter.inc: line 89
The use of
return t($output)is an extraneous function call since $output contains dynamically generated text wrapped in markup. There's no way this output can be caught and translated. Just return$outputI'm concerned there are no calls to
check_plain()orcheck_markup()in this code when you are accepting uploaded documents from an untrusted source. You usenl2br(htmlentities(...))where you should be usingcheck_markup()to apply filters on output text.Comment #18
atheneus commentedComment #19
avpadernoThere have not been replies from the OP in the past 7 days. I am marking this report as .