Advanced search  

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]

Pages: [1]   Go Down

Author Topic: include 4 custom fields to $pic_title  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

Hannes06

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
include 4 custom fields to $pic_title
« 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: include 4 custom fields to $pic_title
« Reply #1 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 ;) ]

Hannes06

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: include 4 custom fields to $pic_title
« Reply #2 on: June 26, 2006, 05:14:47 pm »

Thank you for your fast answer.

You mean I have to change this:
Code: [Select]
$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):
Code: [Select]
$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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.