i don't want to repeat posts so i always prefer explore your forum for the issue and topic, i'm looking for but if i dont find ,ofcouse i'm here Don't mind keep helping newbie...We appreciate
You don't need custom functions. The functions I referred to are standard functions and can directly be used. Sorry, but if you don't understand the theming tutorial you will have to learn a few XHTML and PHP basics first. We can't teach these here.
You have to modify your theme file(s) where you want to display the author using the above mentioned function(s). It is really not that hard but you really should first understand how theming works.
You have to do NOTHING with files within `zp-core`!
First there is actually no "author" for images/albums like there is for pages or articles, the closest is the `EXIFartist` field.
To get the artist use `echo $_zp_current_image->get("EXIFartist");` on obviously `image.php`. Of course that will be empty if not set by the image's exif data.
You can also enable that field on the EXIF display option on hte backend (options > image).
Well, I paste the code in image.php and then enable options of Artist and Image Credit on hte backend (options > image. But everything is still same...
By the way, what I want to do is that If is it possible to show the name of USER, who upload image. That's all!
Have you enabled the filter-new-objects plugin? Otherwise this information is not known. If you have enabled the plugin the name is added to the description.
@sbillard: Hi, well I have enabled the filter-new-objects plugin and then then enable options of Artist and Image Credit on hte backend (options > image. but nothing happens.
Even I try to use the echo $_zp_current_image->get("EXIFartist"); on image.php. But still nothing!
1. Obviously my image has author name in the image. 2. as sbillard say enabling filter-new-objects plugin will show uploader name but nothing working. perhaps this plugin have nothing to do with EXIF..
1. Then you did something wrong. Look at the database if the field has an entry. 2. That was for adding the USER who uploaded the image to the image info data. This of course happens only for newly uploaded images.
So, lets be clear. If you want the name of the person who uploaded the image you use the plugin. That is NOT the `EXIFartist` field. The name is appended to the description (like I said in my original post!)
If you want some other filed, like the `EXIFArtist` or `IPTCByLine` (they are different, by the way, but some software does not show you the distinction) the field from the metadata, then that field MUST exist in the image metadata and Zenphoto MUST have supported the field when you last imported the image metadata.
So, if you have refreshed your metadata and do not see that field, it is not present in your images metadata.
Comments
Don't mind
keep helping newbie...We appreciate
Same here, you talking about this:http://www.zenphoto.org/documentation/classes/_Image.html#methodgetCredit
Where should I have to put it?
Are you talking about image EXIF information?
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageMetadata
I just follow as per: http://www.zenphoto.org/2009/03/theming-tutorial/#custom-functions
But nothing happen.
I am sorry but I really don't figure out that.
I tried with functions-image.php and image.php but failed. If anybody else would help me?
You have to do NOTHING with files within `zp-core`!
Since you are not trying to do your "homework" read here:
http://www.zenphoto.org/2009/03/theming-tutorial/#part-4
http://www.zenphoto.org/documentation/plugins/zenpage/_plugins---zenpage---zenpage-template-functions.php.html#functiongetAuthor (A search on the element index page would have brought it up real fast...)
I just mentioned Zenpage cause I'm using it otherwise still I meant author of an image not of a page nor news.
Well, let me see study links, you mentioned and I'll get back to you in few mins..
You know well what going on here..
I don't know how to make it.
To get the artist use `echo $_zp_current_image->get("EXIFartist");` on obviously `image.php`. Of course that will be empty if not set by the image's exif data.
You can also enable that field on the EXIF display option on hte backend (options > image).
But everything is still same...
By the way, what I want to do is that If is it possible to show the name of USER, who upload image. That's all!
Hi, well I have enabled the filter-new-objects plugin and then then enable options of Artist and Image Credit on hte backend (options > image. but nothing happens.
Even I try to use the echo $_zp_current_image->get("EXIFartist"); on image.php. But still nothing!
2. as sbillard say enabling filter-new-objects plugin will show uploader name but nothing working. perhaps this plugin have nothing to do with EXIF..
2. That was for adding the USER who uploaded the image to the image info data. This of course happens only for newly uploaded images.
Even I tried refreshing metadata
If you want some other filed, like the `EXIFArtist` or `IPTCByLine` (they are different, by the way, but some software does not show you the distinction) the field from the metadata, then that field MUST exist in the image metadata and Zenphoto MUST have supported the field when you last imported the image metadata.
So, if you have refreshed your metadata and do not see that field, it is not present in your images metadata.