coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Hannes06 on June 26, 2006, 04:41:48 PM

Title: include 4 custom fields to $pic_title
Post by: Hannes06 on June 26, 2006, 04:41:48 PM
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?
Title: Re: include 4 custom fields to $pic_title
Post by: Stramm on June 26, 2006, 04:51:53 PM
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 ;) ]
Title: Re: include 4 custom fields to $pic_title
Post by: Hannes06 on June 26, 2006, 05:14:47 PM
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.