slideshow choices in Gallery2
|
Marc Hoefman
Joined: 2007-12-31
Posts: 6 |
Posted: Thu, 2009-03-12 19:26
|
|
Setting up a Drupal site Gallery 2.3 I noted that the "old" slideshow has been replaced by 2 new options which are not so attractive to me and would like to suggest some additional choices 1. The Cooliris slideshow is splendid but.... there seems no means to customize a number of things: 2. As fallback there is the Lite version which can be customised to some extend but, not being a programmer, it looks impossible to change some of the shortcomings that I see: I tried to step back to the "old" slideshow I knew from the previous Gallery version but... no luck... after ftp loading the libraries it is not possible to activate the plug-in. I can only do an upgrade which brings me back to...yes... Cooliris and Lite version. When looking around what is available on 'the market' I found 2 slideshows with serious potential: Both look good alternatives to Cooliris while it looks at first glance that they having customisation options available. For sure I value Menalto gallery but feel that 'slideshows' remain a weakness in the Gallery. Any feedback is appreciated |
|

Posts: 6136
Gallery2 -> SSP
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
I too recently upgraded to Gallery 2.3 and was surprised with the change in slideshow options. I am bothered by the CoolIris slideshow in that it is included with Gallery as the default, yet it does not appear to be an Open Source project. Rather, it seems to be an advertisement for other CoolIris software. I don't think it's wrong for there to be a CoolIris plugin for Gallery. I'm certainly all for that... I just don't want to be running it on my site. My visitors should not be required, or even tempted to install anything on their computers when they visit my site.
I am MUCH happier using the fallback lytebox slideshow... though I think it could use some improvements. When a user exits a slideshow that was launched into a new window or new tab, the slideshow exits to a blank screen without any links back to the gallery. This seems like a bug to me. Everything works fine when the slideshow is opened in an existing window. This is only a problem when launching a slideshow into a new window or tab.
I am running the slideshow plugin posted here. This version allowed for serving intermediate sized images and for changing the delay between images. (both good changes)
Posts: 6136
gallery2/modules/slideshow/templates/Slideshow.tpl line ~48:
history.go(-1);to:
{/literal}location.href='{$Slideshow.returnUrl}';{literal}Clear your template cache and let me know if it works ;)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
I changed the goBackOnStop function to look like this.
function goBackOnStop() { var el = document.getElementById('lbOverlay'); if (el && el.style.display != 'none') { setTimeout('goBackOnStop()', 1000); } else { {/literal}location.href='{$Slideshow.returnUrl}';{literal} } }It returns this in the page source.
function goBackOnStop() { var el = document.getElementById('lbOverlay'); if (el && el.style.display != 'none') { setTimeout('goBackOnStop()', 1000); } else { location.href=''; } }Now the slideshow starts over when you try to exit.
Posts: 6136
Looks like the $Slideshow.returnUrl is undefined.
We never really expected this which is why we used history.go(-1);
Let me see why $Slideshow.returnUrl is undefined. If I recall it's for cooliris, but should be easily extended to lytebox.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6136
I cannot reproduce your error.
For me the $Slideshow.returnUrl populates correctly.
So how are you launching into a new tab or window?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
I tried this in IE and it doesn't behave the same as it does in Firefox. So with this change I have the problem in Firefox and not IE. Without the change I have the problem in both Firefox and IE.
I'm not sure why $Slideshow.returnUrl isn't populating.
Posts: 6136
So how are you launching into a new tab or window?
Have you altered the link to target="_blank" or right-clicking....
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
I'm sorry. I forgot to answer that. I'm right clicking and selecting "Open Link in New Tab".
Posts: 6136
oops, I was right the returnUrl was for cooliris.
let's remedy that shall we?
/gallery2/modules/slideshow/Slideshow.inc
lines ~128 - 139:
if (GalleryUtilities::hasRequestVariable('return')) { /* Remove HTML entities */ $Slideshow['returnUrl'] = html_entity_decode(GalleryUtilities::getRequestVariables('return')); } if (empty($Slideshow['returnUrl'])) { $Slideshow['returnUrl'] = $urlGenerator->generateUrl( array('view' => 'core.ShowItem', 'itemId' => $Slideshow['startItemId']), $jsUrlParams); } $Slideshow['returnUrl'] = $urlGenerator->makeAbsoluteUrl($Slideshow['returnUrl']); }to:
} if (GalleryUtilities::hasRequestVariable('return')) { /* Remove HTML entities */ $Slideshow['returnUrl'] = html_entity_decode(GalleryUtilities::getRequestVariables('return')); } if (empty($Slideshow['returnUrl'])) { $Slideshow['returnUrl'] = $urlGenerator->generateUrl( array('view' => 'core.ShowItem', 'itemId' => $Slideshow['startItemId']), $jsUrlParams); } $Slideshow['returnUrl'] = $urlGenerator->makeAbsoluteUrl($Slideshow['returnUrl']);basically just move the curly to the top of the code block. Moving the returnUrl out of the conditional statement.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
That fixes the problem. Thanks so much for all of your help!
I wonder if it would be best to use $Slideshow.returnUrl only if history.go(-1) doesn't take us anywhere. It would allow the slideshow link to be posted somewhere else. If the user opens it in a new tab the returnUrl would take the user back to the album (assuming the link contained the g2_return parameter). If the user opens the link in the same window, the user will be returned to wherever they clicked the link. What's the best way to test to see if there's any page history?
Maybe that just makes things more confusing. I guess if there's a return parameter it should just be honored.
Posts: 7
I like the way the following code behaves. It allows the slideshow link to be used outside of the gallery.
if (history.length > 1){ history.go(-1); } else { {/literal}location.href='{$Slideshow.returnUrl}';{literal} }Posts: 6136
I already added similar to my working copy, and I'll update my downloadable package.
But it already passed through the review process(a long time ago) and is valiants capable hands.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2