Additional Image description

I was just looking for some stuff like the additional information you can edit at the "image description" in the backend.
Like the "City", "Country", "Credit", "Copyright", etc.

Can these informations be displayed on the "image.php" ?

Comments

  • ok, with

    `<?php printImageCustomData(); ?>`

    I can show everything from that "Custom field", but what's about the other fields?
  • see `printImageData()`
  • hmmm,... if I put this into my image.php:

    `<?php printImageData(copyright, copyright); ?>`

    It seems to work fine, but
    where can I find the correct "field name of the data desired" ? I have some problems with the "village", "city", "state" and "country"
    I have a german zenPhoto installed and I'm not able to translate those correctly..... bad thing.

    `
    <?php printImageData(village, Ort); ?>
    <?php printImageData(city, Stadt); ?>
    <?php printImageData(country, Land); ?>
    <?php printImageData(state, Staat); ?>
    <?php printImageData(credit, credit); ?>
    <?php printImageData(date, Datum); ?>
    <?php printImageData(copyright, Copyright); ?>
    `
  • acrylian Administrator, Developer
    Hello again...:-) You really need to learn a few things about php functions in general and read the guide I posted on the other thread carefully before proceeding anyfurther. You need to do it this way (as again told on your functions guide tutorial):
    `<?php printImageData("city", "Stadt"); ?>`
  • harmonzeitn,.... :-) es funktioniert auch ohne "Anführungszeichen"..... I just didn't know the correct field name for "Ort" , "Stadt" , "Land" , "Staat", cause it seems to be some different translations here (I got it now from the backend code):

    current translation:

    Ort - not village - is location (I should have known that)
    Stadt - is city
    Land - not country - is state
    Staat - not state - is country

    I think the translation for "state" and "country" is switched somehow.... but I what do I know, I'm no good english speaking person .... :-)
  • acrylian Administrator, Developer
    Well, but with quotes is the correct way to do it.

    Yes, that's the way I translated it, because "Germany" is the country and "Bayern" would be "ein Land", the equivalent to California which would be a "state" of the country USA. (Well, I can be wrong, too, of course..)
  • so,... yes,.... could be that way or the other way....
    But that isn't important anymore..... now I know the translation... :-)

    Thank's Malte
  • The general way to find the field names would be t look at the database definitions. These you can do using your MySQL administrative tools provided by you Internet Service Provider.
  • ok.... thank's
Sign In or Register to comment.