Member
Member
pearofducks   2006-06-18, 22:54
#1

i was working on getting exif integrated in my gallery today and ended up making something more modular than other solutions i've seen posted. this solution cannabalizes on work done in the thinkdreams theme, and also in the other exif thread. so credit goes to those who have already paved the way.

http://citrusandroid.com/exif.zip
the required files are there. to integrate them into stopdesign, just place all 3 files into the stopdesign theme folder, and overwrite the image.php file.** others who wish to integrate exif into the them should find it pretty easy to figure out.

the function to print the exif data is , and you'll obviously need to include the exif-functions.php as well in your theme.

if there is enough interest, i can make this module much more...modular, so that you could do a call to something like printExifData("date"), and printExifData("fstop"). i was going to take this extra step earlier today, but i'm not sure how far along exif is in zenphoto, and also how much of a demand there is for it.

note: there is one extra change to the image.php file aside from exif integration, i added a "Full Sized Original" link below the image description.

**note note: if your zenphoto install is on the root directory, then you need to make a change in exif-functions.php; line 8...
$url = '..' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY

Member
Member
ineedhelp   2006-07-10, 13:14
#2

works like a charm! thanks :¬)

Member
Member
xebeque   2006-07-10, 21:45
#3

works like a charm! thanks :¬)
Indeed! Great improvement to zp!
pearofducks, you suggest further modularization to your script - wouldn´t that make sorting exif data much easier? Your script seems to read exif data in the given order - am I right?

Member
Member
pearofducks   2006-07-13, 07:49
#4

if there was interest from the theming community i was going to make it so function calls and such were easier to do than they are, and so the script could be integrated with less effort. but it seems like most themers are doing their own implementations.

Member
Member
Chilifrei64   2006-07-13, 11:29
#5

I think most people are doing there own EXIF implementations because there is nothing better out there. If there was one robust implementation of EXIF, I am sure most of us would stop writing our own and just use that one. I know I would.

Member
Member
xebeque   2006-07-13, 21:56
#6

As zp user not coder - I´d wish exif functions that may easily be integrated to a site template (e.g. an array like

Junior Member
Junior Member
Artefact   2006-09-13, 20:21
#7

Hello,

I am a newbie with css and php,

In:
**note note: if your zenphoto install is on the root directory, then you need to make a change in exif-functions.php; line 8...
$url = '..' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY

What is the url please, i don't understand sorry.

Thanks a lot for your answers.

Member
Member
xebeque   2006-09-15, 09:29
#8

Quite simple I suppose:
Remove one dot from $url = '..' . $path;
and you get $url = '.' . $path;

Have a close look.

So you get
$url = '.' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY

You may delete everything after and the // - it's just an instruction. So

$url = '.' . $path;

should work either.

Junior Member
Junior Member
gorgorbay   2006-12-29, 11:36
#9

The link to the zip file is down, anybody could provide a replacement mirror ?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.