Hello
In my customized theme (based on ZPBootstrap) I want to show date, city, location, state and country inline beyond the image. I added the following code in image.php:
`
<?php if (getImageDate()){
echo printImageDate() . " | ";
}
?>
<?php if (getImageLocation()) {
echo getImageCity(), ", ", getImageLocation(), " | ";
?>
<?php } elseif (getImageCity()) {
echo getImageCity(), " | ";
}
?>
<?php if (getImageState()) {
echo getImageState(), " | ";
}
?>
<?php if (getImageState()) {
echo getImageCountry();
}
?>
`
This works fine until I manually change the image data in backend, for example, add a description. Then the metadata location, city, state and country are not shown anymore; only description and date remain. This is the case for the changed image itself as for the following 9 images. This number corresponds with the number of images shown per page in backend. The metadata still remain in backend and in IPTC-Data, but are not shown at frontend.
Here two examples:
1: image-page as it should be:
http://zentest.hueser.ch/pflanzen/orchideen/P1090147.jpg.php2: image-page after adding description:
http://zentest.hueser.ch/pflanzen/orchideen/P1130716.jpg.phpIs this by design (you should not change metadata which come from IPCT/Exif) or did I put wrong code or is it a bug?
Btw: I tried the same code in standard Zenpage theme with the same result.
Thanks for your help!
Gonepteryx
Comments
Please try the Support build
But now the startpage / homepage needs more than 20 seconds to open, tried with zenpage and standard theme. First time I opened the start site, I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/hueserc/www/zentest/zp-core/functions.php on line 1146
Not important in my case, as this is my trial gallery. But maybe it's a hint for the developers.
Thanks for all your great work, I'm very happy with Zenphoto :-)