It doesn't seem to work when admin_menu is enabled, possibly due a settings conflict. Still looking into it but I've been staring at it for too long today.
I've no idea why this should be the case. Clearing the CSS file completely and leaving the line as is still causes problems so it isn't a css issue as such.
Found the problem: I missed the drupal_add_css() for skin.css in views_slideshow_jcarouselthumbs.theme.inc which was still using the D6 version.
It'd be a good idea to rename the css and js files to something more unique, (e.g. views_slideshow_jcarouselthumbs.css, views_slideshow_jcarouselthumbs.js) but this is probably best handled as a separate issue.
- Removed reference to jq module which doesn't have a D7 version
- Updated jcarousel to Version 0.2.8. This fixes a conflict with the jcarousel module.
- General tidying up
Hey, there. You have perfect timing, as Just a few days ago I had to implement this workaround: http://drupal.org/node/220711#comment-4486820. I plugged in the patched module-- an awesome piece of work. So far I've been test driving and haven't yet taken much of a look at the code.
Just one tiny nit so far:
Notice: Undefined index: views_slideshow_jcarouselthumbs in theme_views_slideshow_jcarouselthumbs_controls() (line 262 of C:\wamp\www\home_d7\sites\all\modules\contrib\views_slideshow_jcarouselthumbs\views_slideshow_jcarouselthumbs.theme.inc).
Should $options['views_slideshow_jcarouselthumbs']['timeout'] be $options['timeout'] ?
@othermachines, it certainly should be, thanks. One I missed.
There are also some pointless variable assignments created by the Coder module which need to be removed. See from theme_views_slideshow_jcarouselthumbs_control_previous() onwards, and a few others.
I'll tidy it up a bit more once I'm sure it's all working properly.
Thanks for all the movement on this. I've applied the patch, but am unable to see how I can make my views_slideshow use jCarousel for the pager. Where are the settings?
In the Views Slideshow settings for the view there should now be a dropdown down "Slideshow Type" where you can select "JCarousel Thumbs". It doesn't use the pager settings.
Ah, makes sense. Would be less confusing for others if it wasn't displayed on the project page until the patches have been committed. I think that's possible.
On that note, could people please test the patch in #16.
@imclean: Thanks for working on this. Can you please re-roll the patch without indentation changes? There are also several tabs and missing newlines at the end of a file.
Specifically in the .js file, wrapping the script in (function($) { is good, but leave an empty line after the function($) beginning, then leave the rest of the script starting with no indention. See any script in /misc for an example.
views_slideshow_jcarouselthumbs_theme also has a big diff that's mostly indentation.
@fearlsgroove: sure thing. Here's an update based on your comments.
I haven't introduced any tabs, they were in the original .js file. To be sure, my IDE uses 2 spaces for the tab key. I've still left the original tabs in, would it be preferable to remove them at this stage or remove them in the 6.x version first?
The function wrapper has been modified as suggested, however the "attach:" introduces some additional indentation to Drupal.behaviors. This means the .js diff still looks a little messy.
Some of the changes remove trailing spaces, some are Coder suggested changes (comma at the end of an array, the structure of arrays).
I don't recommend anyone spend much time on this particular issue anymore. Please see redndahead's link. That approach is MUCH cleaner with the current version of views slideshow and should port to D7 much easier.
Comments
Comment #1
drclaw commentedMaybe this post http://drupal.org/node/220711#comment-4486820 will help you? At least until a d7 port can be made.
Comment #2
likewhoa commentedsubscribing
Comment #3
Jerome F commentedsubscribing
Comment #4
danny_joris commentedsubscribing
Comment #5
jjclint commentedAny news about this?
Comment #6
imclean commentedHere's a first attempt, this patch is against the git master branch and is partly based on a coder upgrade of the code in comment #4 #1074266: Slideshow Type in Slideshow 3 using Views 3.
It doesn't seem to work when admin_menu is enabled, possibly due a settings conflict. Still looking into it but I've been staring at it for too long today.
Comment #7
imclean commentedThe problem relates to this line in
admin_menu/admin_menu_toolbar/admin_menu_toolbar_modue:Setting it to preprocess=>true (the default) works:
I've no idea why this should be the case. Clearing the CSS file completely and leaving the line as is still causes problems so it isn't a css issue as such.
Comment #8
imclean commentedFound the problem: I missed the drupal_add_css() for skin.css in views_slideshow_jcarouselthumbs.theme.inc which was still using the D6 version.
It'd be a good idea to rename the css and js files to something more unique, (e.g. views_slideshow_jcarouselthumbs.css, views_slideshow_jcarouselthumbs.js) but this is probably best handled as a separate issue.
Comment #9
imclean commented- Removed reference to jq module which doesn't have a D7 version
- Updated jcarousel to Version 0.2.8. This fixes a conflict with the jcarousel module.
- General tidying up
Comment #10
othermachines commented@imclean
This is great. I'll give it a test run this week.
Comment #11
othermachines commented@imclean
Hey, there. You have perfect timing, as Just a few days ago I had to implement this workaround: http://drupal.org/node/220711#comment-4486820. I plugged in the patched module-- an awesome piece of work. So far I've been test driving and haven't yet taken much of a look at the code.
Just one tiny nit so far:
Notice: Undefined index: views_slideshow_jcarouselthumbs in theme_views_slideshow_jcarouselthumbs_controls() (line 262 of C:\wamp\www\home_d7\sites\all\modules\contrib\views_slideshow_jcarouselthumbs\views_slideshow_jcarouselthumbs.theme.inc).
Should
$options['views_slideshow_jcarouselthumbs']['timeout']be$options['timeout']?Comment #12
imclean commented@othermachines, it certainly should be, thanks. One I missed.
There are also some pointless variable assignments created by the Coder module which need to be removed. See from
theme_views_slideshow_jcarouselthumbs_control_previous()onwards, and a few others.I'll tidy it up a bit more once I'm sure it's all working properly.
Comment #13
jenlamptonThanks for all the movement on this. I've applied the patch, but am unable to see how I can make my views_slideshow use jCarousel for the pager. Where are the settings?
Comment #14
imclean commentedIn the Views Slideshow settings for the view there should now be a dropdown down "Slideshow Type" where you can select "JCarousel Thumbs". It doesn't use the pager settings.
Comment #15
fearlsgroove commentedThere's a new 7.x-2.x branch in Git -- please create patches against that.
Comment #16
imclean commentedDone. There's no 7.x-2.x in the Version drop down for the issue queue yet.
Comment #17
jenlamptonIt's there now :)
Comment #18
imclean commentedNice! Although it looks like 7.x-2.x-dev on the project page is still the D6 version.
Comment #19
jenlampton@imclean that's cause we need to provide patches first - that we can later use to update it :)
Comment #20
imclean commentedAh, makes sense. Would be less confusing for others if it wasn't displayed on the project page until the patches have been committed. I think that's possible.
On that note, could people please test the patch in #16.
Comment #21
imclean commented@jenlampton, how did you go with the patch?
Comment #22
fearlsgroove commented@imclean: Thanks for working on this. Can you please re-roll the patch without indentation changes? There are also several tabs and missing newlines at the end of a file.
Specifically in the .js file, wrapping the script in
(function($) {is good, but leave an empty line after the function($) beginning, then leave the rest of the script starting with no indention. See any script in /misc for an example.views_slideshow_jcarouselthumbs_themealso has a big diff that's mostly indentation.Comment #23
imclean commented@fearlsgroove: sure thing. Here's an update based on your comments.
I haven't introduced any tabs, they were in the original .js file. To be sure, my IDE uses 2 spaces for the tab key. I've still left the original tabs in, would it be preferable to remove them at this stage or remove them in the 6.x version first?
The function wrapper has been modified as suggested, however the "attach:" introduces some additional indentation to Drupal.behaviors. This means the .js diff still looks a little messy.
Some of the changes remove trailing spaces, some are Coder suggested changes (comma at the end of an array, the structure of arrays).
Comment #24
imclean commentedSome additional formatting fixes.
Comment #25
imclean commentedUpdated status.
Comment #26
redndahead commentedI made some comments and attached a module to this issue #1382324: Rewrite as a pager to the cycle slideshow style Would be nice to see what people think this module accomplishes for them.
Comment #27
jjclint commented@imclean thanks for the drupal 7 port I'll test it today - have to undo the patch from http://drupal.org/node/220711 first.
Comment #28
fearlsgroove commentedI don't recommend anyone spend much time on this particular issue anymore. Please see redndahead's link. That approach is MUCH cleaner with the current version of views slideshow and should port to D7 much easier.
Comment #29
sunfire-design commented@imclean: Thanks for working on this.
But i have a problem after hovering a jcarousel thumb the slideshow doesn't resume.
Comment #30
jenlampton@sunfire-design This is the issue queue for creating a D7 port.
if you have a separate problem, you should search for an issue relating to your problem. If you can't find one, then you should open a new issue.
Comment #31
sunfire-design commentedProblem solved with views_slideshow_jcarousel patched and optimized to D7
Comment #32
fearlsgroove commentedhttp://drupal.org/project/views_slideshow_jcarousel