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.


If you don't already have one, you'll need a crossdomain.xml in your site's root ie. not

  Ver:  2.1.1  Date: Nov.15.11   Rating: 10.00(1)   2091     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/ 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:

[[email protected] classes]$ diff SlideshowHelper.class SlideshowHelper.class.bak
< 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.