Advanced search  

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

Pages: [1]   Go Down

Author Topic: disable right click  (Read 4275 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.017 seconds with 20 queries.