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: disable right click  (Read 4130 times)

0 Members and 1 Guest are viewing this topic.

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
disable right click
« on: June 16, 2005, 08:50:07 am »

I have used javascript to disable right click on images and it works but it doesnt work when a user watches the pics in full image. I guess i must the javascript somewhere else as well for that. Where else must i add it ?
« Last Edit: June 16, 2005, 06:23:12 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: disable right click
« Reply #1 on: June 16, 2005, 10:30:06 am »

edit displayimage.php, find
Code: [Select]
<script language="JavaScript" type="text/JavaScript">
adjust_popup();
</script>
and add your code there accordingly. Please search this forum for the JavaScript no-right-click discussion, might be food for thought for you.
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: disable right click
« Reply #2 on: June 16, 2005, 11:08:55 am »

i added my javascript right below the adjust_popup();
</script>and is working cool
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: disable right click
« Reply #3 on: June 16, 2005, 01:32:31 pm »

I got another problem. the no right click works in the full size but the browser displays a little bar from which still u can save the images. any ideas how to wipe out this little bar (floatbar or whatever it is called)

EDITED

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

this is the solution which disables the image toolbar if anybody is interested in this
« Last Edit: June 16, 2005, 02:00:13 pm by Konstantinos »
Logged
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 20 queries.