Forum Index > FlashYourWeb Development > FlashYourWeb - Design & Support New Topic Post Reply
 SSP Module
 |  Printable Version
suprsidr
 June 27 2008 14:34 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

I'm having the same problem

Which problem?

The version I offer for download is from March - newer then the one I use Wink.
I certainly have some newer functions, but I do not have a version prepared.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Rob
 June 30 2008 07:25 AM  


Quote by: suprsidr

I'm having the same problem

Which problem?

The version I offer for download is from March - newer then the one I use Wink.
I certainly have some newer functions, but I do not have a version prepared.

-s



Sorry for being vague. The problem I have is that ssp.php pulls only the original images which are around 3mb. I saw the mediarss.php allowed you to query smaller ones and was wondering if ssp would do the same. Thanks again!!


 
Quote
suprsidr
 June 30 2008 18:16 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Just updated with all available functionality as mediaRss.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Maikel
 July 03 2008 06:12 AM  


Hello,

I've trying to get ssp and g2 working together, but I just can't get it to work. As soon as I replace the minislideshow movie with my own (standard flash plugin from ssp) the movie won't load any pictures or navigation. I've tried to use the mentioned p15 of the ssp customization doc and tried different variations.

- Do you all used Flash cs3 or a older version?
- What do fill in the parameter xml file path?
- What should be selected in the parameter xml file type?

- Does somebody have a webpage where I can view the source code of a working project? I've tried the standard html generated page from flash with AC_RunActiveContent.js , the demo on http://www.flashyourweb.com/staticpages/index.php?page=ssp_demo and the embed code on http://www.flashyourweb.com/staticpages/index.php?page=mini_2.0.5. None of these html structures seem to get the movie running. I just don't know what the problem is.

Is somebody willing to help me get this working?

Thanks,

Maikel


 
Quote
suprsidr
 July 03 2008 07:04 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Maikel,
Its been a while since I made that demo, and we don't use ssp very often, but I was able to find my original example.

you can assign your xml in actions:
in CS3:
create an actions layer and lock it.
select frame 1 of your movie.
open the actions panel (F9)

my ssp instance name.xmlFilePath = xmlUrl;

and then my sample embed should work.

-s


There will always be...
 
Profile Email Website
Quote
Neil N
 July 11 2008 19:52 PM  
Forum Newbie
Newbie

Status: offline

Registered: 07/11/08
Posts: 1

supersidr,

Will SSP/Slideshow Pro or any other solution you are aware of work with Keyword Albums? The goal is to be able to have a physical jpg on the server be included in multiple gallerys/albums/subalbums/flash slideshows, etc. Keyword Albums are the only way I can see to do that in Gallery. However, I'm open to any solution, open source or commercial, that would make this doable. Thanks for any insight, I know you've got extensive experience in this area.

___
Neil


 
Profile Email
Quote
suprsidr
 July 11 2008 20:01 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

My ssp.php can be used exactly like my mediaRss.php for my minislideshow, including keywordAlbums.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Luke
 October 08 2008 06:00 AM  


I've just found this great little addon!

I've got it working with Gallery 2 and SSP.

Two quick questions...

1. Anyway to get it working with hidden albums and albums not shown in the image block?

I saw a post about adding 'activeUserId' => to the GalleryEmbed but couldn't get it to work.

2. Any way to get it to produce the XML required to display nested albums?

ie. Gallery Album 1 contains Gallery Album 1a, 1b and 1c.

Use ssp.php to produce an SSP slideshow containing albums 1a, 1b and 1c?

Many thanks.


 
Quote
suprsidr
 October 08 2008 06:55 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

For recursive simply set recursive=true ie.
ssp.php?g2_itemId=49&recursive=true

if you want to disable the imageBlock disabled check, edit function getDisabledFlag to read:

PHP Formatted Code

    function getDisabledFlag($itemId) {
        return false;
    }
 

as for setting an active userId....
'activeUserId' => is for external userId as in when gallery is embedded in a cms.
But we can use $gallery->setActiveUserId($id); or $gallery->setActiveUser($user); but the viewer will basically get logged-in and will have any rights that your $user has, and if they are already logged-in elsewhere, there would certainly be a session collision.
You could also try to edit function hasPermission to return true always, but gallery catches that as well.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Luke
 October 08 2008 17:54 PM  


Thanks for the reply.

I'd actually like the "recursive" functionality to create multiple albums in slideshowpro. Not a single album containing all images.

I can see the correct XML seems to be generated with recursive=true but the images aren't loading in slideshowpro - I'll continue to try to work out what the problem is there.

Also on my wishlist (so far)...
SlideShowPro Album Preview image functionality


I'll keep working Smile




 
Quote
suprsidr
 October 08 2008 19:37 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

I'm not sure albums can be done the way SSP is setup. Its looking for a path which we cannot provide.

You could also use the dynamic album option as its also recursive.
something along the lines of:
ssp.php?mode=dynamic&g2_view=dynamicalbum.RandomAlbum&g2_albumId=49
This way you can set the number of items to be displayed in gallery admin -> dynamic albums
This way you don't force everybody to load 100's of images.
or the recursive search for jpg images:
ssp.php?mode=search&g2_itemId=49&mime=image/jpeg

More on that here. Just replace the %26 with & for SSP


I also did do a nice tooltip tutorial. Wink

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Brian
 January 21 2009 16:50 PM  


I know this topic is a bit old but suprsidr, do you have any more in depth walkthroughs / whitepaper for using your ssp.php for the less code savvy? I have SlideShow Pro running with an install of G2 and I want G2 to feed the images to SSP.

Thanks in Advanced.


 
Quote
suprsidr
 January 21 2009 18:05 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Are you using param.xml to customize your ssp?
you can set the xmlFilePath to point to your ssp.php
xmlFilePath="http://yoursite.com/gallery2/ssp.php?g2_itemId=your_g2_itemId"

-s


There will always be...
 
Profile Email Website
Quote
ugcbrian
 January 21 2009 18:45 PM  
Forum Newbie
Newbie

Status: offline

Registered: 01/21/09
Posts: 1

Yes, using the component inspector I set the xmlFilePath to the one you listed (Updated the url for my site)
But it appears the images are not loading. To test the ssp.php file I did go directly to the URL with the itemID attached and it does populate data.




EDIT:


Took another look at the code I had in the index.html and I had something misspelled. It is working correctly now.

Thanks again.


 
Profile Email
Quote
suprsidr
 January 21 2009 19:16 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

You can pass the g2_itemId around to make your slideshow dynamic
on our demo, I pull the g2_itemId from the url and pass it to the params.xml
this is the underlying code:

PHP Formatted Code

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


echo sprintf('
<div style="width:90%%;" align="right"><a id="mainPageUrl" title="Back" href="javascript:history.go(-1)"><h2>Back</h2></a></div>
<script type="text/javascript" src="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("loader.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"], $g2_itemId);
?>
 

I also created a dynamic param.xml file using php to output xml
param.php
PHP Formatted Code

<?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"
        xmlFileType="Default" />
</params>'
, $_SERVER["HTTP_HOST"], $_SERVER["HTTP_HOST"], $_REQUEST['g2_itemId']);
?>
 


So we basically pass the g2_itemId twice.

And to add a link in your gallery template:
PHP Formatted Code

{if $theme.pageType == 'album'}
                  <td class="gsActionIcon">
                    <a title="View SlideshowPro" href="http://www.yoursite.com/gallery2/myslideshow_page.php?g2_itemId={$theme.item.id}">View SSP</a>
                  </td>
{/if}
{if $theme.pageType == 'photo'}
                  <td class="gsActionIcon">
                    <a title="View SlideshowPro" href="http://www.yoursite.com/gallery2/myslideshow_page.php?g2_itemId={$theme.parent.id}">View SSP</a>
                  </td>
{/if}
 


Simple.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Blackice
 March 12 2009 04:00 AM  


Suprsidr

In your January 21st example of passing the g2_itemId around to make the slideshow dynamic - where do I put the first PHP formatted code example does this go into the pages html? also the same with the gallery template code does that go into a seperate file or is there a specific file the code has to be pasted into?


 
Quote
suprsidr
 March 12 2009 05:13 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

The first example would be a simple php page you create anywhere and actually renders the slideshow.
There is a reference to swfobject.js which you can find in /modules/flashvideo/lib/.

The second would be named param.php to be created in your gallery2 directory along side slideshowpro.swf and loader.swf.

The link you would want in album.tpl and photo.tpl and maybe even sidebar.tpl where ever you want your link to show.
My example was from the carbon theme which uses a table to format the links, you may need to remove the columns(<td>Wink for proper formatting in your theme.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Blackice
 March 12 2009 05:56 AM  


Thanks Suprsidr


 
Quote
Anonymous: laurentius
 April 05 2009 16:04 PM  


Hi suprsidr,

Thank you very much for this piece of code. Works very well. Yet, I have a little problem, or, well more a feature request. SSP supports several albums to be initiated from within SSP. Since SSP support OPML this kind of works now by simply adding several XML-feeds, using ssp.php.

But, ssp.php doesn't generate albun title, nor "album image" so the album shortcuts from within SSP works, but they are just black, empty boxes. Do you have any tips on how to resolve the issue?

Thanks, and best regards.

Laurentius


 
Quote
suprsidr
 April 05 2009 17:05 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

If you tell me what nodes are required to supply that info to ssp, I can supply the code to generate the nodes.
I don't use ssp, so I'm not well versed with it or its features.

-s


There will always be...
 
Profile Email Website
Quote
Content generated in: 0.35 seconds
New Topic Post Reply



 All times are PDT. The time is now 07:33 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content