coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Chocolat on June 06, 2004, 02:29:13 PM

Title: delete links to original photo files
Post by: Chocolat 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!
Title: Re: delete links to original photo files
Post by: Joachim Müller 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        $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        $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