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: How to disable bigger picture...?  (Read 3284 times)

0 Members and 1 Guest are viewing this topic.

Jorge18

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
How to disable bigger picture...?
« on: November 11, 2005, 07:51:50 pm »

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!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to disable bigger picture...?
« Reply #1 on: November 11, 2005, 08:32:06 pm »

edit displayimage.php, 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;
            $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;
            $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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.