So, I want to display the latest images on my index.php file wich is in my root directory (mysite.com/index.php).
Zenphoto is located at mysite.com/gallery/
I can't make this work, I've tried everything..
the code in my index.php is:
no matter what function I call, I get "call to undefined function" messagge.
I have the image_album_statistics plugin activated by the way.
Any help please?
Thanks
Have you thoroughly read
http://www.zenphoto.org/news/integration-with-existing-sites-and-other-cms#zenphoto-as-a-plugin and the code example on that page ?
Thanks guys,
It's partially working now with that code. The code I've posted used to work with older versions of zenphoto.
Now, if y do the five thumbs show up but are all broken.
I've looked at the html output and the links to the source images are not correct.
This is the output html for one thumb:
Somehow the paths are wrong, in the href line it's suposed to be mysite.com/gallery/albums/album-name/image.jpg.html, and albums img scr path is wrong too because the thumb is broken.
what I'm doing wrong?
thanks acrylian,
and why that broken thumb points to gallery/album-name/image.jpg.html instead of gallery/albums/album-name/image.jpg.html
why the albums folder is ommited in the path?
Any thoughts?
gallery/album-name/image.jpg.html this is a correct url to an single image page. gallery/albums/album-name/image.jpg.html is no valid Zenphoto url at all.
http://www.zenphoto.org/news/problems-with-albums-and-images#the-images-are-in-zenphotoalbumsmyalbum-but-the-ur