Flash Gallery
38 posts by 3 authors in: Forums > CMS Builder
Last Post: April 29, 2010 (RSS)
By KCMedia - April 17, 2010
I have a flash gallery that uses an xml file to control the content of the images is there a way of using CMS builder to put details into the xml file.
thanks
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Toledoh - April 17, 2010
Tim (toledoh.com.au)
Re: [Toledoh] Flash Gallery
By KCMedia - April 20, 2010
Here is the XML document that came with the script this will show up on all pages so all i need to be able to do is write to the xml file so that the images are being imbeded into the xml document.
I hope someone can help as this is my last hurdle before turning the site live.
I have setup a multi section so the client can upload images set to the right side so all i need to do is write the image url to the xml file and the rest will be hard coded by myself.
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Toledoh - April 20, 2010
Can you upload the rss.xml.php file you created that didn't work?
Basically - you have to start the file with:
<?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
Then, the file specific code... ie.
<settings>
−
<auto_play>
<defaults symbol="circular" time="6"/>
<defaults/>
<tweenIn x="500" y="90" width="45" height="45" tint="0x000000"/>
<tweenOut/>
<tweenOver/>
</auto_play>
−
<prev_symbol>
<tweenOut x="20" y="230" tint="0x000000"/>
<tweenIn x="20" y="230" tint="0x000000"/>
<defaults x="20" y="230" type="3" tint="0x000000" time="8"/>
<tweenOver x="20" y="230" tint="0x000000"/>
</prev_symbol>
−
<next_symbol>
<tweenOut x="40" y="230" tint="0x000000"/>
<tweenIn x="40" y="230" tint="0x000000"/>
<defaults x="40" y="230" type="3" tint="0x000000" time="8"/>
<tweenOver x="40" y="230" tint="0x000000"/>
</next_symbol>
</settings>
−
<slides>
Then your repeating listing... ie <?php foreach ($newsRecords as $record): ?> ....
Then close ie. </slides>
</cu3er>
Hope that helps.
Tim (toledoh.com.au)
Re: [Toledoh] Flash Gallery
By KCMedia - April 20, 2010
I dont have the source of the flash so i can edit it.
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Toledoh - April 20, 2010
Maybe show us what you are trying to achieve and we can help - or send me a PM if you want to discuss outside of this forum.
Tim (toledoh.com.au)
Re: [Toledoh] Flash Gallery
By KCMedia - April 21, 2010
After working with Tim today "thanks for your time" we still havnt been able to get this working.
I have attached the xml doucment and also the index page.
Could someone please help me out.
One major issue is that the xml fle must stay as config.xml for it to work.
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By KCMedia - April 22, 2010
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By KCMedia - April 23, 2010
Craig
KC Media Solutions
www.kcmedia.biz
Re: [kcmedia] Flash Gallery
By Dave - April 23, 2010
It looks like you have a stray <?php endif ?> in config.xml.php, you'll want to remove that if you are getting an error.
Next, you'll need to either specify a path to the .xml.php file, or redirect requests for .xml to .xml.php
Here's docs on specifying a path to an .xml file: http://www.progressivered.com/cu3er/docs/embedding.html
And here's some code you can put in an .htaccess file to transparently redirect config.xml to config.xml.php:
RewriteEngine on
RewriteRule config.xml$ /config.xml.php [L]
There may be other issues remaining to resolve, but that's how you can handle those existing ones.
Hope that helps!
interactivetools.com