where are uploaded images are stored?

I would like to add some php on various pages of a website that will pull random images from within a Zenphoto gallery. However, I have no idea where uploaded image files are located within Zenphoto.

I imagine the file names must be stored in a table in the database, but I don't think the actual images would be located there.

The path shown on the url also doesn't seem to offer any true direction on where the photos are to be found, since there don't seem to be folders with the album names within my Zenphoto folder.

Any assistance with this would be greatly appreciated!

Thanks!

Comments

  • Are the web pages in the same site as the gallery? Look at the zenphoto hacks on the Zenphoto website for using zenphoto as a plugin.

    If the pages are on a different website you will have to create links to the cache folder. Unfortunately, that is not reliable as the cache might be cleared and will not be reloaded unless zenphoto views the image.
  • I uploaded zenphoto to the website, so when I view the galleries, the url is: website/zenphoto/galleryname.

    So, the php code would be added to one of the website's pages to pull random images from photos within zenphoto (which is within the same site). However, I don't know what path to use.

    Are there better ways to do what I hope to do? I looked at some of the plugins, but didn't see anything that really fit my need.

    Thanks! I really appreciate your help!
  • acrylian Administrator, Developer
    As sbillard recommended this is the way to go and it even has random images as an example: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
  • Thanks so much. I will look into this. I really appreciate it!
    Best regards,
    Jon
  • Thanks for your help on this. Clearly I didn't look at the plugins very carefully. I added the php code to the page (from zenphoto-as-plugin), and it works like a charm.
    Best,
    Jon
Sign In or Register to comment.