IPTC Category Field IPTC Category Field
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

IPTC Category Field

Started by pcbill, July 04, 2006, 12:18:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pcbill

Does anyone know how to get the "IPTC Category" field to stop displaying on the display image page when the field is empty. Other fields only display when they have data. This one works the opposite.

Otherwise is ok to hack the displayimage.php page to try and disable it?

Thanks,

Bill

Nibbler

Hack anything you like, change the remaining issets to !emptys


        if (isset($iptc['Title'])) $info[$lang_picinfo['iptcTitle']] = $iptc['Title'];
        if (isset($iptc['Copyright'])) $info[$lang_picinfo['iptcCopyright']] = $iptc['Copyright'];
        if (!empty($iptc['Keywords'])) $info[$lang_picinfo['iptcKeywords']] = implode(' ',$iptc['Keywords']);
        if (isset($iptc['Category'])) $info[$lang_picinfo['iptcCategory']] = $iptc['Category'];
        if (!empty($iptc['SubCategories'])) $info[$lang_picinfo['iptcSubCategories']] = implode(' ',$iptc['SubCategories']);

pcbill

Thanks, have it working nicely now.

Bill