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-CrossdomainTHe 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-DynamicallyAssignXMLThis step here:
<param name="FlashVars" value="xmlfile=http://mydomain.com/myXML.xml&xmlfiletype=Default" />
I changed to this in mine:
<param name="FlashVars" value="xmlfile=http://www.YourDomain.com/Path/to/images.xml.php?<?php echo $yourRecord['num'] ?>" />
This next piece of code here:
<embed FlashVars="xmlfile=http://mydomain.com/myXML.xml&xmlfiletype=Default" ... (other attributes)>
I changed to this:
... (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:
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:
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 -
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:
/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!