Member
Member
mountain4life   29-03-2014, 01:26
#1

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

Administrator
Administrator
fretzl   29-03-2014, 09:45
#2

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 ?

Administrator
Administrator
acrylian   29-03-2014, 10:49
#3

printLatestImages is a function from the plugin image_album_statistics. So you need to include this additionally like the main template-functions.php file.

Member
Member
mountain4life   30-03-2014, 14:48
#4

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?

Administrator
Administrator
acrylian   30-03-2014, 15:13
#5

That path is the correct path to an image processor link to generate the thumbs. Might be that the image processor denies the request as we block those request from the outside. Cannot tell at the moment. I admit I never used this myself.

Member
Member
mountain4life   30-03-2014, 15:21
#6

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?

Administrator
Administrator
acrylian   30-03-2014, 16:19
#7

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.