 | |  |
 |

edandrea
User
Jun 25, 2008, 4:17 PM
Post #26 of 44
(1512 views)
Shortcut
|
|
Re: [Dave] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
OK, I will invest in the SlideShowPro, but I allready downloaded the trial and searched your forum and have not found much except the one where you included the code but I had no luck trying this. I will get in contact with you tomorrow Are you sure I dont need the Director Version which uses a CMS? <?php echo "<?xml version='1.0' encoding='UTF-8'?>\n"; require_once "../lib/viewer_functions.php"; $options = array(); $options['tableName'] = 'news'; $options['recordNum'] = ''; $options['where'] = ''; $record = getRecord($options); ?> <gallery> <album lgPath="<?php echo $SETTINGS['uploadUrl']; ?>" tnPath="<?php echo $SETTINGS['uploadUrl']; ?>" title="<?php echo htmlspecialchars($record['title']); ?>" description="<?php echo htmlspecialchars($record['description']); ?>" tn="album1/preview.jpg"> <?php if ($record): ?> <?php foreach (getUploads($options['tableName'], 'uploads', $record['num']) as $upload): ?> <img src="<?php echo htmlspecialchars($upload['filename']); ?>" title="<?php echo htmlspecialchars($upload['info1']); ?>" caption="<?php echo htmlspecialchars($upload['info2']); ?>" link="<?php echo $upload['urlPath'] ?>" target="_blank" pause="" /> <?php endforeach ?> <?php endif ?> </album> </gallery> I tried this and had no luck. Thanks alot Dave. I even emailed SlideShow but no return message yet.
(This post was edited by edandrea on Jun 25, 2008, 4:19 PM)
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 25, 2008, 4:22 PM
Post #27 of 44
(1510 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
I'm not sure exactly what version the other users were using. You might want to post on that thread and ask. I had thought it was the more lightweight version. Did you manage to get it working with a plain XML and HTML file yet? Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

edandrea
User
Jun 25, 2008, 4:40 PM
Post #28 of 44
(1509 views)
Shortcut
|
|
Re: [Dave] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Good point. I am getting well ahead of myself. I will give it a bash and get it working firsy then buzz you.
|
|
|  |
 |

edandrea
User
Jun 26, 2008, 11:53 AM
Post #29 of 44
(1465 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Dave, This is your worst nightmare :). Ok. I have got thr slideshowpro and loaded it on to the server and it is working www.smoaklandco.com/ds_detail.php. Of course it is not showing the other listings images independently because I know now that we are going to have to add code. It is now generated from "images.xml" code as follows: <?xml version="1.0" encoding="UTF-8"?> <gallery> <album title="House" description="Images of a property" lgpath="cmsAdmin/uploads/" tnpath="cmsAdmin/uploads/thumb/"> <img src="sc_21.jpg" /> <img src="sc_22.jpg" /> <img src="sc_23.jpg" /> </album> </gallery> ----------------------------------------------- In my flash movie (slide show) it is designated to this file "images.xml". I know we are at least going to have to change file extensions. And I did try to do it myself with code I researched in your forum but without success. I did check out the individual .xml.php code when I was testing and still got the same old results by viewing the code eg. ds_detail.xml.php?1 etc.. I have now set everything back to normal. What shall I do next? Thanks again Emil
|
|
|  |
 |

Jake
Staff
/ Moderator

Jun 26, 2008, 9:01 PM
Post #30 of 44
(1455 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi edandrea, Thanks for your reply! It looks like the next step you need to take here is to set up SlideShowPro to dynamically load the XML file with the record number variable at the end of the URL, as Dave mentioned in a couple previous posts. I didn't look into this too closely, but I did find a manual on the SlideShowPro page which outlines some steps for dynamically loading XML documents on different pages in order to change the content of the slide show: http://slideshowpro.net/products/slideshowpro/slideshowpro_docs You'll want to have a look at the "SlideShowPro for Flash Customization Guide" link on that page. While we aren't really experts with SlideShowPro ourselves, if you do have any questions while working this out let us know and we'll do our best for you. ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
 |

edandrea
User
Jun 27, 2008, 9:16 AM
Post #31 of 44
(1427 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Dave, I know I am almost there. When I check out the xml.php page the actual images show http://www.smoaklandco.com/images.xml.php?3, http://www.smoaklandco.com/images.xml.php?32, http://www.smoaklandco.com/images.xml.php?1 . There has to be something in this code. I am wondering if it has to do with the header since I am getting this before the images "Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/m/o/smoaklandco/html/images.xml.php:3) in /home/content/s/m/o/smoaklandco/html/images.xml.php on line 3" . with line 3 being the header? I checked out the documentation with SlideShowPro and it says that the cms is to generate the .xml. The header that SlideShowPro shows is: <?xml version="1.0" encoding="UTF-8"?> <?php header('Content-type: application/xml; charset=utf-8'); ?> <?php /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */ require_once "/home/content/s/m/o/smoaklandco/html/cmsAdmin/lib/viewer_functions.php"; list($customRecords, $customDetails) = getRecords(array( 'tableName' => 'custom', 'where' => whereRecordNumberInUrl(1), 'limit' => '1', )); $customRecord = $customRecords[0]; // get first record ?> <?php foreach ($customRecord['lg_photo'] as $upload): ?> <gallery> <album title="House" description="Images of a property" lgpath="<?php echo $upload['urlPath'] ?>" tnpath="<?php echo $upload['thumbUrlPath'] ?>"> <img src="<?php echo $upload['urlPath'] ?>"/> </album> </gallery> <?php endforeach ?> <?php if (!@$customRecord['lg_photo']): ?> No Images Found <?php endif; ?> Please I hope you can help with this as you said that you got it working elsewhere...:) Regards Emil Dandrea
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 27, 2008, 9:31 AM
Post #32 of 44
(1426 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Email, Just remove any spaces or enters before that first <?php header and the error will go away. Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 27, 2008, 10:08 AM
Post #34 of 44
(1422 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
What XML file are you using and where is it being specified? Are you able to specify the XML file in the page source in the embed tag? Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

edandrea
User
Jun 27, 2008, 10:44 AM
Post #35 of 44
(1419 views)
Shortcut
|
|
Re: [Dave] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Dave, Thanks for asking. 1. Here is the .xmp.php file http://www.smoaklandco.com/images.xml.php : <?php header('Content-type: application/xml; charset=utf-8'); ?> <?php /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */ require_once "/home/content/s/m/o/smoaklandco/html/cmsAdmin/lib/viewer_functions.php"; list($customRecords, $customDetails) = getRecords(array( 'tableName' => 'custom', 'where' => whereRecordNumberInUrl(1), 'limit' => '1', )); $customRecord = $customRecords[0]; // get first record ?> <?php foreach ($customRecord['lg_photo'] as $upload): ?> <gallery> <album title="House" description="Images of a property" lgpath="<?php echo $upload['urlPath'] ?>" tnpath="<?php echo $upload['thumbUrlPath'] ?>"> <img src="<?php echo $upload['urlPath'] ?>"/> </album> </gallery> <?php endforeach ?> <?php if (!@$customRecord['lg_photo']): ?> No Images Found <?php endif; ?> 2. Embed? you mean here: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="400" id="ds_gallery2" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="ds_gallery2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#3399cc" /><embed src="ds_gallery2.swf" quality="high" bgcolor="#3399cc" width="728" height="400" name="ds_gallery2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> 3. When I created the movie in SlideShowPro I was able to specify the images.xml.php file within the characteristics. I hope I have answered the question. Regards Emil
|
|
|  |
 |

Jake
Staff
/ Moderator

Jun 28, 2008, 4:02 PM
Post #36 of 44
(1397 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Emil, The trick here is going to be working out a way to specify a different XML file link for your slideshow automatically, otherwise you would need to manually create the slideshow for each listing. I'd suggest checking out the SlideShowPro documentation to find out if there's a way to dynamically change this setting, since you can't seem to change it in the embed code the way it's set up now. You might want to drop them an email if you don't see anything about this. I hope this helps! ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jun 29, 2008, 4:57 PM
Post #37 of 44
(1333 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Emil, I took another look at this for you over the weekend, and I have some more concrete steps I can share with you to get this up and running. The main changes you'll need to make are going to be in your embed code. This is what you're currently using:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="400" id="ds_gallery2" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="ds_gallery2.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#3399cc" /> <embed src="ds_gallery2.swf" quality="high" bgcolor="#3399cc" width="728" height="400" name="ds_gallery2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> You'll want to change that to this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="400" id="ds_gallery2" align="middle"> <param name="FlashVars" value="xmlfile=http://www.smoaklandco.com/images.xml.php?<?php echo $customRecord['num'] ?>" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="ds_gallery2.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#3399cc" /> <embed src="ds_gallery2.swf" quality="high" FlashVars="xmlfile=http://www.smoaklandco.com/images.xml.php?<?php echo $customRecord['num'] ?>" bgcolor="#3399cc" width="728" height="400" name="ds_gallery2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> What's different there is that I added a new "param" tag, and added a FlashVars attribute to the "embed" tag. These contain the values for dynamically loading the XML file. There is also another step you'll need to take, which I'll take directly from the SlideShowPro documentation:
Edit FLA Open the FLA containing SlideShowPro for Flash. Open the Properties panel (Windows > Properties) and give the component instance a unique variable name. For this tutorial, I’ll name it my_ssp. Now we need to write some ActionScript to assign our XML file to SlideShowPro's xmlFileType property. Create a new layer in your movie timeline, and click its first frame so it’s highlighted. Open the Actions panel and enter this: my_ssp.xmlFilePath=xmlfile; If you're curious, this is the page on the SlideShowPro site where I got this information from: http://wiki.slideshowpro.net/SSPfl/C-DynamicallyAssignXML Note that I wasn't able to test this out completely on my end as I don't have a copy of Flash, so there might still be a couple of kinks to work out here, but those steps should cover most of the work required to get this running. Let us know how this works out! ----------------------------------------------------------- Cheers, Jake Swanson - 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.
(This post was edited by Jake on Jun 29, 2008, 4:58 PM)
|
|
|  |
 |

edandrea
User
Jun 30, 2008, 11:47 AM
Post #38 of 44
(1248 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Jake, Wow...Thanks for the input, thought you all were off on the weekend? I spent most of the weekend studying the user manual myself, trial and error and without success. I had allready emailed the program author and he showed me where the documentation was you suggested. So I had allready had attempted what you had suggested except adding in the .php in the flash code. I also made the adjustments to the .fla (my_ssp.xmlFilePath=xmlfile;) as well as naming the instance. You know if we get this working this would make a great tutorial for CMS since I was unable to find history. I even studied most of your forum and tried some other adjustments. Its all working just for some reason not pulling up the pics. I can pull up the idividual .xml files and it lists the pics. Its got to be the way it is coded on the .xml.php My .xml.php code: <?php header('Content-type: application/xml; charset=utf-8'); ?> <?php /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */ require_once "/home/content/s/m/o/smoaklandco/html/cmsAdmin/lib/viewer_functions.php"; list($customRecords, $customDetails) = getRecords(array( 'tableName' => 'custom', 'where' => whereRecordNumberInUrl(1), 'limit' => '1', )); $customRecord = $customRecords[0]; // get first record ?> <?php foreach ($customRecord['lg_photo'] as $upload): ?> <gallery> <album title="House" description="Images of a property" lgpath="<?php echo $upload['urlPath'] ?>" tnpath="<?php echo $upload['thumbUrlPath'] ?>"> <img src="<?php echo $upload['urlPath'] ?>"/> </album> </gallery> <?php endforeach ?> <?php if (!@$customRecord['lg_photo']): ?> No Images Found <?php endif; ?> When I view the source of the xml: <gallery> <album title="House" description="Images of a property" lgpath="/cmsAdmin/uploads/sc_21.jpg" tnpath="/cmsAdmin/uploads/thumb/sc_21.jpg"> <img src="/cmsAdmin/uploads/sc_21.jpg"/> </album> </gallery> <gallery> <album title="House" description="Images of a property" lgpath="/cmsAdmin/uploads/sc_22.jpg" tnpath="/cmsAdmin/uploads/thumb/sc_22.jpg"> <img src="/cmsAdmin/uploads/sc_22.jpg"/> </album> </gallery> Strange Eh? I hope we can work this out......:)
|
|
|  |
 |

edandrea
User
Jun 30, 2008, 11:52 AM
Post #39 of 44
(1247 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Something else interesting. When I view source the code in the flash does change - FlashVars" value="xmlfile=http://smoaklandco.com/images.xml.php?1". If you remember we or you added the php code.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jun 30, 2008, 6:27 PM
Post #40 of 44
(1210 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi edandrea, Would it be possible to email me FTP information for your server to jake@interactivetools.com? There are a couple quick tests I'd like to run here which may help us get to the bottom of this. I'll post my findings up in this thread. ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
 |

edandrea
User
Jul 1, 2008, 9:39 AM
Post #41 of 44
(1178 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Jake, Did you get my FTP info? I was fussing about in Fire Fox and couldnt work out why the display was all off. Because of the dark background I noticed this at the top left hand corner: 'custom', 'perPage' => '10', )); ?> \n"; ?> . Its as if almost broken code. Could this be possible. This is only displayed in my "local" browser, not shown on live server. Does not show in IE7.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 1, 2008, 8:28 PM
Post #42 of 44
(1152 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Emil, I did get your FTP info, and I've got great news - I was able to get this working for you. Check out your site to see the results! Everything was set up correctly on the flash side of things, but there were some issues with your XML document that were preventing the flash from loading the file. I fixed these formatting problems and rearranged some of the code which resolved the issue. I left the old images.xml.php file on your server, renamed as "images.xml.php-old" if you'd like to compare the differences between the two. Let me know what you think. ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
 |

edandrea
User
Jul 14, 2008, 12:16 PM
Post #43 of 44
(1026 views)
Shortcut
|
|
Re: [Jake] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Absolutly fantastic!!!!!!! You have made me so happy and I was going crazy and I knew we were so close. I was sure this was going to be something I had to corect and try a differant approach. I will definatly use this for future projects. There should be a tutorial on this, what a learning experiance. Thanks very much. I have a new problem now so I should start a new thread.......:)
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 14, 2008, 12:23 PM
Post #44 of 44
(1023 views)
Shortcut
|
|
Re: [edandrea] CMS Multiple Images
[In reply to]
|
Can't Post
|
|
Hi Emil, I'm glad to hear you're happy with the result! I did decide to write a tutorial on this actually - it was recently added to the documentation and you can view it here if you'd like: http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/CMS_Multiple_Images_P63085/ ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
|