coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Gavin Erickson on May 05, 2006, 10:56:11 AM

Title: remove filename in fullsize picture window
Post by: Gavin Erickson on May 05, 2006, 10:56:11 AM
I'm trying to remove the filename from the tooltip that appears in the fullsize picture display (i'd like to keep the "click to close" text though). Looking throught the forum, i can find references to how to do this in version 1.3, but the code seems to have substantially changed since then. I can find the text "click to close" in the english language folder, but searching for the related tag or even window.close in displayimage.php yields nothing. Oddly i couldn't find window.close in the scripts.js either. I tried commenting out

$info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);

in the displayimage.php to no avail too.

any ideas? I'm running 1.4.4 at the moment (just dled the upgrade)

I'm using a slightly modified version of the classic theme. its here:

http://www.drukpa.org.uk/photoalbum/index.php (http://www.drukpa.org.uk/photoalbum/index.php)
Title: Re: remove filename in fullsize picture window
Post by: Gavin Erickson on May 05, 2006, 12:54:29 PM
Having searched throughout, i found that the bit i think i need to change is in

include/themes.inc.php


<?php     echo  '<a href="javascript: window.close()"><img src="'
                . htmlspecialchars($imagedata['path']) . '" '
                . $imagedata['geometry']
                . 'alt="'
                . htmlspecialchars($imagedata['name'])
                . '" title="'
                . htmlspecialchars($imagedata['name'])
                . "\n" . $lang_fullsize_popup['click_to_close']
                . '" /></a><br />' ."\n";
               ?>

i changed this to:

   <?php     echo  '<a href="javascript: window.close()"><img src="'
                . htmlspecialchars($imagedata['path']) . '" '
                . $imagedata['geometry']
                . 'alt="'
                . htmlspecialchars($imagedata['name'])
                . '" title="'
                . htmlspecialchars($imagedata[''])
                . "" . $lang_fullsize_popup['click_to_close']
                . '" /></a>' ."\n";
               ?>

and that took the file name out, but left the "click image to close" message alone..

so can mark this as solved!
Title: Re: remove filename in fullsize picture window
Post by: Stramm on May 05, 2006, 01:47:03 PM
however you never should edit themes.inc.php
better copy the entire function theme_display_fullsize_pic from themes/sample/theme.php to the theme.php you're actually using and modfiy it there to your needs
Title: Re: remove filename in fullsize picture window
Post by: Gavin Erickson on May 07, 2006, 08:35:34 PM
Thanks for the tip! BIt of a crude hack on reflection :)