include 4 custom fields to $pic_title include 4 custom fields to $pic_title
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

include 4 custom fields to $pic_title

Started by Hannes06, June 26, 2006, 04:41:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hannes06

Hello,

I want to modify the alt tag/pic_title of the thumbnails where standard is "filename, filezise, dimensions and date added". Instead of this information I want to display there the 4 custom fields like "user_field1_name" etc from the file-information shown on displayimage.php. I doen't find any solution for my problem.

Anybody knows how to do this?

Stramm

http://forum.coppermine-gallery.net/index.php?topic=31277.0
http://forum.coppermine-gallery.net/index.php?topic=28786.0

you need to add
$CURRENT_PIC_DATA['user1']
$CURRENT_PIC_DATA['user2']
$CURRENT_PIC_DATA['user3']
$CURRENT_PIC_DATA['user4']

[at least I guess so ;) ]

Hannes06

Thank you for your fast answer.

You mean I have to change this:
$pic_title = $lang_display_thumbnails['filename'].$row['filename']."\n".

                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".

                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".

                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);


to this (only for the first field for example):
$pic_title = $CURRENT_PIC_DATA['user1'].$row['user1'];

But this doesn't work?
I've already read these posted threads, but I don't find any solution for my problem.