remove filename in fullsize picture window remove filename in fullsize picture window
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

remove filename in fullsize picture window

Started by Gavin Erickson, May 05, 2006, 10:56:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gavin Erickson

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

Gavin Erickson

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!

Stramm

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

Gavin Erickson

Thanks for the tip! BIt of a crude hack on reflection :)