delete links to original photo files delete links to original photo files
 

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

delete links to original photo files

Started by Chocolat, June 06, 2004, 02:29:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Chocolat

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!

Joachim Müller

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