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: delete links to original photo files  (Read 2234 times)

0 Members and 1 Guest are viewing this topic.

Chocolat

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
delete links to original photo files
« on: June 06, 2004, 02:29:13 pm »

I have deleted my original photo files to safe webspace and now I have only the thumbs and the normal_....jpeg photos in my user pics album.
But if I show an album, there is always a link which wants to link from the normal_...jpeg file to the original file that does'nt exist anymore.
How can I delete all links which link to the original files?
I want to klick on a thumbnail to open the window with the photo and the descriptions, comment... but I don't want the link on the photo to
open the window with only the photo (which is in the original size).
Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: delete links to original photo files
« Reply #1 on: June 06, 2004, 03:27:42 pm »

You shouldn't have deleted the full size pics in the first place, but anyway, as a quick-and-dirty hack: edit displayimage.php and find
Code: [Select]
       $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
        $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
        $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
        $pic_html .= "</a>\n";
and replace with
Code: [Select]
       $pic_html = "<!--<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
        $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
        $pic_html .= "--><img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
        $pic_html .= "<!--</a>-->\n";

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.