I Installed 6.x-1.30 and the slideshow didn't start, but showed the 1st photo. I went back to 6.x-1.29 and it works again. Of course I used update.php

Comments

linuxuser’s picture

Dould there be a change in 6.30 with default values?

I found:
"The rotation speed, in seconds. Leave it blank for no rotation."

I never entered a value for this and the slides changed.

Arban’s picture

Same here.

I think there is a bug in the javascript file. I don't know enough javascript to correct them. But if I use 6x-1.30 and I replace the javacript file with slideshow_creator.js,v 1.3.2.6 (6x-1.29), everything works fine.

sloat’s picture

This looks to be fixed in CVS, but if you want to fix it for 1.3, replace line 13 of slideshow_creator.js with this:

  for (var ss = $(Drupal.settings.ssc).length; ss >= 0; --ss) {

Objects don't have the length property, but wrapping it in a jQuery object fixes it. Best would be to use a for-in block (which CVS does), but this provides a drop-in replacement.

Arban’s picture

Yes... problem solved with replacing line 13.

Thanks !

vacilando’s picture

I confirm that this version only works after the line replacement.

brmassa’s picture

Status: Active » Fixed

Guys,

im sorry about this. i forgot completely that objects dont have length.

regards,

massa

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

computer_jin’s picture

I want to use slideshow creator in my hook_view and i am using this like

for($i=0; $i<$count_virtual_tour; $i++) {
$path = SITE_PATH ;
        $img .=" img = |$path$products_images[$i]|$path$products_images[$i]| Test image|testing image | Smart slide show |,  ";
}

$slideshow = "[slideshow:2, rotate=2, blend=1, layout=default, name=Banner, height=300, width=250, $img]" ;

And than...I print this in $slideshow varaiable in node->content

$node->content['virtual_tour'] = array(
        '#value' => '<div>'.$slideshow.'</div>',
       
        '#prefix'     => '<div style="float:right;">',
        '#suffix'    => '</div>',
        '#weight' => 16,   
    );

But it is not working and its showing me the string containing this variable $slideshow.......

Please can any one help me ...if i am missing something or using wrong way to use slideshow