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
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.
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
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,titleFROM " . prefix('images') . " WHEREalbumid = ".$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:
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