Member
Member
RobertaCinus   2008-09-15, 22:07
#1

I have a web site in which there are 3 paltform, one of them is zenphoto.
I would like to put the preview of the last photogallery in the home page. somebody can help me?
thank you

Member
Member
sbillard   2008-09-15, 23:13
#2

This might be of use. But the album needs to be in the same folder path as the page that will be using it.

Administrator
Administrator
acrylian   2008-09-16, 08:26
#3

Since you a probably speaking of a home page outside of Zenphoto you would have to use this:
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin

and one of our image_album_statistics_plugin functions:
http://www.zenphoto.org/documentation/plugins/_plugins---image_album_statistics.php.html

Member
Member
RobertaCinus   2008-09-16, 12:43
#4

Thank you Acrylian for your suggestion. I made a copy of template-functions.php in the folder of my index. I changed "WEBPATH" in "fotografia" (the name of my folder) and "ZENFOLDER" in "/template-functions.php".
Can you tell me, please, how to insert the code

$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "
';

in my home page?
I'm a beginners and I know very very little of php ;-P
thanks, thanks a lot

Member
Member
sbillard   2008-09-16, 16:47
#5

I don't think you understood the zenphoto-as-plugin post. You cannot take parts of zenphoto and place them somewhere and expect them to work. Zenphoto is a complete set of scripts that all depend on one-another.

The zenphoto-as-plugin post describes how to link a page that is not in the zenphoto folders to zenphoto.

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