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

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

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.