Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
CMS & Slideshow Pro (LR2)

 

 


drewh01
User

Mar 18, 2009, 5:09 PM

Post #1 of 25 (17834 views)
Shortcut
CMS & Slideshow Pro (LR2) Can't Post

Has anyone here been able to get SlideShow Pro to work with CMS Builder? I am exporting the files using Lightroom 2 and having problems to get the gallery to display on the detail view page properly.

I can send more info if I know what to post.....


Damon
Staff / Moderator


Mar 19, 2009, 9:44 AM

Post #2 of 25 (17804 views)
Shortcut
Re: [drewh01] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Here is a page with details about using Using SlideShowPro With CMS Builder:
http://www.interactivetools.com/docs/cmsbuilder/slideshowpro.html

Hopefully that helps.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/


drewh01
User

Mar 19, 2009, 10:22 AM

Post #3 of 25 (17800 views)
Shortcut
Re: [Damon] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Does this work with the Lightroom 2 version of SSP? Or the newest standalone player?

The standalone, Flash version and LR2 are all different I believe.....

The LR2 version uses a lot of Javascripting and once I get to part 2 of the link you sent....things don't match up. Is there an updated version of these instructions?

For instance....

Here is some of the code taken from the standalone player:

<div id="flashcontent">
This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
</div>

<script type="text/javascript">
var so = new SWFObject("loader.swf", "loader", "650", "450", "8", "#FFFFFF");
so.addParam("allowFullScreen","true");
so.addParam("quality", "best");
so.addVariable("paramXMLPath","param.xml");
so.write("flashcontent");
</script>


drewh01
User

Mar 19, 2009, 12:25 PM

Post #4 of 25 (17790 views)
Shortcut
Re: [drewh01] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

**followup** (got it to work)

Note: Those posted instructions ONLY work with the Flash version of SSP.


sublmnl
User

Mar 20, 2009, 8:55 AM

Post #5 of 25 (17779 views)
Shortcut
Re: [drewh01] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

anyone have a demo of how it looks?


sublmnl
User

Apr 30, 2009, 7:42 PM

Post #6 of 25 (17448 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Got it to work.

Step one: Get SSP working outside the CMS for the Client
DONE.

Step Two: Get SSP working inside the CMS for the Client.

There are a few things that need to be done to get it to work right.
One thing I suggest is to set up cross-domain file for the 'www' users and non-users. http://wiki.slideshowpro.net/SSPfl/CP-Crossdomain

THe instructions here
http://www.interactivetools.com/docs/cmsbuilder/slideshowpro.html
are A-okay but the SSP instructions need some tweaking: http://wiki.slideshowpro.net/SSPfl/C-DynamicallyAssignXML

This step here:


Code
<param name="FlashVars" value="xmlfile=http://mydomain.com/myXML.xml&xmlfiletype=Default" />


I changed to this in mine:


Code
<param name="FlashVars" value="xmlfile=http://www.YourDomain.com/Path/to/images.xml.php?<?php echo $yourRecord['num'] ?>" />


This next piece of code here:


Code
<embed FlashVars="xmlfile=http://mydomain.com/myXML.xml&xmlfiletype=Default" ... (other attributes)>


I changed to this:


Code
 ... (other attributes) ... FlashVars="xmlfile=http://www.YourDomain.com/Path/to/images.xml.php?<?php echo $yourRecord['num'] ?>"


Sorry got a few more things to change:


Quote
Step Three (Flash CS3/CS4 only): Edit JavaScript
Flash CS3/CS4 users have an additional step -- modifying the inline JavaScript. Search the HTML document for a method named AC_FL_RunContent, followed by a descending list of comma-separated parameters. Anywhere in that list (the bottom is fine), add the following:

1.'FlashVars','xmlfile=http://mydomain.com/myXML.xml&xmlfiletype=Default'


Editing the AC_RunActiveContent.js globally is just plain crazy.
So I made a copy and I can call it for SSP all day long.
I copied it and placed it in my root JS folder and named it this:
AC_RunActiveContent_SSP.js

My new piece of JS for the above looks like this now:

Code
function AC_FL_RunContent(){ 
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash", "FlashVars", "xmlfile=http://YourDomain.com/Path/To/images.xml.php&xmlfiletype=Default"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}


On your Flash export, call that file instead and also call it in the JS on the page. Even in the IF/ELSE call I changed it -



Code
if (AC_FL_RunContent == 0) { 
alert("This page requires AC_RunActiveContent_SSP.js.");
} else


Few things I almost forgot to mention were the changes to the Fla file.
Change your pathway to the XML file:

Code
 /pathway/to/images.xml.php


Also don't forget to include your title, description, lgpath and tnpath and tn file in your gallery album code in the XML.PHP file. That way you have a pretty picture and some text to go by the gallery albums.
Granted the client won't be able to do this little portion of fixing the XML.PHP file but, think about it... you create a new upload record, make a new album tag in the XML.PHP file, add some values and its all him after that!



I'm working on creating another album in the CMS right now and will edit this or follow up once I get it working.

EDIT: got the second album working. just added another UPLOAD field to the section and edited the XML.PHP accordingly to add the new album. One issue, no captions are showing up. hmnnn?

Yall should hall of fame this post!

(This post was edited by sublmnl on May 1, 2009, 6:22 AM)


sublmnl
User

Apr 30, 2009, 8:48 PM

Post #7 of 25 (17444 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Anyone know how to get the captions or title to show up in the caption area?

this is what normal code looks like:

Code
<img src="01.jpg"  caption="Your Caption Goes Here"  />


this is what I tried in the XML.PHP:

Code
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['caption'] ?>" />

and this:

Code
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['title'] ?>" />


Which produced this in the caption area of SSP:

Notice: Undefined Index: title in /Path/To/images.XML.PHP on line 25

Help!? Please


(This post was edited by sublmnl on Apr 30, 2009, 8:48 PM)


ross
Staff / Moderator


May 1, 2009, 8:52 AM

Post #8 of 25 (17417 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi there.

I think you are on the right track here but when you are trying to call on the image attributes like title or caption you need to use info1 or info2 like this:

caption="<?php echo $upload['info1'] ?>"

I don't know for sure which one you'll need as that's something you customize in your own system. You can see what you've set though by going into the Section editor and looking at the advanced settings of your upload field.

Or your could just try info1, info2, info3 or info4 one after another. There's only 4 so it's a pretty quick thing to guess and check :).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



sublmnl
User

May 1, 2009, 10:50 AM

Post #9 of 25 (17412 views)
Shortcut
Re: [ross] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

You rule!

That works. Althought I don't know why the Title and Caption fields in the CMS are named title1, title2 and so on.
BUT,
it works!

EDIT: I checked the advanced upload fields and there are 5 total and the first two are named: Title and Caption.
I don't know what else you could use it for but if you had some need I bet with the PHP you could pull it out somehow.


This is what I am using:


Code
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['info1'] ?>"  />


this shows the TITLE field in the Image uploader in the CMS.
if you use info2, it picks up the caption field in the Image uploader in the CMS.

BINGO!

Thanks.

Now stickie this post for all the other IT-CMS monkeys out there! Cool


(This post was edited by sublmnl on May 1, 2009, 10:56 AM)


sublmnl
User

Oct 29, 2009, 9:07 PM

Post #10 of 25 (16389 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

I wanted to update this post with a question:

We have code like this for multiple albums in a gallery which causes us to come back and add more 'albums' to the gallery when a client wants them. We ask for a thumbnail, title and description - add it to the CMS and the xml file... and they're busy uploading after that.

Code
<gallery> 
<album title="Title of the Album" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/thumb/3591690865_4e254e3132_o.jpg" lgpath="/images/gallery/">

<?php foreach ( $photosRecord['may_30_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>

<album title="Title of the Album2" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/2009_03_17/thumb/3480849053_d58d631322_o.jpg" lgpath="/images/gallery/2009_03_17/">

<?php foreach ( $photosRecord['march_17_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>

<album title="Title of the Album3" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/2009_03_07/thumb/3480864873_b03d97e246_o.jpg" lgpath="/images/gallery/2009_03_07/">

<?php foreach ( $photosRecord['march_7_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>
</gallery>



Well, What if there was a way to have the gallery, pull from the section record that there was more than one and just write it out?

I'm not proficient enough in PHP to come up with an IF statement to pull more records if there are more but I imagine it can be done.

That way the client can just add away after we add the image upload to the CMS and the XML.PHP file 'knows' to just make another album.

anyone?


(This post was edited by sublmnl on Oct 29, 2009, 9:08 PM)


Dave
Staff / Moderator


Nov 2, 2009, 12:33 PM

Post #11 of 25 (16360 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi sublmnl,

You'd have to have fields for the album title, description, thumbnails, and path in the CMS so you could load those as well. Or some sort of naming convention so it knew what to output there. But basically if you had all your upload fields in one record you could loop over them and display albums like this:


Code
 
<gallery>

<?php foreach ($photosRecord as $field): ?>
<?php if (!is_array($field)) { continue; } // Skip non upload fields - we know they are all arrays or lists of images ?>

<album title="Title of the Album" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/thumb/3591690865_4e254e3132_o.jpg" lgpath="/images/gallery/">
<?php foreach ( $photosRecord[$field] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>

<?php endforeach ?>
</gallery>


You'd have to experiment to get the other fields in there, though.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


sublmnl
User

Mar 13, 2010, 6:32 PM

Post #12 of 25 (15513 views)
Shortcut
Re: [Dave] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hey gang, back again.
I've had a few clients that won't need more albums that often but one we have now.... I'm sure will need to add a bunch. Probably one or two a month.

So to avoid having to go back in there all the time, may I reopen this can of worms?

Dave, I think I follow what you're saying.
Basically put all the images within one upload, but have a checkbox or list to pick what album they belong in. (do I have that right?)

That may get kind of heavy, with our client having anywhere between 20 and 50 photos per album.

Also I've thought about this a lot....with as much (little) knowledge as you and a few others have taught me about PHP.
I'm at a loss as to how to go about writing this so it works and I've done some pretty complex stuff with you guys' help.

see categories
which I have used a bunch for product pages.... thx btw.


Chris
Staff


Mar 15, 2010, 5:08 PM

Post #13 of 25 (15490 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi sublmnl,

Let me make sure I understand:

Your client needs multiple galleries, each of which has one or more albums, each of which has one or more uploaded images, each of which has a caption (in addition to its URL)?

Or is there only ever one "gallery"?
Chris


sublmnl
User

Mar 15, 2010, 6:23 PM

Post #14 of 25 (15486 views)
Shortcut
Re: [chris] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Close!

For us There is always one Gallery but multiple Albums will be added over time.

thus the <gallery> tag in the XML
and mulptiple <album> tags.

The way it stands now we have to create the upload in the section in the CMS and then add the entry with Title, Description, Thumbnail, Thumbnail pathway and Large image Pathway in the XML.php, then the section editor code pulls in the images and the captions from Info1 or Info2.

It would be nice if all we had to do has create the upload in the section in the CMS, and somewhere along the line, the TN, Title Description and pathways would just write themselves in the xml.php, I guess like an array or loop. (?)

(edited to fix incorrect literal syntax Wink )


(This post was edited by sublmnl on Mar 17, 2010, 1:47 PM)


Chris
Staff


Mar 17, 2010, 1:38 PM

Post #15 of 25 (15463 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi sublmnl,

So, you create a section for each album?

Why not use only one section (called Albums) and create a record for each album? Each record can have an unlimited number of uploaded images. Would that work? If not, why not?

I'd like to help you come up with a better way to manage these albums. :)
Chris


sublmnl
User

Mar 17, 2010, 1:43 PM

Post #16 of 25 (15459 views)
Shortcut
Re: [chris] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

oh so sorry just re-read that.
Yeah we don';t do that. (section)
we have one section and a bunch of uploads.


Chris
Staff


Mar 18, 2010, 3:55 PM

Post #17 of 25 (15410 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Sublmnl and I have switched over to email to figure out a solution.
Chris


sublmnl
User

Apr 27, 2010, 8:25 AM

Post #18 of 25 (13624 views)
Shortcut
Re: [chris] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Okay after a short hiatus working on a few other sites with CMSB Wink We're back.

Chris has instructed me to use a multi section editor and that seems to be the right path.

Here's what I/we did:

Created a multi section editor called "multi_photo_gallery"
with fields for: title, description, thumbnail and photos.
note: that is exactly what the field names are called in the table

For the XML.php file I created one that looks like this:


Code
<?php header('Content-type: application/xml; charset=utf-8'); ?> 
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php
/* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
require_once "/home/YOUR/PATH/TO/html/WEBSITE/cmsAdmin/lib/viewer_functions.php";

list($multi_photo_galleryRecords, $multi_photo_galleryMetaData) = getRecords(array(
'tableName' => 'multi_photo_gallery',
'where' => whereRecordNumberInUrl(1),
));

// show error message if no matching record is found
if (!$multi_photo_galleryRecords) {
print "Record not found!";
exit;
}

?>
<gallery>
<?php foreach ($multi_photo_galleryRecords as $record): ?>
<album title="<?php echo $record['title'] ?>" description="<?php echo $record['description'] ?>"
tnpath="/images/uploads/photos/multi_gallery/thumb/" tn="<?php echo @$record['photos'][0]['thumbUrlPath'] ?>"
lgpath="/images/uploads/photos/multi_gallery/">
<?php foreach ($record['photos'] as $upload): ?>
<img src="<?php echo $upload['urlPath'] ?>" caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>
<?php endforeach ?>
</gallery>


A few notes about the code above: I replaced my pathway to the public HTML folder (just for the example) and the TN path and the LG path are hard coded.
Good news: It works, I view the XML in the browser and it loads the two records I have perfectly and pulls the first thumbnail from the folder.
Chris gave me this to use for that function:

Code
<?php echo @$record['photos'][0]['thumbUrlPath'] ?>


Now bad news is I think, or am pretty sure, I have to keep all the uploads for the different albums in the same TN and LG folder locations.
One more Bad news I can not figure out how to just write the pathway to each, thus they are hard coded. So a little more help there would be great.Wink

Now one more thing I need help with. The actual php file that holds the SSP player has an error in the code that keeps it from rendering:
(Here is a portion of the html source code with the error - note I changed the pathway for this example)


Code
flashvars="xmlfile=http://WEBSITE.com/xml/multi_photos.xml.php? 
Notice: Undefined variable: multi_photo_galleryRecord in /home/YOUR/PATH/TO/html/WEBSITE/multi_photos.php on line 68


This is the portion of the source code that I have on the PHP page that causes that error. I have tried both of these and no luck.


Code
 flashvars="xmlfile=http://WEBSITE.com/xml/multi_photos.xml.php?<?php echo $multi_photo_galleryRecord['num'] ?>

and

Code
 flashvars="xmlfile=http://WEBSITE.com/xml/multi_photos.xml.php?<?php foreach ($multi_photo_galleryRecords as $record): ?> 
<?php echo $multi_photo_galleryRecord['num'] ?>
<?php endforeach ?>"


Once I get this error solved We'll have a perfect example to automate albums in a Gallery with SlideShowPro.


(This post was edited by sublmnl on Apr 27, 2010, 8:29 AM)


Jason
Staff / Moderator


Apr 28, 2010, 12:00 PM

Post #19 of 25 (13584 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi,

If you can attach the file multi_photos.php I can take a look at why that error is coming up.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


sublmnl
User

Apr 28, 2010, 12:27 PM

Post #20 of 25 (13581 views)
Shortcut
Re: [Jason] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Well thanks Jason.

Here is the last iteration of my PHP file.
Attachments: multi_photos_IT.php (3.52 KB)


Jason
Staff / Moderator


Apr 28, 2010, 12:37 PM

Post #21 of 25 (13579 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Hi,

So, when you are getting your information from the database:

Code
  list($multi_photo_galleryRecords, $multi_photo_galleryMetaData) = getRecords(array( 
'tableName' => 'multi_photo_gallery',
));


are you only expecting to return a single record?
If so, try putting this line just below the above:


Code
 $multi_photo_galleryRecord=$multi_photo_galleryRecords[0];


Give that a try and let me know if that works for you.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


sublmnl
User

Apr 28, 2010, 1:41 PM

Post #22 of 25 (13572 views)
Shortcut
Re: [Jason] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

OK well that worked in the sense that a page renders....
but I'm about to pull my hair out.
Even though I am directly asking for the multi_photos.xml.php file in the HTML source code
the photos that show in the SSP on screen are for the single editor which uses: photos.xml.php

WTheck?


Jason
Staff / Moderator


Apr 28, 2010, 1:47 PM

Post #23 of 25 (13570 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Could you provide a link to the file you're using?
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


sublmnl
User

Apr 29, 2010, 12:30 PM

Post #24 of 25 (13543 views)
Shortcut
Re: [Jason] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

just an update - Jason and I are getting reallllllly close to solving this. Just don't want to muck up the thread with a lot of back/forth.

I will post up all of our work to share.
Thanks to Chris and Jason and other encounters with the IT team on this board, my belief is upheld - you guys rock.
Great Support !


sublmnl
User

Jun 6, 2010, 5:00 PM

Post #25 of 25 (11298 views)
Shortcut
Re: [sublmnl] CMS & Slideshow Pro (LR2) [In reply to] Can't Post

Back on this inbetween other projects and Jason and Chris have both helped me finish this.
Much thanks to the both of them for their patience and also finding stupid oversights.... well I guess when you're looking at so much code you're bound to make dumb mistakes

I'll give you a few steps in no particular order:
(Disclaimer - all of these instructions are following as if you have already done the SSP/CMS integration instructions above)

Make a copy of this AC RunActiveContent.js like we did above and then I renamed it: AC_RunActiveContent_SSP_multi.js

why?

Well - dumb mistake number 1 - Jason showed me that the photogallery never changed because I overlooked the fact that we were calling in the XML file in the JS which is really unnecessary after all because you call it in the swf code too.
So copy it and that way you won't mess up the current photo gallery currently relying on the JS we were about to modify.
Here are the lines that I edited (about 190 lines down):


Code
function AC_FL_RunContent(){  
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash", "FlashVars",
"xmlfile=http://YOURWEBSITE.com/xml/photos.xml.php&xmlfiletype=Default"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}


Now looks like this so that you have taken out the FLashVars and the XML file pathway.


Code
function AC_FL_RunContent(){  
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"

);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}


Next step, make a Multi Editor in the CMS with these fields:

Album - Textfield
Description - TextBox
Thumbnail - Upload
Photos - Upload

Its up to you with SSP how big you want the Thumbnail so make your image size match.
Its also up to you on whether or not you want a custom location entered in the CMS for your images. In this case, I did.

Now for the real meat - the XML file.
I kept having issues trying to target the Thumbnail pathway and largepathway
but Jason pointed out that you gonna have to have it hard coded, no worries because its all gonna be in one place anyhow.

Make your usual call for the XML above this.....

Code
<gallery> 
<?php foreach ($multi_photo_galleryRecords as $record): ?>
<album title="<?php echo $record['title'] ?>" description="<?php echo $record['description'] ?>"
tnpath="/images/uploads/multi_gallery/thumb/" tn="<?php echo @$record['photos'][0]['thumbUrlPath'] ?>"
lgpath="/images/uploads/multi_gallery/">
<?php foreach ($record['photos'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>
<?php endforeach ?>
</gallery>


This is really what Dave was talking about by writing For Each around the album and the images.... Makes perfect sense now once all the bugs have been ironed out. There is one big For Each around the Albums, so that it repeats and there is a For Each around the Images.
Voila!

If you look closely the XML doesn't ask for "album".
Well that is the beauty of having a name that doesn't match the fieldname in the CMS or the XML. I changed the name for the client after I already had the XML code in place so that is why the XML gallery code ask for 'title'.

Now for the SWF - HTML code
Make sure you spit out the code generator from the CMS and put it above the <head> like normal with a few tweaks of course:

Code
list($multi_photo_galleryRecords, $multi_photo_galleryMetaData) = getRecords(array(  
'tableName' => 'multi_photo_gallery',
));
$multi_photo_galleryRecord=$multi_photo_galleryRecords[0];


Then in your SWF code call in your HTML, you spit it out like normal but behind the XML pathway call (flashvars) you must have the php code so it looks like this in the 3 or 4 places it ask for it....:

Code
xmlfile=http://YOURWEBSITE.com/xml/multi_photos.xml.php?<?php echo $multi_photo_galleryRecord['num'] ?>


and thats it.
Thanks again IT staff.
No more request for new albums from clients.
One thing I noticed was either I'm on a slow connection or it seems to strain the system to run through so many records to display the SSP.
We'll find out as we get more records, You could always limit the upload count though.