Orginal size image to display title of image on mouseover Orginal size image to display title of image on mouseover
 

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]

Main Menu

Orginal size image to display title of image on mouseover

Started by moonflower102, May 30, 2013, 02:30:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

moonflower102

I would like the original image to display the title of the image on mouse over instead of image name extension (xxx.jpg) and  'click this image to close this window' .. How do I go about changing that..Thanks

Αndré

Copy the function theme_display_fullsize_pic from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. Then, find
$sql = "SELECT filepath, filename, url_prefix, pwidth, pheight FROM {$CONFIG['TABLE_PICTURES']} AS p " . "WHERE pid='$pid' $FORBIDDEN_SET";
and replace with
$sql = "SELECT filepath, filename, url_prefix, pwidth, pheight, title FROM {$CONFIG['TABLE_PICTURES']} AS p " . "WHERE pid='$pid' $FORBIDDEN_SET";

find
$imagedata = array('name' => $row['filename'], 'path' => $pic_url, 'geometry' => $geom);
and replace with
$imagedata = array('name' => ($row['title'] ? $row['title'] : $row['filename']), 'path' => $pic_url, 'geometry' => $geom);

find
. $LINEBREAK . $lang_fullsize_popup['click_to_close']
and remove it completely.

moonflower102


Αndré

As I already told you in your other thread, please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.