![]() |
|
EXIF Data - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: EXIF Data (/thread-4250.html) |
EXIF Data - no64 - 2008-12-14 ... I'm trying to create a own theme. . . and have no idea how to print/read out the EXIF Data without the thickbox. Where can I find some hints? Thanks EXIF Data - sbillard - 2008-12-14 There have been some other posts on the forum about this. You can also review the functions in zenphoto that currently do this. EXIF Data - no64 - 2008-12-14 I am searching since two days, but can't find anything. only this in "Theme tut" <?php if (getImageEXIFData()) {echo "<div id=\"exif_link\"><a>".gettext("Image Info")."</a></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 EXIF Data - sbillard - 2008-12-14 Are you comfortable with PHP? You could look at the function `printImageMeatdata()` and see what it does. EXIF Data - no64 - 2008-12-15 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? Shouldn't there be something like: <?php printImageTitle(); ?> <?php printImageDesc(true); ?> EXIF Data - acrylian - 2008-12-15 There is `printImageMetaData()`...The function is described here: 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/ EXIF Data - no64 - 2008-12-15 yes,..... 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? EXIF Data - acrylian - 2008-12-15 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 "<a href=\"#TB_inline?height=345&width=300&inlineId=imagemetadata\" title=\"".gettext("Image Info")."\" class=\"thickbox\">".gettext("Image Info")."</a>"; 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); } ?> ` EXIF Data - no64 - 2008-12-15 Danke, danke, danke Malte..... jetzt wäre ich doch fast eingegangen... 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
EXIF Data - acrylian - 2008-12-15 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)..:-) EXIF Data - no64 - 2008-12-15 yes,... great.
|