View Full Version : Add EXIF Data to Horizon Template
Pixelfuss
05-03-2008, 06:21 PM
Hello,
I'm using the Horizon template and would like to include EXIF data, can someone help? I have read and found the EXIF tags, but do not know where to include them in the CSS or templates?
Crossie
05-03-2008, 06:55 PM
Usually you want to place the tags somewhere in the the file image_template.html or in comment_template.html. You can place them wherever you want them to appear. But it would make sense to create a separate CSS container (div) in the templates CSS file for the output-formatting.
Regards
Uwe
dhdesign
05-03-2008, 07:06 PM
You need to include the exif tags in the image_template.html file of the Horizon template.
Open it in a text editor, then scroll down to around lines 36-37 - code at that point should be:
<div id="image_notes">
<IMAGE_NOTES>
After that, add the following:
<div id="image-exif">
<EXIF_CAMERA_MODEL><br />
<EXIF_EXPOSURE_TIME><br />
<EXIF_APERTURE><br />
<EXIF_FLASH><br />
</div>
These are just examples of common exif tags that are used in templates - you can change or add to them as need be, so long as you include them before the closing div tag.
In your stylesheet (horizon.css), add the following:
#image_notes #image-exif {
padding-top: 10px;
text-align: left;
vertical-align: top;
}
That will style the div that the exif tags are included in. Make whatever changes necessary (padding, etc.) in order for them to fit in properly with the rest of the information in the left column.
If you have any questions or problems, post back here and I or someone else will try to help you out. :)
siddr20
06-07-2008, 10:22 AM
Thanks for this :)
Works great!!
JFMichaud
06-27-2008, 02:16 PM
Très bien je cherchais justement la même info...
Super i was looking for the exact same info
Thanks
djaef
07-02-2008, 11:26 AM
Thank you. I was doing it all in the wrong place (comments page)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.