I installed the app per instructions and enabled the module and inserted the php code snippet in a node.

I get a white frame the size specified in the administration page, but no pics. I tried both jpg and pngs.

Help, hints?

Thanks,

Thanks!

Comments

nicktech’s picture

Title: Just whitespace frame » Same issue

I have the exact same problem. Changing permissions to 777 on the slideshow folder and all images did not help.

dreed47’s picture

When you view the page source do you see the javascript in the fade_slideshow.js.inc file?

markimark’s picture

Hi, thanks- yes, viewing the page source shows the pasted-in content from the fade_slideshow.js.inc file. Here is the header snippet (there is a lot more I have not included) from that inserted file:

/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
---------------------------------------------------------------------------

Also, I see that the pictures I placed in the files/slideshow_images folder are assigned to the fade- slideshow array as shown below:

var fade_images_1=new Array();fade_images_1[0]=["/files/slideshow_images/default_premium.jpg", "", ""];fade_images_1[1]=["/files/slideshow_images/default_premium_thumb.jpg", "", ""];fade_images_1[2]=["/files/slideshow_images/paper.jpg", "", ""];fade_images_1[3]=["/files/slideshow_images/premium_sample_mug.jpg", "", ""];fade_images_1[4]=["/files/slideshow_images/premium_sample_mug_thumb.jpg", "", ""];new fadeshow(fade_images_1, 550, 450, 5, 3000, 0)

Thank you!

dreed47’s picture

Where are you embedding the slideshow? In a block? a node body? somewhere in a template? If it's in a block or node do you have the filters set to php? Try embedding this another way. In other words, if you are trying to embed it in a block but it's not working try to insert it directly in your page.tpl.php template.

markimark’s picture

So far, I have tried embedding the slideshow in a node and a block, but the filters are set correctly. I think I have detected the problem, but am not sure how to fix it:

When I look at the html code with firefly, the URL on the page looks like this:

img border="5" src="http://mark-laptop:8080/files/slideshow_images/default_premium_thumb.jpg"/

However, the URL is formed incorrectly and is missing part of the path- it should look like this:

img border="5" src="http://mark-laptop:8080/drupal5/files/slideshow_images/default_premium_thumb.jpg"/

Note the difference in the two paths and the missing "drupal5" in the first URL path. If I correct the path in the debugger, then the images show up.

I think the path is formed in the fade_slideshow.module php code, but I am not sure how to fix it so the URL path is formed correctly and includes the missing "drupal5". I have many other modules installed and this is the only one I have this trouble with, so I am fairly confident it is a module problem. All my modules are installed in the same sites/all/modules folder.

Any ideas about how to fix the issue are greatly appreciated!

dreed47’s picture

Try changing line 126 to read:

  $files = _fade_slideshow_explore_dir('.' . $base_path . '/files/' . variable_get( "fade_slideshow_image_dir_ss" . $show, 'slideshow_images/') . '/');
markimark’s picture

Status: Active » Fixed

Thank you, der! I had tracked it to that line, but don't know javascript well enough to make the fix.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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