Author's name

Is is possible to show author's name of images in the gallery?

Comments

  • acrylian Administrator, Developer
    You can show all database fields of the meta data using the getImageMetadata function. Please read our documentation and search the forum.
  • 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
  • @acrylian:
    Same here, you talking about this:http://www.zenphoto.org/documentation/classes/_Image.html#methodgetCredit

    Where should I have to put it?
  • @acrylian:
    Are you talking about image EXIF information?
  • acrylian Administrator, Developer
    @captain1: Yes, if we refer to metadata we mean EXIF/IPTC data. You can use `getCredit` but that is a class method and needs to be used with the image object. I was actually talking about these: http://www.zenphoto.org/documentation/functions/_functions.php.html#functiongetImageMetadata
    http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageMetadata
  • Okay, could you please guide me where to use these funtions?
  • Anywhere in functions.php file?
  • acrylian Administrator, Developer
    You should really read the theming tutorial.
  • acrylian Administrator, Developer
    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.
  • @acrylian:
    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?
  • acrylian Administrator, Developer
    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`!
  • I am using Zenpage, so why don't you just point out me a specific file ? :)
  • acrylian Administrator, Developer
    You are funny. How shall I know that you mean the author of a page or article when the thread is about the author of an image???

    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...)
  • Oh my god, Do shimasu ka.
    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..
  • acrylian Administrator, Developer
    ?
  • @acrylian:
    You know well what going on here..
    I don't know how to make it.
  • acrylian Administrator, Developer
    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!
  • acrylian Administrator, Developer
    Well, if that EXIF field is not used on your image it is of course empty...
  • 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..
  • acrylian Administrator, Developer
    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.
  • 2. I just uploaded an image now , plugin is enables but no user information in descrption of image or in exif data. :)

    Even I tried refreshing metadata
  • 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.
Sign In or Register to comment.