I've tried searching the forum but can't find anything similar.
I have additional MySQL tables which hold order related information. I need to relate this to an image so I store the image ID from the ZP images table.
On an Order page I also need to display the image thumb and/or a custom size image, but I can't work out how to get back the images using ZP template functions when starting from the image ID. It's probably really obvious but I can't see it.
Comments
http://www.zenphoto.org/documentation/classes/Album.html#methodAlbum
With that you then need to create an image object using `newImage()`.
http://www.zenphoto.org/documentation/classes/_class-image.php.html#functionnewImage
Now you can use the image class methodes to get the thumb, custom images etc.
http://www.zenphoto.org/documentation/classes/_Image.html
Of course on that page if it is not a Zenphoto theme page you need to have the Zenphoto functions available, for example this way:
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin