News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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://coppermine-gallery.com/forum/index.php?topic=31277.0
http://coppermine-gallery.com/forum/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.