Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Aug 2009 at 09:17 UTC
Updated:
17 Oct 2019 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
good_man commentedComment #2
avpadernoComment #3
avpadernodrupal_is_front_page().The code doesn't actually use the global variable.
The code is not correct; it does check the status of the node, but it should also call
db_rewrite_sql().I would avoid to use that function, which makes the code error-prone. Looking at the code, it's not possible to say if you are accessing a variable without to first initialize it (which means the code is difficult to maintain).
If you want to use default values for an array when that array doesn't contain a value, you can use the following code:
In this way, the indexes already present in
$settingswill not overwritten by indexes present in$default_settings.The code should use a single assignment statement.
All the function names must be prefixed with the module name; the same is true for the Drupal variables used, and the constant the module defines. See the Drupal coding standards for the other coding suggestion your code is not following.
Comment #4
avpadernoComment #5
AjK commentedAlso, "LIMIT" shouldn't be used in SQL, pager_query() should be used.
Comment #6
good_man commentedHi,
Thanks for the great help and review ...
@KiamLaLuno:
Excuse me but I didn't understand point #1 well, we removing the license and plugin file
Hope I'll finish all the mentioned points and some fixes and improvements today or tomorrow
Comment #7
avpadernoThe license file you added to the archive you uploaded here must be removed; the packaging script already adds the same license file. You are probably not allowed to commit a file LICENSE.txt into CVS.
Any third-party files that are available from other sites must not be included in CVS; the same is true for files that are not licensed under GPL License.
Comment #8
avpaderno@good_man Please don't edit the issue metadata, apart the status.
Comment #9
good_man commentedyeah I understand now why not including LICENSE but regarding the library (jQuery plugin) it's GPL and I've seen many contributed Drupal modules packaging library files with the module, it's easier than telling the user to put it himself.
Comment #10
avpadernoFor an explanation of which code can be added in CVS, see http://drupal.org/node/66113.
Comment #11
good_man commentedaha many thanks for clearing things ... expecting the new release today or tommorw (it's night in my local time)
Comment #12
good_man commentedHello KiamLaLuno,
I'm facing a little problem, the jQuery plugin (Scrollable) that I use has many version now, and the programmer of this library still working on the site, so in the same page you can see many version of the plugin! and these versions are different in the way you call the plugin because the owner still making many big changes. I don't want the user to download a different version that won't work with the module, so can I include it (the jQuery plugin Scrollable) in the module?
Comment #13
avpadernoWhat version are you using?
Comment #14
good_man commentedjQuery Tools 1.1 beta, It's not important what version I can use & call whatever but the problem is the developer changing it frequently!
Comment #15
avpadernoDo you mean that the version you are using is not compatible with the latest version available?
Comment #16
good_man commentedYes calling the Scrollable js in the new version is done b an API which was not the case in the older one
Comment #17
avpadernoThe last version of jQuery Tools is 1.0.2 (June 11, 2009). There is also a version 1.0.3 of jQuery Scrollable (June 3, 2009) on http://plugins.jquery.com/project/scrollable.
Comment #18
good_man commentedAs you can see many versions, also from the official site v 1.0.5 http://flowplayer.org/tools/download.html and in the right sidebar v 1.0.2 http://flowplayer.org/tools/scrollable.html !!
Comment #19
avpadernoVersion 1.0.5 is the version for jQuery Scrollable, and 1.0.2 is the version for jQuery Tools.
My point is that jQuery Scrollable 1.0.3 is always present in the jQuery web site; there is no reason to include the file into Drupal CVS when it is available from a third-party site.
Comment #20
avpadernoComment #21
avpadernoThere have not been replies from the OP in the past 7 days. I am marking this report as .
Comment #22
good_man commentedIt turned out to be a bad idea, since jQuery Tools programmer is keep changing the API and also keep changing the download page! also no previous versions are available so you must download latest ones.
Sorry Kiam but I for my own use of this module find difficulties updating and maintaining the script, so I think people will find it difficult too.
Comment #23
avpadernoI still don't understand why the code could not use the version available from http://plugins.jquery.com/project/scrollable.
Comment #24
good_man commentedBecause it's unlike other projects hosted on jQuery's site (e.g. http://plugins.jquery.com/project/dotnet_string_formatting) there is no download link, to download it you have to go to it's official website (http://flowplayer.org/tools/download.html) where you also have to install only the latest release! so I can't keep this module always compatible with the changing API for Scrollable! you see the problem now!
Another issue, I've update my locale development version of Scrollable module to use the latest 1.1.x Scrollable release, it's only compatible with jQuery 1.3.x, and you know the other problems when updating Drupal's jQuery release from 1.2.x to 1.3.x
P.S. notice the version in jQuery's site is 1.1.0 and in the official site 1.1.2
Comment #25
avpadernoYou are right: there is not download link in the jQuery web site; the link I saw is for the release page, which doesn't contain a download link.
In that case, I understand if you include the plugin without module.
I will re-queue your CVS application.
Comment #26
avpadernoThe description should not be passed to
t().Comment #27
good_man commentedThanks for your patience, I'll work on it this week and publish the first release.
Comment #28
good_man commentedThanks guys for the help, the first release is here: Scrollable Content.
Comment #31
avpaderno