Active
Project:
jQuery plugins
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2008 at 12:00 UTC
Updated:
4 Apr 2012 at 12:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
mfbI think there might be a problem with hosting this on cvs.drupal.org, which has a "GPL 2 or later"-only policy whereas this plugin is released under GPL 3 or later. However, you could request permission from the author to release it under GPL 2 or later.
Comment #2
davebv commentedI contacted the autor of the plugin and asked me there were no problem to release it with GPL2 or later, and so he did.
http://www.gruppo4.com/~tobia/files/jquery.cross-slide.js
Now it has the GPL v2 or later header.
Will this plugin be included in this module?
Thank you so much!
Comment #3
davebv commentedI modified myself the file jquery_plugin.jq.inc to add this plugin:
Just added
And copied the http://www.gruppo4.com/~tobia/files/jquery.cross-slide.js file into sites/all/modules/jquery_plugin/
Comment #4
davebv commentedI attach a patch for jquery_plugin.jq.inc
Comment #5
davebv commentedHi!
As you did not answered... I do not know if what I did was correct and if the license now is in the correct version. Can you confirm that? Thank you!
Comment #6
mfbWith the GPL 2 license it should be ok to add it here, soon as I have a chance.
Comment #7
mfbActually I did find a problem. I run the plugins thru the YUI Compressor to "minify" them -- http://www.julienlecomte.net/yuicompressor/
This plugin is not able to be minified due to syntax errors. Could you contact the author and ask them to fix these issues?
java -jar yuicompressor-2.3.6.jar -v jquery.cross-slide.js > jquery.cross-slide.min.js
[INFO] Using charset UTF-8
[ERROR] 18:4028:unterminated string literal
[ERROR] 18:4028:syntax error
[ERROR] 19:21:syntax error
[ERROR] 19:21:illegal character
[ERROR] 19:27:syntax error
[ERROR] 20:15:missing : after property id
[ERROR] 20:45:illegal character
[ERROR] 20:51:syntax error
[ERROR] 21:42:missing : after property id
[ERROR] 21:72:illegal character
[ERROR] 21:78:syntax error
[ERROR] 21:130:illegal character
[ERROR] 21:136:syntax error
[ERROR] 22:22:missing : after property id
[ERROR] 23:20:missing : after property id
[ERROR] 23:50:illegal character
[ERROR] 23:56:syntax error
[ERROR] 23:352:unterminated string literal
[ERROR] 23:352:missing } in compound statement
[ERROR] 23:352:missing } in compound statement
[ERROR] 23:352:missing } in compound statement
[ERROR] 23:352:missing } after function body
[ERROR] 23:352:missing } after function body
[ERROR] 23:352:missing } after function body
[ERROR] 1:0:Compilation produced 24 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 24 syntax errors.
at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:143)
at org.mozilla.javascript.Parser.parse(Parser.java:391)
at org.mozilla.javascript.Parser.parse(Parser.java:336)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:532)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:120)
Comment #8
davebv commentedthat's strange, I conntacted the author and he got no errors. I checked myself and I just get warnings. Maybe the file you are using is corrupted?
Comment #9
mfbYou got no errors when using YUI compressor -- http://www.julienlecomte.net/yuicompressor/ ?
Comment #10
mfbOK figured it out. some java issue on my side.
Comment #11
mfbNevermind, the outputted js has syntax problems and causes errors in the browser! So it seems there is still a problem with YUI Compressor compatibility.
Comment #12
davebv commentedI do not know but I have no errors at all. The minified works OK. I even modified the original one a little bit and now I do not get any error, nor warning in the minifying process, by executing java -jar yuicompressor-2.3.6.jar -v jquery.cross-slide.js > jquery.cross-slide.min.js.
I double checked with firebug, everything works fine.
I attach both files.
Comment #13
mfbOK the version of cross-slide you have is quite different from that at http://www.gruppo4.com/~tobia/files/jquery.cross-slide.js (~12KB unified diff). If you minify the gruppo4.com version on the other hand, you should get firebug errors? You might want to contribute a patch upstream :)
Comment #14
mfbLet me know if the author will make some modifications for YUI compressor compatibility. Otherwise we could add the modified version here.
Comment #15
davebv commentedHe's answered my emails quickly but last one I sent some days ago about my modification didn't get answer. Maybe you can add the modified version for now, and see if the author makes the changes any time soon?
Comment #16
davebv commentedCan you add my modified version? The author is not modifying his version. Thanks!
Comment #17
mfbCould you re-roll your modified cross-slide? There was an updated version posted on Sept 18th.
Comment #18
doughold commentedFirst of all, kudos on the patch it worked beautifully for me. The cross slide plugin shows up in my jq Plugin Administration and all. I've uploaded the plugin jquery.cross-slide.js to the jquery_plugin directory.
Now to the issue at hand. I might just be missing something completely, but when I added the following code into a block nothing happened:
Am I doing something wrong here?
Comment #19
davebv commentedI am not so sure, but I think "jq_add()" is a php function, not a js function.
If you are interested in using the cross-slide plugin in a easier way (just choosing the folder in which you have the pictures you want to display in the slideshow), you have the module http://drupal.org/project/slideshowcs
This module provides a drupal interface for the cross-slide jquery plugin (for configuring blocks, and all its parameters). Just install the module and you're ready to go.
You can try a demo here: http://sandbox.davebv.es
Comment #20
guillaumeduveauHere's a patch and jquery.cross-slide.min.js from the lastest version (0.3.7 @ 2009-05-14). Running YUI compressor still gives warnings, I've mailed the author about them.
Comment #21
Gems commentedHi, Hope all is well. I am also trying to use the jquery cross-slide. The Ken Burns Effect. http://www.gruppo4.com/~tobia/cross-slide.shtml
I have so far uploaded jquery.cross-slide.js and jquery.cross-slide.js into a folder called images/slideshow which also has all the images i want to use.
On my index.php page this is the code i am inputting:
this is all in my index.php file. I can paste the contents of that here as well if needed.
Can anyone help me figure out where i am going wrong. I'd really appreciate it. Ive been at this for over a month and am feeling so lost now.
Thank You
Comment #22
davebv commentedyou should have a div element with a id #test3
If you need a block with the cross slide use this module: http://drupal.org/project/slideshowcs
And I think, problems with the cross-slide plugin is out of the scope of this issue, which is intended to ask for the inclusion of this plugin in the module. Maybe if you have problems in using the plugin itself, should open another issue. If I am wrong, please, correct me.
Comment #23
hassansr commentedwill these modifications work with drupal 5x?
Comment #24
pelicani commenteddoes this apply to the current iteration of jquery plugins?
I for one would like to ensure the cross slide plugin is part of this module.
I'm looking into integrating CrossSlide on a current project and will post my solution.
peace,
michael