Member
Member
no64   2008-12-14, 18:09
#1

... 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

Member
Member
sbillard   2008-12-14, 20:29
#2

There have been some other posts on the forum about this. You can also review the functions in zenphoto that currently do this.

Member
Member
no64   2008-12-14, 22:03
#3

I am searching since two days, but can't find anything.

only this in "Theme tut"

...but this is still with Thickbox.

Do I have to change any functions.... or just

but that also seems not to work

Member
Member
sbillard   2008-12-14, 22:52
#4

Are you comfortable with PHP?

You could look at the function printImageMeatdata() and see what it does.

Member
Member
no64   2008-12-15, 09:28
#5

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:

Administrator
Administrator
acrylian   2008-12-15, 11:22
#6

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/

Member
Member
no64   2008-12-15, 12:41
#7

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?

Administrator
Administrator
acrylian   2008-12-15, 16:09
#8

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:
`

The id you can't find is printed by printImagemetadata. Write this and you will get exif date normally printed if available:

`

Member
Member
no64   2008-12-15, 17:26
#9

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

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

Administrator
Administrator
acrylian   2008-12-15, 19:33
#10

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)..:-)

Member
Member
no64   2008-12-15, 19:37
#11

yes,... great.

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