Posted by digital_fox on June 25, 2009 at 2:28pm
5 followers
Jump to:
| Project: | jcarousel block |
| Version: | 6.x-1.6 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I use jcarousel block with the imagefield. Such kind turns out at me: http://www.picamatic.com/show/2009/06/25/06/06/4124433_205x666.gif . How to creat this kind http://drupal.org/node/301816 ?
Comments
#1
.css wasn't added. Help
#2
I have the same problem. I changed from ie7 to tango. But nothing happens. The css is not loaded.
#3
I'm going to be posting this on several different issues listed here, as the "vertical display" problem seems to be a common thing just now, so apologies for the cut and paste. Basically, the block needs updating. The jCarousel code that it depends on has changed since the block was written, and now some of the filepaths are different.
As a result, out of the box, this block WILL NOT WORK with the jCarousel code downloaded from http://sorgalla.com/jcarousel/ as in the instructions. The JS isn't included properly on the page, so the layout is completely broken.
However, it's really easy to fix. Open up /modules/jcarousel_block/jcarousel_block_block.tpl.php in your favourite text editor, and look at the top, lines 2-4.
Change line 2 from:
drupal_add_js(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.pack.js');To:
drupal_add_js(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.min.js');And then change line 3 from:
drupal_add_css(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.css');To:
//drupal_add_css(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.css');(This file no longer exists.)
Give your page a refresh and, with any luck, the carousel will snarl into life. Job done! Hopefully the module developer will take this onboard and release a patch.
Greg J Preece
#4
committed, new release rolled.
#5
#6
I have the latest version (6.1.8) and still have this problem.
#7
Any news on this?