Member
Member
edasque   2008-02-20, 18:11
#1

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

Member
Member
edasque   2008-02-20, 22:11
#2

Lots of visits, but no comment. No interest ?

Member
Member
jsumners   2008-02-20, 22:30
#3

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.

Member
Member
aitf311   2008-02-20, 22:53
#4

I'd definitely use this theme!

Member
Member
edasque   2008-02-20, 22:57
#5

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.

Member
Member
sbillard   2008-02-20, 23:40
#6

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?

Member
Member
edasque   2008-02-21, 00:12
#7

Yes, it's built against 1.1.4. It's a variation on the default theme.

Member
Member
jsumners   2008-02-21, 01:04
#8

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.

Member
Member
jayray999   2008-02-21, 19:31
#9

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.

Member
Member
jsumners   2008-02-21, 23:51
#10

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.

Member
Member
cwcrogan   2009-03-18, 03:24
#11

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

Member
Member
edasque   2009-03-19, 14:41
#12

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

Administrator
Administrator
acrylian   2009-03-19, 14:59
#13

Maybe you could make a real plugin for this? We would then add it to our plugins page.

Member
Member
edasque   2009-03-19, 17:39
#14

I was going to but from posting in the slideshowpro forums and here it didn't seem like there was enough interest.

Member
Member
Noppes   2009-03-19, 19:53
#15

Hi edasque,

I am interest in a slideshowpro-Plugin for Zenphoto. Do you are planing to do this?

Member
Member
cwcrogan   2009-03-20, 16:38
#16

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?

Member
Member
cwcrogan   2009-03-20, 17:46
#17

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.

Member
Member
cwcrogan   2009-03-20, 21:27
#18

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...

Junior Member
Junior Member
patotala   2009-06-18, 18:36
#19

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.