I am searching since two days, but can't find anything.
only this in "Theme tut" <?php if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."</div>"; printImageMetadata('', false); } ?>
unfortunately no php skills here.... sometimes I am able to "put things together" , but not really code things from scratch. From where do the Exif Metadata come from that shows up in that thickbox? Don't it have to be "printed" somewhere?
Also the thickbox is called by `class="thick"` and with the link within hte `a href` as descibed on the thickbox site: http://jquery.com/demo/thickbox/
I am no coder , so I can't deal with the "template_functions.php"
Only thing I need to know is how I can show the EXIF Data in the "image.php" instead of using the thickbox.
If I undestand that right - Thickbox "grabs" the "inline content" from the ID "inlineId=imagemetadata" I can't even find that ID "imagemetadata" in "image.php", so what is the clue with this, where do the content come from?
You don't need to be a coder and you don't have to deal with template-functions.php... Please read the theming tutorial on our user guide section to get a little familiar with Zenphoto themes and how to use theme/template functions.
This ist the exif data link in default theme's image.php: ` <?php if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info").""; printImageMetadata('', false); } ?> ` The id you can't find is printed by printImagemetadata. Write this and you will get exif date normally printed if available: ` <?php if (getImageEXIFData()) { printImageMetadata('', false); } ?> `
The toggle is just the second option of that function, no need to change the css. Just use `printImageMetaData("",false);` and the toggle should be disabled. Zenphoto is all about simplicity (at least we try hard)..:-)
Comments
only this in "Theme tut"
<?php
if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."</div>";
printImageMetadata('', false);
}
?>
...but this is still with Thickbox.
Do I have to change any functions.... or just
<?php printImageMetadata(true); ?>
but that also seems not to work
You could look at the function `printImageMeatdata()` and see what it does.
From where do the Exif Metadata come from that shows up in that thickbox? Don't it have to be "printed" somewhere?
Shouldn't there be something like:
<?php printImageTitle(); ?>
<?php printImageDesc(true); ?>
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageMetadata
If you have problems with our user guide please read this first:
http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Also the thickbox is called by `class="thick"` and with the link within hte `a href` as descibed on the thickbox site:
http://jquery.com/demo/thickbox/
I am no coder , so I can't deal with the "template_functions.php"
Only thing I need to know is how I can show the EXIF Data in the "image.php" instead of using the thickbox.
If I undestand that right - Thickbox "grabs" the "inline content" from the ID "inlineId=imagemetadata"
I can't even find that ID "imagemetadata" in "image.php", so what is the clue with this, where do the content come from?
This ist the exif data link in default theme's image.php:
`
<?php
if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."";
printImageMetadata('', false);
}
?>
`
The id you can't find is printed by printImagemetadata. Write this and you will get exif date normally printed if available:
`
<?php
if (getImageEXIFData()) {
printImageMetadata('', false);
}
?>
`
I was already in the "template-functions.php" making changes and I had a little bit success.
First I changed
changed the css
#imagemetadata { display: block }
so it is displayed anyway
Then in "image.php" added
<?php printImageMetaData(); ?>
Now I could see the "Image Info" Title which is clickable to toggle the Image Data
If there is no need for the toggle:
In "template-functions.php"
I changed in line 1993
$toggle=true
to false
And added a align=\"left\"
to the second td to get the righthand side listings aligned to the left.
...but this was too complicated.... your way is easier , but I still have to change the "display" in the CSS