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

digital_fox’s picture

Priority: Normal » Critical

.css wasn't added. Help

mawosch’s picture

I have the same problem. I changed from ie7 to tango. But nothing happens. The css is not loaded.

Greg J Preece’s picture

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

yang_yi_cn’s picture

Status: Active » Fixed

committed, new release rolled.

yang_yi_cn’s picture

Status: Fixed » Closed (fixed)
doomed’s picture

Status: Closed (fixed) » Active

I have the latest version (6.1.8) and still have this problem.

doomed’s picture

Any news on this?