Hello everyone,
Think this is my first post on here, although I have been playing with Zenphoto and reading the forums for sometime now :-)
I have just got my first non-messabout Zenphoto gallery online at: http://zenphoto.co.uk/gallery/
and wished to integrate the gallery into my site http://dtm.org.uk like I did with my old coppermine gallery, so i wrote some simple code to do this and it all seems to be working and looks pretty good. The only bad thing at the moment is the fact that it is sometimes slow, but this is only due to my Zenphoto gallery running on another server.
Anyway I thought i'd share my code to everyone to do this. To use it simple copy and paste the following and fill in the config details:
(Note: The commented bit inherits the default thumbnail for the album instead of a random one)
`
Zenphoto Galley Albums:
Thanks :-)
;-) If you want any A Records for the domain just ask
I've been messing about with zenphoto some more this morning, even though I have my driving theory test in two hours and should really learn that but anyway.... I've made 'Photocards' it basically puts all your photos in order of album and looks like a deck of cards.
When you click the thumbnail it goes and gets the full image, click that and it goes back to the thumbnail.
Check it out here:
http://zenphoto.co.uk/photocards.php
Code (Has the same config as above):
'
DTM's Photo Gallery Photocard Deck
function display_full(full_url,thumb_url,view_id,box_id){
if(document[view_id].src==thumb_url){
document[view_id].src=full_url;
}else{
document[view_id].src=thumb_url;
}
}