Hi.
Fantastic software and one I'm busy using to fine tune a website gallery for my photography.
I noticed that upon import (I FTP to folders on my server) that ZenPhoto very cleverly populated certain fields with information from the IPTC data I embed in each file. I LOVE IT. However I'd love to embed this on the image.php pages that display my images.
So far I have used the following codes, but for some reason it defaults to each having it's own line (which I dont want).
`<?php printImageData("copyright", "Copyright"); ?>`
For copyright for example. I also use the Location, State, Country codes and would love to have them display something like this:
[strong]Picture taken at :[/strong] Location, State, Country to display on one line.
How do I do this??
I know which codes to use (I think), but no idea how to put this code into the image.php file.
Any help would be appreciated. I've read the functions in the documentation, but not **really** knowing PHP very well (still learning) it's a bit tough with things like VOID etc.. which I do not understand, especially the arguments and structure.
Regards,
Simon
Comments
So: `echo 'Picture taken at:" '.getImageData('location').', '.getImageData('state').', '.getImageData('Country');`
This works perfectly!
Your help and gallery are really appreciated!
Do tags such as Event, Category, Usage Rights Terms, URL, etc get stripped out of the JPEG?
Which of the IPTC tags remain, and what are their "codes" to use in the getImageData code?
Thanks!
I have another question.
I've used the code `<?php echo getFullWidth() . " x " . getFullHeight(); ?>` to display the pixel dimensions of the file below the photo on the image.php page. Is there a similar code to display the file size in MB?
Thanks!
I'm still learning PHP, so where would I insert this? And what tags do I put this inbetween?
And last question (promise!!) is there a PHP tag that I can drop in to display the filename of the picture being displayed?
I have read through the functions and still not always sure how to put these into my template I'm building! Slow, but with your help learning more each day.
Many thanks!! (again)
Simon
I've started by tweaking the default theme (still learning, so best for me). So where abouts would I insert this?
All your help (especially sbillard) is much appreciated!
Many thanks.
I have downloaded the document and printed it! :-) I am new to this and learning so much so quickly. It's just slow as I have to edit on my machine, then FTP the php file back to the server, then refresh the page to see the changes. Sometimes I just want to run and I can only walk!
Will post a link when I'm done. I am really loving ZenPhoto. I'm sure there will be lots of questions still!
I will ask my friend.
Thank you again.
Simon