XML Output Module for Slideshow Pro

jasoninva1

Joined: 2006-11-19
Posts: 2
Posted: Sun, 2006-11-19 03:03

I'm starting my first module for Gallery and hope to enlist some tips and first places to start. Slideshow Pro http://www.slideshowpro.com is a very nice plugin for flash 8 that makes a beautiful flash slideshow from xml. The images are loaded at runtime allowing for a light slideshow swf and many dynamic options. Gallery is extremely powerful and I'm trying to create a blend of the two.

My first step is to tap into the api to pull albums and images and convert this into formatted xml. The xml will have to have pointers to the album's images and thumbnails.

The first question I have is where in the API should I start looking and are there any tips (other modules I should look at for the same functionality)? I reviewed the rss module and it doesn't seem to fit with what I'm trying to accomplish.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2006-11-19 03:58

I actually own SSP myself, but I make my own slideshows anyways.
But you can use my xml.php and edit as you wish :)

http://testbed.4wiseguys.com/

-s

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Fri, 2007-01-12 02:31

Greetings,

How do you call xml.php? I tried just calling it directly but kept getting errors. I have your slideshow working in my gallery already I just wanted to see how xml.php works and outputs the xml strings.

Error I am getting.

Quote:
Error loading Entity:Error (ERROR_BAD_PARAMETER)<ul><li><b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 50 (GalleryCoreApi::error) </li><li><b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2382 (GalleryEntityHelper_simple::loadEntitiesById) </li><li><b>in</b> xml.php <b>at line</b> 25 (GalleryCoreApi::loadEntitiesById) </li><li><b>in</b> xml.php <b>at line</b> 157</li><li><b>in</b> xml.php <b>at line</b> 165</li></ul><br />
^

I am just calling it directly in the browser. Any help is appreciated.

thanks
steve

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2007-01-12 02:59

You can address it directly as you do with the slideshow ie.
http://yoursite.com/gallery2/xml.php?g2_itemId=480&mode=slideShow

some of the elements are just for wellformedness, while others are necessary for one or more of my flash apps.

I have a far more advanced version that I use for my new video/mp3/slideshow app. it fetches album list, items of all different mime types for display, descriptions....

Gallery2 is a very powerful app, combined with xml and flash - the possibilities are endless :)

-s

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Fri, 2007-01-12 03:47

Thanks for the quick reply.

I remembered the call after I posted the question.

I am trying to get the xml to be formed like:

<gallery>
<album title="Title" description="Description lgPath="medium/" tnPath="thumbs/" tn="preview.jpg">

<img src="000.jpg" link="large/000.jpg" />
<img src="001.jpg" link="large/001.jpg" />
<img src="002.jpg" link="large/002.jpg" />
<img src="003.jpg" link="large/003.jpg" />
...
</album>
</gallery>

I made some changes but cannot figure out how to get all of the images in the album id I am selecting to show up. I only get the first one.
Any ideas to keep me going?

thanks again.
Steve

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Fri, 2007-01-12 21:07

Figured out what I was doing wrong.

I was calling with "slideshow" instead of "slideShow", now calling getItems works.

 
rsuplido

Joined: 2007-02-14
Posts: 1
Posted: Wed, 2007-02-14 20:59

Did you manage creating a project to create Gallery 2 XMl for Slideshow Pro?

Thanks.

 
jasoninva1

Joined: 2006-11-19
Posts: 2
Posted: Wed, 2007-02-14 21:22

It's not a complete project, just some scripts. I'm happy to share them when I have an opportunity to gather that code...

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Wed, 2007-02-14 21:51

I modified suprsidr's XML script to output the XML for slideshow pro but the links that Menalto gallery uses
for the links has ? and = in it. I have tried to convert them to their entity id and that did not work as well.
I would love to figure out how to make it work so SSP would work against my current gallery.

thanks
steve

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Wed, 2007-02-14 22:06

Not trying to threadjack jasoninva1's post but I can put up what I have if more people want to look at it. I would
want to make sure suprsidr is ok with that.

thanks
steve

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2007-02-14 22:26

Go with it.
the newest version is far more advanced, available on my new site.
also the urls in thumbUrl and view should be compatible with SSP.
-s
FlashYourWeb and Your Gallery

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-02-14 22:47

we sure need to improve g2's official modules too.
i'm not sure yet if a new slideshow module should have all kinds of rss / json options or if we should make the rss module much more powerful.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2007-02-14 23:05

Well, either way, flash/flex apps are going to need a way to communicate with gallery.
IMO xml is the way to do it. :)

-s
FlashYourWeb and Your Gallery

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Thu, 2007-02-15 02:17

Suprsidr which download on your site would be the best manipulate to work with SSP? I will start working on that one. I already have something working
with your older scripts but like I said above SSP does not like the special characters in the URLs.

thanks
steve

BTW: your new site looks really good. I could not figure out what was playing when I first went there until I looked in the header. lol.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2007-02-15 02:31

the mini-slideshow includes my latest xml.php

-s
FlashYourWeb and Your Gallery

 
verticaltier
verticaltier's picture

Joined: 2007-01-12
Posts: 7
Posted: Sat, 2007-02-17 23:48

Suprsidr is it possible to get the fla? I want to resize it and add some other elements to it.

ps: You new xml script I have working with SSP now and am able to call it using different albums.
I will be modifying the xml_all script to do the same. I am also going to add some logic to
use title as a caption if description is empty.

thanks again
steve

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2007-02-20 03:32

Sure
FlashYourWeb and Your Gallery

EDIT - sorry, found an error in that one, new one is up now.

 
deuce.sapp

Joined: 2007-04-30
Posts: 1
Posted: Mon, 2007-04-30 21:06

Has anyone modified the xml.php or xmlall.php files to generate the XML form that SlideShow Pro is looking for?

 
natec

Joined: 2007-06-21
Posts: 13
Posted: Wed, 2007-07-11 22:56

I just posted a new thread (http://gallery.menalto.com/node/66745) but my question is somewhat related, and I was hoping that any of you XML/Gallery/PHP knowledgeable types that are subscribed to this thread might like to see this other potential use of the xml.php script.

Thanks!
Nate

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-11-28 14:43
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-04-23 03:58

In case anyone's still listening to this old thread
Just a heads up
Added a new OPML generator for G2 to create a multiple album xml feed for SSP

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2