Hi,

Individual image listing is working for me if I list each image in the same directory or from different directories but directory listing is not working and just coming up with a blank page. I am using the following syntax.

[slideshow:2, height=300, width=300, dir=|path to directory/|yes||Title|Caption||]

And by the way, I have created a new text format called "SlideShow" with "SlideShow Creator" as the only choice enabled and everything else disabled.

Can you please let me know what a I missing? Thanks.

P.S. Site is on shared hosting Linux server.

Comments

rhouse’s picture

Status: Active » Fixed
StatusFileSize
new1.5 KB

Two issues: there is indeed a bug in the module, but I am not convinced that your problem is caused by it.

First, is it only the directory option that is failing, or is it any slideshow? If normal image slideshows work but directory doesn't, the most likely possibility is that you haven't given the correct directory. For example, if you have on your website a directory sites/default/files/fred, then your slideshow should say:

[slideshow: 2, height=300, width=300, dir= |fred|yes | | Title |Caption || ]

It is NOT possible to specify a directory outside your file download directory.

However, there is also a bug connected with the 'yes' (recursive) option - it doesn't recurse. That option hasn't been touched since the original author of the module handed over maintenance to me, but apparently no one at all has ever used it, since the code contains a clear fault that prevents it working. If all your slides are in nested directories, they won't show up and the slideshow will be empty.

The recursive bug will be fixed in the next version, but until then, here is a patch that can be applied to 7.x-1.12 or to 6.x-1.48.

GlobalRaj’s picture

I was starting out my directory path with "files/......" When I disregarded "files/" and started with directory below that, it worked. I like this idea of not needing to list directories all the way from "/sites"

Thanks much for the help. I am not sure what recursive is supposed to do but I applied the patch. I have a feeling it is supposed to look for files in the sub-directories? Just guessing! :)

rhouse’s picture

In your example, the "yes" turns on recursive searches: all files in all subdirectories of the directory you name should be searched for more images. That is the feature that wasn't working. Apparently no one at all uses it, or there would have been a bug report in the past 5 years! If you don't want it, which I think you don't, leave out the "yes".

GlobalRaj’s picture

Component: Code » User interface
Category: bug » support
Priority: Normal » Minor

Thanks @rhouse. Actually, I found a use for the "recursive" as I am creating a website for a friend who is into photography. Organizing the photos into various directories and pointing the slideshow to the top directory. This is a pretty handy module. Now I got to theme the slideshow to make it look prettier. :)

Thanks much for the help.

Status: Fixed » Closed (fixed)

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