More SlideshowPro fun

suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-04-27 02:54

Judging by the popularity of my Gallery -> SlideshowPro script.
I was thinking there may be more than a few interested in a great way of displaying your gallery driven slideshows via SlideshowPro.

SlideshowPro's recent newsletter contained some very cool modal samples. Not being outdone I whipped one up based on jQuery's Thickbox.
The results are quite slick.
http://www.flashyourweb.com/media/index.php?g2_itemId=32 <- Launch SSP via the little green slideshow button.
Nicer then your average lytebox by far. Although I'm still partial to Cooliris ;)

Interested in the method, let me know.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Fotographer

Joined: 2007-03-23
Posts: 110
Posted: Tue, 2009-05-05 03:24

I just took a look, and I'm impressed, great job & design. (as well as functionality)

Gallery3 - "Third time's the charm".

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-05-06 19:02

I also added the same modal view to my videos http://www.flashyourweb.com/media/index.php?g2_itemId=30
each indavidual video has its own as well as the slideshow pro view.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Tue, 2009-09-08 19:21

I'm not sure if this forum is still active. I just set up Gallery2 for couple weeks and have been looking for a better slideshow than the one comes with Gallery2. I checked out your site http://www.flashyourweb.com/media/index.php?g2_itemId=32 and the slideshow via the 'green button' is what I've been looking for. I'm interested to know how did you set that up and if it is something that I can add to my Gallery2 site. I'm currently using Gallery v2.3 and Carbon theme.

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-09-08 21:45

Lemme know when you have the above as they are required.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Mon, 2009-09-14 15:28

Thanks for your quick reply! Sorry, I did not reply back sooner. I downloaded SlideshowPro, SSP script, jQuery and Thickbox. I downloaded the SlideshowPro (for Slash) trial version for now, since I'm not sure if I'm able to get it works on my Gallery site. I'm fairly new to Gallery2 and PHP. Based on SlideshowPro website, this version has the full functionalities, just that it can only show up to 3 pictures in an album. Please let me know if these are good enough to go forward!

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-09-15 02:55

upload slideshowpro.swf from the standalone sample directory to yoursite.com/gallery2
then you need to create a blank php page containing only slideshowpro contents:

<?php
$g2_itemId = isset($_REQUEST['g2_itemId'])? $_REQUEST['g2_itemId'] : 32; // 32 is my default g2_itemId


echo sprintf('
<script type="text/javascript" src="/gallery2/modules/flashvideo/lib/swfobject.js"></script>
<div style="width:100%%;" align="center">
	<div id="flashcontent" style="width:860px;height:580px;" align="center">
		This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
	</div>		
</div>

<script type="text/javascript">
// <![CDATA[
	var so = new SWFObject("http://%s/gallery2/slideshowpro.swf", "ssp_demo", "100%%", "100%%", "9.0.115.0", "ffffff");
	so.addParam("flashVars","paramXMLPath=http://%s/gallery2/param.php?g2_itemId=%s");
	so.useExpressInstall("expressInstall.swf");
	so.addParam("allowScriptAccess","always");
	so.addParam("wmode","transparent");
	so.addParam("allowFullScreen","true");
	so.write("flashcontent");
// ]]>
</script>', $_SERVER["HTTP_HOST"], $_SERVER["HTTP_HOST"], $g2_itemId);
?>

save as thickSSP.php and upload to yoursite.com/gallery2
create another blank php page contents:

<?php
header('Content-Type: text/xml; charset=UTF-8');
echo sprintf('
<?xml version="1.0" encoding="UTF-8"?>
<params>
<customParams 
	sspWidth="860"
	sspHeight="580"
	sspSWFPath="http://%s/gallery2/slideshowpro.swf"	
/>
<nativeParams
	albumBackgroundAlpha="100"
	albumBackgroundColor="0x303030"
	albumDescColor="0xCCCCCC"
	albumDescSize="9"
	albumPadding="8"
	albumPreviewScale="Proportional"
	albumPreviewSize="54,40"
	albumPreviewStrokeColor="0xFFFFFF"
	albumPreviewStrokeWeight="1"
	albumPreviewStyle="Inline Left"
	albumRolloverColor="0x262626"
	albumStrokeAppearance="Visible"
	albumStrokeColor="0x141414"
	albumTextAlignment="Left"
	albumTitleColor="0xFFFFFF"
	albumTitleSize="10"
	audioLoop="Off"
	audioPause="Off"
	audioVolume="75"
	autoFinishMode="Switch"
	cacheContent="None"
	captionAppearance="Overlay Mouse Over (If Available)"
	captionBackgroundAlpha="60"
	captionBackgroundColor="0x676767"
	captionHeaderAppearance="Image Count"
	captionPadding="5,5,5,5"
	captionPosition="Top"
	captionTextAlignment="Left"
	captionTextColor="0xEEEEEE"
	captionTextSize="9"
	contentAlign="Center"
	contentAreaBackgroundAlpha="100"
	contentAreaBackgroundColor="0xE4E4E4"
	contentAreaStrokeAppearance="Visible"
	contentAreaStrokeColor="0x676767"
	contentFormat="Normal"
	contentFrameAlpha="0"
	contentFrameColor="0x262626"
	contentFramePadding="0"
	contentFrameStrokeAppearance="Hidden"
	contentFrameStrokeColor="0x333333" 
	contentOrder="Sequential"
	contentScale="Downscale Only"
	directorLargeImageSettings="80,1,100"
	directorThumbImageSettings="50,1"
	displayMode="Auto"
	feedbackBackgroundAlpha="80"
	feedbackBackgroundColor="0x676767"
	feedbackHighlightAlpha="30"
	feedbackHighlightColor="0xE4E4E4"
	feedbackPreloaderAlign="Center"
	feedbackPreloaderAppearance="Pie"
	feedbackPreloaderPosition="Inside Content Area"
	feedbackScale="100"
	feedbackTimerAlign="Top Right"
	feedbackTimerAppearance="Visible"
	feedbackTimerPosition="Inside Content Area"
	galleryAppearance="Closed at Startup"
	galleryBackgroundAlpha="100"
	galleryBackgroundColor="0x1c1c1c"
	galleryColumns="2"
	galleryOrder="Left to Right"
	galleryPadding="10"
	galleryRows="4"
	galleryNavActiveColor="0x303030"
	galleryNavAppearance="Hidden"
	galleryNavInactiveColor="0x000000"
	galleryNavRolloverColor="0x262626"
	galleryNavStrokeAppearance="Visible"
	galleryNavStrokeColor="0x141414"
	galleryNavTextColor="0xCCCCCC"
	galleryNavTextSize="9"
	iconInactiveAlpha="10"
	iconShadowAlpha="60"
	keyboardControl="On"
	mediaPlayerAppearance="Visible"
	mediaPlayerBackgroundAlpha="25"
	mediaPlayerBackgroundColor="0x000000"
	mediaPlayerBufferColor="0x000000"
	mediaPlayerControlColor="0xFFFFFF"
	mediaPlayerElapsedBackgroundColor="0xFFFFFF"
	mediaPlayerElapsedTextColor="0x000000"
	mediaPlayerIconColor="0xCCCCCC"
	mediaPlayerPosition="Bottom"
	mediaPlayerProgressColor="0xCCCCCC"
	mediaPlayerScale="80"
	mediaPlayerTextColor="0xEEEEEE"
	mediaPlayerTextSize="9"
	mediaPlayerVolumeBackgroundColor="0x000000"
	mediaPlayerVolumeHighlightColor="0xCCCCCC"
	navAppearance="Always Visible"
	navBackgroundAlpha="100"
	navBackgroundColor="0xFFFFFF"
	navButtonsAppearance="Hide Gallery Control"
	navGradientAlpha="30"
	navGradientAppearance="Smooth Light"
	navIconColor="0x676767"
	navLinkAppearance="Thumbnails"
	navLinkCurrentColor="0xEEEEEE"
	navLinkPreviewAppearance="Visible"
	navLinkPreviewBackgroundAlpha="100"
	navLinkPreviewBackgroundColor="0xFFFFFF"
	navLinkPreviewScale="Proportional"
	navLinkPreviewSize="240,200"
	navLinkPreviewStrokeWeight="1"
	navLinkRolloverColor="0x505E65"
	navLinkSpacing="10"
	navLinksBackgroundAlpha="100"
	navLinksBackgroundColor="0xCCCCCC"
	navNumberLinkColor="0x999999"
	navNumberLinkSize="9"
	navPosition="Bottom"
	navThumbLinkBackgroundColor="0xCCCCCC"
	navThumbLinkInactiveAlpha="100"
	navThumbLinkShadowAlpha="60"
	navThumbLinkSize="30,30"
	navThumbLinkStrokeWeight="1"
	permalinks="Off"
	smoothing="Off"
	soundEffects="None,None,None"
	textStrings="Previous Screen,Next Screen,Screen,of,No caption,No title"
	transitionDirection="Left to Right"
	transitionLength="2"
	transitionPause="4"
	transitionStyle="Cross Fade"
	typeface="Lucida Grande,Lucida Sans Unicode,Verdana,Arial,_sans"
	typefaceHead="Lucida Grande,Lucida Sans Unicode,Verdana,Arial,_sans"
	typefaceEmbed="Off"
	videoAutoStart="Off"
	videoBufferTime="0.1"
	xmlFilePath="http://%s/gallery2/ssp.php?g2_itemId=%s&amp;g2_maxImageWidth=1040&amp;g2_maxImageHeight=1040"
	xmlFileType="Default" />
</params>', $_SERVER["HTTP_HOST"], $_SERVER["HTTP_HOST"], $_REQUEST['g2_itemId']);
?>

save as param.php and upload to yoursite.com/gallery2

you'll also need to configure ssp.php you got from mysite and upload to yoursite.com/gallery2

if your gallery is not in the default location(yoursite.com/gallery2) you'll need to edit these scripts to reflect your setup.

get thickSSP.php working, and we'll move on to altering your theme.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Tue, 2009-09-15 21:08

Hi,

I think I got the thickSSP.php to work. I'm able to see the pictures from the album that I set the g2_itemId in thickSSP.php file.
What's next?
FYI, I'm using Carbon theme.

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-09-15 21:45

ok,
we need to reference jquery and thickbox in theme.tpl
so in gallery2/themes/carbon/templates/local/theme.tpl <- you may have to copy the original here
add these lines:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="/gallery2/thickbox/thickbox-compressed.js" type="text/javascript"></script>
<style type="text/css" media="all">@import "/gallery2/thickbox/thickbox.css";</style>

notice that you'll need to copy your thickbox to gallery2/thickbox
done with theme.tpl, lets move on to album and photo.tpl
again you should copy the originals to gallery2/themes/carbon/templates/local/ and work on them instead of the originals
in each, there should be a loop for item links:

{foreach from=$links item=itemLink}
.
.
.
{/foreach}

there should already be a reference to the slideshow module {if $itemLink.moduleId == "slideshow"}
for photo.tpl:

		  <td class="gsActionIcon">
		    <a title="SlideshowPro" class="thickbox" href="/gallery2/thickSSP.php?height=590&amp;width=870&amp;g2_itemId={$theme.parent.id}">View SlideshowPro</a>
		  </td>

and album.tpl:

		  <td class="gsActionIcon">
		    {if $theme.item.entityType != 'GalleryDynamicAlbum'}<a title="SlideshowPro" class="thickbox" href="/gallery2/thickSSP.php?height=590&amp;width=870&amp;g2_itemId={$theme.item.id}">View SlideshowPro</a>{/if}
		  </td>

clear your template cache a try it out :)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Wed, 2009-09-16 01:40

Hi,

Following your instructions and got it to work kind of. I still have an issue which in my configuration. My Gallery site URL (as part of installation, I believe) is http://gallery.mysite.com instead of http://mysite/gallery2, so I can get to SSP which direct URL but not when I'm logging to my Gallery. Any suggestions?

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-09-16 02:14

So is the link in the album incorrect?
adjust them as needed.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Wed, 2009-09-16 03:16

I edited all the files that your mentioned and remove all the 'gallery2/' from the links. It is working now except for 'hide' albums. If I access to my hide albums without log in, I just get a spinning circle in SSP. Since I don't have many users or hide albums, this would be ok. I can use the default slideshow for these users and albums.

Thank you very much for all your help! You rock!!!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-09-16 10:57

Hidden albums alter permissions.
I'm not sure if this will help, but try changing function getDisabledFlag in ssp.php to always return false:

function getDisabledFlag($itemId) {
    return false;
}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
dragonflynp

Joined: 2009-09-08
Posts: 6
Posted: Wed, 2009-09-16 12:27

That works. I also bought the SSP and replaced the trial version. It works great! Thanks so much!

 
Marc Hoefman

Joined: 2007-12-31
Posts: 6
Posted: Mon, 2009-10-12 17:21

This is great :-)))

This is just what I needed to get SSP working in Gallery2. I installed specially a Gallery 2.3 in the root of my domain to get things going quickly.

I only had to search where the jquery.js had to go. Installed it in the thickbox subfolder and added a script reference in the theme.tpl for this.

Remaining task now for me is now to find which files (and which lines) to change for having Gallery2 with SSP in my_domain.com/this_subdomain/

Some questions:

- Would there be a method to avoid editing the files each time I create a new subdomain installation?

- Is it also possible to use, besides the standalone SSP, the SSP for flash also?

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-10-12 21:53
Quote:
Would there be a method to avoid editing the files each time I create a new subdomain installation?

If all setups are going to be the same, you can use relative paths and urls ie.

	    require_once( 'embed.php');
	    $ret = GalleryEmbed::init(array('fullInit' => true, 'embedUri' => '/gallery2/main.php', 'g2Uri' => '/gallery2/'));
Quote:
- Is it also possible to use, besides the standalone SSP, the SSP for flash also?

There was a forum where I explain how to customize ssp in flash yourself but you'll have to search for it.
I believe it was my forums.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Marc Hoefman

Joined: 2007-12-31
Posts: 6
Posted: Wed, 2009-10-14 11:11

Have now installed a gallery2 in a specific subdomain and changed wherever I could find the reference /gallery2 into /my_subdomain/gallery2

This change was applied in
- thickSSP.php
- ssp.php
- param.php
- album.tpl of carbon theme
- photo.tpl of carbon theme
- theme.tpl of carbon theme

Slideshowpro executes about as expected except

1. When ViewSlideshoPro is clicked, I get for a short time an icon (white with red cross) indicating that an image is not avalaible. I guess this is the time it takes to load thickbox/ssp. Is there a way to speed up the loading?

2. In attached file you will see that the miniature is scaled with visible pixels. What is to be done to avoid this?

Thank you very much for all your help!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-10-14 12:34

Change it back.
Relative is from the site's root - domain.com/
A subdomain site's root - subdomain.domain.com/

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Marc Hoefman

Joined: 2007-12-31
Posts: 6
Posted: Wed, 2009-10-14 16:06

I went back and changed like you advised. It works :-)

Really thank you for the same day replies. This makes me jumping forward :-)

I am now at the last step... looking into how/where to change the G2/carbon sidebar for having slideshowpro instead of piclens.

So far, I have no idea were this functions resides and what to do :-(

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-10-14 21:52

gallery2/modules/core/templates/blocks/sidebar.tpl I believe.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Marc Hoefman

Joined: 2007-12-31
Posts: 6
Posted: Thu, 2009-10-15 05:40

Ok, I will look into it together with the Drupal embedding of G2.

Either link ssp from the sidebar, delete the slideshow option from the sidebar or in worst case hide the sidebar through css.

Again many thanks for all your help :-)

 
JayW

Joined: 2007-05-30
Posts: 4
Posted: Wed, 2010-03-03 10:41

The page for jQuery and Thikbox say that it's no longer supported:

Quote:
While Thickbox had its day, it is not maintained any longer, so we recommend you use some alternatives.

* colorbox
* jQueryUI Dialog
* fancybox
* DOM window
* shadowbox.js

-The Management. 9.30.2009 (and Paul Irish)

Would you recommend using it anyway or working with one of the other libraries?

-jay

suprsidr wrote:

Lemme know when you have the above as they are required.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-03-03 11:23

Mine is still setup w/ Thickbox, and I have not seen any compatibility issues w/ jQuery 1.4 but this is just the modal window slideshow pro is the real focus for you.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-04-23 03:57

Just a heads up
Added a new OPML generator for G2 to create a multiple album xml feed for SSP

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
eliz82

Joined: 2009-11-06
Posts: 71
Posted: Mon, 2010-05-31 19:10

i have made some tests with opml. let say i have a G2 structure like this, where id1 is the root album of a user

album_id1---album_id2---files
            album_id3---album_id4---files
                     ---files
            album_id5---album_id6---files
                     ---album_id7---files
            ---files

I have set:
xmlFilePath= $site /gallery2/opml.php?g2_itemId=1, slideshowPro only show me the albums id 2 & 3 (only the first sub-albums that contain files)

can i make it show me all the albums that contain files ?
i have tried $site /gallery2/opml.php?g2_itemId=1&g2_itemId=5 or $site /gallery2/opml.php?g2_itemId=1?g2_itemId=5 or $site /gallery2/opml.php?g2_itemId=1&recursive=true ... but nothing seems to work

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-05-31 19:24

OPML only adds direct children of the id specified that contain valid types.
It is not recursive.
but line 68 is the conditional if you want to play with it.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2