ZenphotoCMS Forum
add EXIF data to "cimi" theme? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: add EXIF data to "cimi" theme? (/thread-6177.html)



add EXIF data to "cimi" theme? - psterling - 23-11-2009

I've been trying to add an EXIF info section (similar to the lightbox-style EXIF window in the "Zenpage-default" theme) to the "cimi" theme. I've edited the image.php file, adding:




add EXIF data to "cimi" theme? - micheall - 23-11-2009

Have you take a look at the coding in a theme that has this functionality like the example or zenpage themes? You're close, but you are missing something, take a look you'll see it.




add EXIF data to "cimi" theme? - kagutsuchi - 23-11-2009

I believe you're missing the JavaScript for the toggle that is present in other themes. You can either look at an existing theme or take a look at the theming tutorial that has the code: http://www.zenphoto.org/2009/03/theming-tutorial/#image.php




add EXIF data to "cimi" theme? - psterling - 23-11-2009

Thanks, guys, for pointing me in the right direction. I guess I exhausted all my brain cells in my Town Council meeting last night, because I still can't get this to work. The output seems almost identical to another theme I've tried that correctly shows the EXIF data hiding/unhiding. I'm fairly competent with PHP, but I'm still a marked amateur with javascript. I thought maybe the link to my css was invalid, but it seems to be parsing correctly. I feel really dumb, here! Here's what I'm working with:

`

 |  | 



add EXIF data to "cimi" theme? - psterling - 23-11-2009

I'm confident the link itself is not the culprit, because the link is parsed identically in both my non-working and working versions:

`

Image Info

`
Note: I had to put "aa href" in the code above so you could see my full link code. I wasn't sure how to do it otherwise so this forum didn't parse it as an actual link...




add EXIF data to "cimi" theme? - acrylian - 23-11-2009

That link is a thickbox script link. You will have to add the scripts for that, too:

`




add EXIF data to "cimi" theme? - psterling - 23-11-2009

Thanks, but I already have those lines you suggested toward the top of the code above. I was just trying to narrow down the possibilities for where my error is. It's a little more difficult, as the "cimi" theme's code is in a slightly different order than the "default" theme's code, for which I was comparing it against.

Still searching as to why I can never display my EXIF data in the hidden state...




add EXIF data to "cimi" theme? - acrylian - 23-11-2009

Well, I don't know anything about the specifics of that theme.




add EXIF data to "cimi" theme? - psterling - 23-11-2009

Looks like it was a problem in my css file. Now, everything displays just fine hidden, but I can't get it to show the EXIF data when I press the link! At least I'm getting somewhere. I'm betting that the display problem now is in the css file as well. Thanks for trying to help. I love this software!




add EXIF data to "cimi" theme? - psterling - 23-11-2009

I figured everything out by referring to the help section at http://jquery.com/demo/thickbox/




add EXIF data to "cimi" theme? - micheall - 24-11-2009

glad to hear you got it figured out, from what it looks like in the code you posted above it was the link because you weren't calling the #tb in your image link. Unless you had that and it wasn't in the code posted above.