collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Recent Posts

Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]


search.html.php refer to rsgsearch.css with a wrong path by whazzup
[January 13, 2018, 08:12:04 PM]


Slow Gallery with many Photos by whazzup
[September 22, 2017, 09:22:33 AM]

Author Topic: how to modify xml output for only one flash template?  (Read 11104 times)

Offline Daniel Tulp

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.870
  • Search search search before posting please
    • design.danieltulp.nl
how to modify xml output for only one flash template?
« on: April 13, 2007, 05:41:39 PM »
Jonah, just posting here for clarity

now, the xml is outputted like this:
Code: [Select]
<gallery name="test2">
<image name="PICT0011.JPG"/>
<image name="Bruiloft-MM_051.jpg"/>
</gallery>

what if I want it to be:
Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
    <pic>
        <image>gallery/1.jpg</image>
        <thumbnail>gallery/s1.jpg</thumbnail>
        <caption>Some lamp on the ground</caption>
    </pic>
</images>

I want this, because I want to link Free Flash Gallery to it:
http://www.flashgallery.org

can I modify the xml output of RSGallery2 for only one flash template?
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl

Offline Daniel Tulp

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.870
  • Search search search before posting please
    • design.danieltulp.nl
Re: how to modify xml output for only one flash template?
« Reply #1 on: April 13, 2007, 05:57:37 PM »
sorry, already figured it out  :-[
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl

Offline Daniel Tulp

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.870
  • Search search search before posting please
    • design.danieltulp.nl
Re: how to modify xml output for only one flash template?
« Reply #2 on: April 13, 2007, 06:25:57 PM »
ok, now I have the problem that I can't specify the path or name to the xml file in the object element code

is there a way so I can overcome this problem (don't have access to the source of the flash gallery)
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl

Offline Jonah

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.412
Re: how to modify xml output for only one flash template?
« Reply #3 on: April 14, 2007, 03:46:41 AM »
sorry, already figured it out  :-[

to clarify for others the easiest method is just to create another flash template.  make sure you specify what template to use in the url when calling the xml file.
Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.

Offline Jonah

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.412
Re: how to modify xml output for only one flash template?
« Reply #4 on: April 14, 2007, 03:53:32 AM »
ok, now I have the problem that I can't specify the path or name to the xml file in the object element code

is there a way so I can overcome this problem (don't have access to the source of the flash gallery)

 :( that's too bad.  if the flash object doesn't take the xml url as either parameter in the url or as a param then it won't work.  the best you could do is view the xml manually and save it in a file where the object is expecting it, but that sort of defeats the whole purpose.

Most flash players (especially the commercial flash players) will accept the xml url in a <param> tag.  But if it doesn't, and you don't have the source, you can't change that.
Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.

Offline asymbio

  • Newbie
  • *
  • Posts: 1
Re: how to modify xml output for only one flash template?
« Reply #5 on: April 19, 2007, 01:43:29 PM »
When embding the flash object you can do this http://flashgallery.org/gallery.swf?xml_file=http://flashgallery.org/images.xml

When importing a XML file from another domain a crossdomain.xml file or flash will not be able to get the xml.

Offline Jonah

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.412
Re: how to modify xml output for only one flash template?
« Reply #6 on: April 19, 2007, 06:29:04 PM »
When embding the flash object you can do this http://flashgallery.org/gallery.swf?xml_file=http://flashgallery.org/images.xml

When importing a XML file from another domain a crossdomain.xml file or flash will not be able to get the xml.

Correct, but only if that flash object accepts xml_file as a parameter.  It varies depending on how that flash object was coded.
Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.

Offline Daniel Tulp

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.870
  • Search search search before posting please
    • design.danieltulp.nl
Re: how to modify xml output for only one flash template?
« Reply #7 on: April 19, 2007, 07:35:46 PM »
if you have access to the flash file, setting this variable is actually very easy

most of the time it just uses a direct load of a xml file like so:
Code: [Select]
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML; //loadXML is a function to be executed when XML is loaded
xmlData.load("photos.xml");

when the object contains the parameter xml_file like in your post asymbio, this code needs to become:
Code: [Select]
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML; //loadXML is a function to be executed when XML is loaded
var XMLfile = xml_file;
xmlData.load(XMLfile);
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl

Offline Rich

  • Newbie
  • *
  • Posts: 1
Re: how to modify xml output for only one flash template?
« Reply #8 on: June 16, 2008, 01:37:29 PM »
ok, now I have the problem that I can't specify the path or name to the xml file in the object element code

is there a way so I can overcome this problem (don't have access to the source of the flash gallery)

Some tips can be find here: http://flash-gallery.com/art-flash-gallery/userguide/
And demos: http://flash-gallery.com/art-flash-gallery/demo/

Offline Parth

  • Retired from Dev Team
  • Newbie
  • ****
  • Posts: 41
    • Tekdi Web Services
Re: how to modify xml output for only one flash template?
« Reply #9 on: July 22, 2008, 09:18:29 AM »
Hi Daniel,Jonah,

Sorry for the very Basic Question..

But how exactly can i see the current output that the generic XML class delivers ?

What url do i have to give to get this?
Tekdi Web Services
Taking Joomla to the next level!
http://www.tekdi.net