Author Topic: Create own global 'function'  (Read 3677 times)

0 Members and 1 Guest are viewing this topic.

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Create own global 'function'
« on: June 25, 2008, 03:21:11 PM »
I'm trying to create a way to retrieve exif data all on one line for use with Lightbox 2 JS.

How would I go about create my own {exif_thing} to use in templates?

The string I use currently to read exif is - this is processed in the details.html template, and refers to the php script 'exif.inc' which processes the image, and outputs exif data on one line (see here for example)

Code: [Select]
<?php  $filename "{media_src}"; require("exif.inc"); $er = new phpExifRW($filename); $er->processFile(); $er ->showImageInfo(); ?>
I would love to be able to get this working, or somehow have the 4images own exif tool instead, but all the items on one line like such:

Focal Length, F stop, Shutter speed, ISO


Any ideas? (I have searched and found a number of exif related threads, but not had much luck in finding what I'm after).

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Create own global 'function'
« Reply #1 on: June 25, 2008, 03:42:53 PM »
... I think there is a shorter way to show the exif-infos in the way you like ...

1. in includes/functions.php we have "function get_exif_info($exif)" ...
    there you can edit the infos you like to show ...

2. and for the design of exif-infos you must only edit your exif_bit.html ...
    for example ... without <tr> </tr> ... it shows exif-infos in one line ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Create own global 'function'
« Reply #2 on: June 26, 2008, 12:32:02 AM »
Hrm - thanks. It kind of heads me in the right direction. I did end up finding the mod to write exif to the database which should make this a bit easier too.