Great module, thanks for developing it.

I ran into an interesting issue: I have a slideshow of image nodes displayed in the Splash area on the homepage. When using Forward or Reverse mode everything works fine. When setting the Random mode, one image node is always skipped. I tried to refresh the page numerous times, and it's always the same node (last created) that is skipped. I've only got four images in this slideshow, and I've been watching it for a while now... The settings for all nodes look the same to me.... the only difference is that the omitted node was created several days after the others. I tied emptying the cache tables.

Ideas, anyone?
Any help would be greatly appreciated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wilbersmith’s picture

Version: 5.x-1.0-beta1 » 6.x-1.0-beta1
Category: support » feature

I also have this kind of issue with the "random" feature. For now I am happy to sequentially cycle through as I too only have 3 to 4 items. After launch of the site I expect this to grow. Because I am using it for advertising I don't want to accidentally give certain ads priority because of where they are in the sequence. I need a non-repeating randomisation - meaning every frame of the slideshow is showed before one is showed a second time - but still in random order.

When I get time to dig under the hood on my website I may develop this feature but for now I don't have the time. Thank you for such a useful module.

matytsio’s picture

Version: 6.x-1.0-beta1 » 5.x-1.0-beta1
Dries Arnolds’s picture

I've got another issue with the random function. It happens a lot that a node is shown twice or even three times in a row ('ve got seven nodes in the view). Is there a way to make the function not show the previous node?

It seems to happen more often than it randomly should.

btw: I now notice that my block has the same issue as the topic starter. Last node in the list is always skipped when using random.

peter.walter’s picture

Version: 5.x-1.0-beta1 » 6.x-1.0-beta2
Category: feature » bug
Status: Active » Patch (to be ported)
FileSize
804 bytes

Bug in JS prevents last image being displayed in random mode.

Original code intent was to prevent same image being displayed twice in a row, but incorrectly coded to exclude last image in list.
Patch for 6.x-1.0-beta2 attached - needs backporting.

Dries Arnolds’s picture

@expandonline: I tested the patch, but it seems that images appear twice in a row more often. Was the intent of your patch to fix both problems or just fix the last slide not appearing?

Also, this is another issue that has to do with the randomnize function: http://drupal.org/node/435398

peter.walter’s picture

@Pixelstyle: I thought I fixed both, and my own testing shows good results.
Did you patch a clean install?

Dries Arnolds’s picture

I patched again and it seems to work like it should now. Thanks alot.

redndahead’s picture

Version: 6.x-1.0-beta2 » 6.x-2.x-dev

Moving to 2.x

redndahead’s picture

Status: Patch (to be ported) » Fixed

This is fixed in 2.x as random is now handled by jquery cycle plugin. Marking this as fixed as I'm not too motivated to work on 1.x and this issue is old.

Status: Fixed » Closed (fixed)

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