zenphoto + slideshowpro

Hi all

Just wrote this php page that automatically generates a slideshowpro XML file from zenphoto and includes all albums tagged as 'show.in.flash'. Many other things could be done with this.

http://www.frenchguys.com/gallery/?view=flash

Let me know if you're interested.

Erik

Comments

  • Lots of visits, but no comment. No interest ?
  • I visited, but I don't really have a use for it myself. You could release it as a theme. I'm sure there are some people out there that would like it.
  • I'd definitely use this theme!
  • It's not so much the theme (though you're free to use it) but more the php file that generates an XML file that slideshowpro (a flash application that displays a gallery) will consume.
  • You can add it to the themes on TRAC. We will pick it up and put it with the rest of the ones on the zenphoto WEB site. Is it built against v1.1.4?
  • Yes, it's built against 1.1.4. It's a variation on the default theme.
  • A theme can do more than just use the default template functions. Look at the EF+ theme for instance. It has a "custom-functions.php" that defines functions specific to the theme. So, your theme would include this XML generating script as a bonus part of the theme.
  • Great implementation @edasque and one that I would definitely want to use and see integrated with the themes I use as a switchable feature. One reason you may not be getting more comments is that a lot of people want to avoid using Flash (no idea why since it is about as universal as PDF) and also because slideshowpro is not a free product.
  • Flash is abused. I think what he is using it for is okay since you can still view the gallery without it. But there are way more instances where Flash breaks the web viewing experience than it makes viewing better.
  • Hi Erik!

    I have great interest in this! I've been trying to implement something similar for a while now without success. I just recently discovered zenphoto and love it's simplicity (non-bloat) and power, but would love to front-end it with slideshowpro - with the option to view the gallery normally (like your archives). I hope you're still willing to share!

    Chris
  • You can grab the latest on http://www.frenchguys.com/gallery/ssp.php.txt

    That was updated to work with 1.2.x

    Let me know if you have any questions
  • acrylian Administrator, Developer
    Maybe you could make a real plugin for this? We would then add it to our plugins page.
  • I was going to but from posting in the slideshowpro forums and here it didn't seem like there was enough interest.
  • Hi edasque,

    I am interest in a slideshowpro-Plugin for Zenphoto. Do you are planing to do this?
  • Erik, thank you.
    I seem to be having a problem, however. SSP doesn't show anything and if I go to /gallery/ssp.php I get a mysql warning:

    : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in (dir with-held)

    Any ideas? Also, should the show.in.flash be a tag or a custom field?
  • I may have been a little too vague there...
    I currently have a single album and it's tagged 'show-in-flash' and has the custom_data field filled with 'show-in-flash' (I've also tried substituting 'show.in.flash' without change). It appears that $albums_array is not populating which I'm guessing means the query is not finding the album for some reason.
  • Well, I discovered it was the ORDER BY clause of the query that was incorrect. I've changed it to this:

    $album_sql = "SELECT `id`,`title`,`desc`,`folder`,`thumb` FROM ".prefix('albums')."WHERE `custom_data` LIKE \"%show.in.flash%\" ORDER BY `parentid` , `sort_order` ASC ";

    And I needed to change the image query as well (to point to the correct table):

    $img_sql = "SELECT ``filename`,`title`FROM " . prefix('images') . " WHERE`albumid` = ".$aid;

    So the xml page creation seems to be working fine now. But I'm still having problems with SSP not displaying anything. Still working on it...
  • Hi edasque and thanks a lot, i read all the post and i try to install you php scrpit in a zenphoto 1.2.4 version, and the same problem like cwcrogan i have to:

    `
    Erik, thank you.
    I seem to be having a problem, however. SSP doesn't show anything and if I go to /gallery/ssp.php I get a mysql warning:

    : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in (dir with-held)

    Any ideas? Also, should the show.in.flash be a tag or a custom field?
    `
    i try cwcrogan solution post to change the php code and the same problem, btw i dont understand what i am doing.
    help me please
Sign In or Register to comment.