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. |
|
Posts: 8339
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
Posts: 7
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.
I am just calling it directly in the browser. Any help is appreciated.
thanks
steve
Posts: 8339
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
Posts: 7
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
Posts: 7
Figured out what I was doing wrong.
I was calling with "slideshow" instead of "slideShow", now calling getItems works.
Posts: 1
Did you manage creating a project to create Gallery 2 XMl for Slideshow Pro?
Thanks.
Posts: 2
It's not a complete project, just some scripts. I'm happy to share them when I have an opportunity to gather that code...
Posts: 7
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
Posts: 7
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
Posts: 8339
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
Posts: 32509
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
Posts: 8339
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
Posts: 7
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.
Posts: 8339
the mini-slideshow includes my latest xml.php
-s
FlashYourWeb and Your Gallery
Posts: 7
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
Posts: 8339
Sure
FlashYourWeb and Your Gallery
EDIT - sorry, found an error in that one, new one is up now.
Posts: 1
Has anyone modified the xml.php or xmlall.php files to generate the XML form that SlideShow Pro is looking for?
Posts: 13
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
Posts: 8339
ssp.php
Use it like my mediaRss.php
demo
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
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