Member
Member
fohoizey   2010-04-26, 13:50
#1
Hi there,

I'm new to Zenphoto (I've just discovered it). That's a super great tool ! Congratulations and thanks for sharing it !

I've questions about it's functions :

Google Maps plugin :
- I've activated the Google Maps Extension but the map won't display on my pictures Sad Do I need to add something to the image.php file of the defaut theme ?
- My pictures contains no GPS datas. I would like to add the adress by myself. How to "give" this information to the Google Maps plugin ?

Navigation :
- How could I add a picture to the "previous" and "next" links ?
- How to display all thumbnails of the gallery on the right side of each image on image.php ?

Many thanks
Cheers
Administrator
Administrator
acrylian   2010-04-26, 14:04
#2
Welcome!

Googlemaps: You will have to add GPS data to your pictures, otherwise the map does not know what to display. Please search the web for a tool to do that (can't recommend any as I don't use this myself)

Navigation: Since you are new I recommend to read the theming tutorial on our user guide first to understand how themes work.
Member
Member
fohoizey   2010-04-27, 16:14
#3
Well, thanks. I've read the Tutorial but still don't know how to add a picture to the previous and next links.
I would like to add this function to the image.php to have it on photo pages (on this one for example http://www.nicetrotter.fr/galerie/nice/dsc_3573.jpg.html )

Any clue ?
Administrator
Administrator
acrylian   2010-04-27, 16:27
#4
Here are the functions to use:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionhasPrevImage
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionhasNextImage
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetNextImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetPrevImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetNextImageThumb
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetPrevImageThumb

So in short something pretty straight forward like:
`if(hasNextImage()) { echo '[img]'.getNextImageThumb.'[/img]'; }`

Our functions are really named quite "speaking" as you see. So searching the documentation often helps quite a lot.
Member
Member
fohoizey   2010-04-27, 18:05
#5
Wow thanks a lot. I hadn't seen the functions doc's.
That rocks, thanks for your help.
Everything seems to be working fine ! http://www.nicetrotter.fr/galerie/nice/dsc_3573.jpg.html
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.