File Management

Main : Free Gallery Apps : 
Category: Free Gallery Apps Submitted by: suprsidr
  Slideshow module v.2.1.x for Gallery2    Popular

Latest update for Gallery2's slideshow module.

This version replaces the old PicLensLite slideshow with the new embeddable3D wall when the browser plugin is not detected.

Defaults back to lytebox if Flash is not present.

Also fixed the itemLinks issue.

6/28/2010 fixed Chrome launch issue.

11/15/2011 fixed lytebox when no flash present

Report findings/suggestions here.

-s

*note:
If you don't already have one, you'll need a crossdomain.xml in your site's root ie. http://www.yoursite.com/crossdomain.xml not http://www.yoursite.com/gallery2/crossdomain.xml

  Ver:  2.1.1  Date: Nov.15.11   Rating: 10.00(1)   2065     175.15 KB  
6 comments |  Download |  File Link |  Rate this File |  Report Broken File  | 

Found bug... here's patch | 6 comments | Anonymous Logout
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Found bug... here's patch
Authored by: Anonymous on Wednesday, March 09 2011 @ 05:32 PM PST
I was experiencing issues displaying the slideshow in *some* albums that contained video files. This is weird as all my videos are from the same camera and have been uploaded in the same manner... Anyway, I was getting this error:

Fatal error: Call to a member function getMimeType() on a non-object in /home/toddgee_web/webroot/gallery.toddgee.com/modules/slideshow/classes/SlideshowHelper.class on line 193

The issue was the '$preferredFullImages[$childId]' was null so the getMimeType() method was causing a null-pointer (I'm a Java dev :^)

Here's the diff I used to fix it:

[toddgee@toddgee.com classes]$ diff SlideshowHelper.class SlideshowHelper.class.bak
191,200c191,194
< if (
< GalleryUtilities::isA($child, 'GalleryPhotoItem') ||
< (
< GalleryUtilities::isA($child, 'GalleryMovieItem') &&
< ($child->getMimeType() == 'video/x-flv' ||
< (!empty($preferredFullImages[$childId]) && $preferredFullImages[$childId]->getMimeType() == 'video/x-flv')) &&
< $picLensVersion &&
< $browserPlugin
< )
< ) {
---
> if (GalleryUtilities::isA($child, 'GalleryPhotoItem') ||
> (GalleryUtilities::isA($child, 'GalleryMovieItem') &&
> ($child->getMimeType() == 'video/x-flv' || $preferredFullImages[$childId]->getMimeType() == 'video/x-flv')
> && $picLensVersion && $browserPlugin)) {

Sorry it's not in standard diff format -- too tired to look that up right now. Also sorry I reformatted the parens -- was trying to figure out the nesting and I left it when I got it working.

cheers,
todd
toddgee.com