Caption viewed in thumbnail mouse over? Caption viewed in thumbnail mouse over?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Caption viewed in thumbnail mouse over?

Started by ayoungblood, May 21, 2006, 12:32:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ayoungblood

Hello,

I would like to have the caption displayed in the thumbnail mouseover info.

Based on direction found in this post
http://forum.coppermine-gallery.net/index.php?topic=186.0

I edited my includes/function.inc.php file like 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);
                        $lang_display_thumbnails['caption'].$row['caption_text']."\n"

I got the caption_text thing from another line of code that referred to the caption.

I'm not sure if I've added the caption stuff to the right place or if it has to be in both referances of the string or if it's even formated correctly. It's obviously not correct because the file in place all I get when I go to the gallery is a white screen with this info-

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/silverim/public_html/gallery/include/functions.inc.php on line 2005

Any ideas?

Thanks,

Alan