Pages (2): 1 2   
Member
Member
saqibbrothers   15-11-2009, 14:53
#1

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

Administrator
Administrator
acrylian   15-11-2009, 15:19
#2

You can show all database fields of the meta data using the getImageMetadata function. Please read our documentation and search the forum.

Member
Member
saqibbrothers   15-11-2009, 15:21
#3

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

Member
Member
captain1   15-11-2009, 15:37
#4

@acrylian:
Same here, you talking about this:http://www.zenphoto.org/documentation/classes/_Image.html#methodgetCredit

Where should I have to put it?

Member
Member
captain1   15-11-2009, 15:47
#5

@acrylian:
Are you talking about image EXIF information?

Administrator
Administrator
acrylian   15-11-2009, 15:51
#6

@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

Member
Member
captain1   15-11-2009, 15:54
#7

Okay, could you please guide me where to use these funtions?

Member
Member
captain1   15-11-2009, 15:57
#8

Anywhere in functions.php file?

Administrator
Administrator
acrylian   15-11-2009, 16:03
#9

You should really read the theming tutorial.

Member
Member
captain1   15-11-2009, 16:18
#10

@acrylian:
I just follow as per: http://www.zenphoto.org/2009/03/theming-tutorial/#custom-functions

But nothing happen.

Administrator
Administrator
acrylian   15-11-2009, 16:34
#11

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.

Member
Member
captain1   15-11-2009, 17:45
#12

@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?

Administrator
Administrator
acrylian   15-11-2009, 17:49
#13

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!

Member
Member
captain1   15-11-2009, 17:54
#14

I am using Zenpage, so why don't you just point out me a specific file ?

Administrator
Administrator
acrylian   15-11-2009, 18:28
#15

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

Member
Member
captain1   15-11-2009, 18:44
#16

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

Member
Member
captain1   15-11-2009, 19:12
#17
Sad
Administrator
Administrator
acrylian   15-11-2009, 19:15
#18

?

Member
Member
captain1   15-11-2009, 19:16
#19

@acrylian:
You know well what going on here..
I don't know how to make it.

Administrator
Administrator
acrylian   15-11-2009, 20:15
#20

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

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.