Author Topic: IPTC order  (Read 3990 times)

0 Members and 1 Guest are viewing this topic.

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
IPTC order
« on: January 03, 2006, 12:54:53 AM »
Is it possible to alter the order in wich the IPTC info is shown, and if so where should i do this

Now ity's description, name, date
And i want it to be description, date name

thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: IPTC order
« Reply #1 on: January 03, 2006, 08:58:51 AM »
In includes/functions.php find:
Code: [Select]
    foreach ($iptc as $key => $val) {
      if (isset($iptc_match[$key])) {
Replace with:
Code: [Select]
    foreach ($iptc_match as $key => $val) {
      if (isset($iptc[$key])) {
        $val = $iptc[$key];

Then a few lines above you'll find a list with predefined fields. Sort them in order you want them to be showed.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: IPTC order
« Reply #2 on: January 03, 2006, 02:07:04 PM »
Thank you Veno, as always, a great help