How to disable bigger picture...? How to disable bigger picture...?
 

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]

Main Menu

How to disable bigger picture...?

Started by Jorge18, November 11, 2005, 07:51:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jorge18

Hey what's up guys? I was wondering if you could point me in the right direction. I need to disable the option that when your looknig at a picture on the gallery and click on it, it opens up a new window with the picture in full size. I need to disable it, because on there you can right click and save the picture. So i'm in need of either disable right click for the new window( I already disabled right click evreywhere else) or to disable clicking on the picture. If you guys can help me out I would greatly appreciate it!!

Joachim Müller

edit displayimage.php, 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;
            $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;
            $pic_html .= "--><img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "<!--</a>-->\n";
Has been asked often already, next time please search before posting.
Recommended however: upload pics in intermediate res in the first place, refer to the batch-resize tutorial.