Hi,
Zen photo was working great till a few weeks ago from May, so I took it down, did a fresh install into a different directory. I'm having troubles pulling out the latest photo uploaded - it used to display a thumbnail and link to that image with printLatestImages the front page of my web site. I have looked around posts and documentation and can't understand how this has changed since previous version. Can anyone help?
thanks, carol
Comments
What version were you running?
What version did you install fresh?
Is the front page of your WEB site a zenphoto page or someting else where you are using one of the hacks to get zenphoto objects?
Thanks so much for getting back to me, The version I installed in April was 1.15, the version I installed today is 1.2.2. I want to check a backup tomorrow with the code I was using on the page - just want to make sure I have the exact code. The way it was configured was I put some php code with the path in the header and then the printlatestimage 1 code where I wanted the thumbnail to be positiioned.
Thanks, I'll post more tomorrow.
<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'today');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));
?>
and then where the photo would appear:
<?php
printLatestImages(1);
?></p>
So today I used the code in the link above (for trying a random picture) and am getting mySQL errors. I am considering upgrading mySQL to 5 since I have read that is ideal, but still wondering if this feature that I want is still possible.
Thanks so much
thanks!