Jump to content


- - - - -

RESOLVED: Disable Right Click Function


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 sambrads

sambrads

    Novice

  • Members
  • PipPip
  • 16 posts

Posted 03 November 2005 - 12:46 PM

Hi just wondered if anyone could help me i want to stop people right clicking on the board and downloading the images can any tell me how to do this in the 2.1 of invision as i cant seem to find it thanks for all your help in advance guys

Kisses

Samantha

#2 maruf

maruf

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 319 posts

Posted 03 November 2005 - 03:26 PM

You can use this code to do the job:

<script language="javascript1.1">
// distributed by http://www,hypergurl.com <!-- var debug = true; function
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which
== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer'
&& (event.button == 2 || event.button == 3)) { alert('This Page is fully
protected!'); return false; } return true; } document.onmousedown=right; if (document.layers)
window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //-->

Make sure the code is within the tags of your HTML.

The source of the code is: www.hypergurl.com/norightclick.html

#3 sambrads

sambrads

    Novice

  • Members
  • PipPip
  • 16 posts

Posted 03 November 2005 - 04:13 PM

Thanks can you tell me where on the invision script i should put this code

Kisses

Sam

#4 maruf

maruf

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 319 posts

Posted 03 November 2005 - 04:44 PM

Go to your AdminCp
click on the "look and Feel"
click on the dropdown list of your default skin
click on "edit board header & footer wrapper"
find the tag and put this code between the and
then "save wrapper"

You are done! smile.gif

#5 sambrads

sambrads

    Novice

  • Members
  • PipPip
  • 16 posts

Posted 03 November 2005 - 04:49 PM

thanks did that but can still right click on images on the site and save them ???

Kisses

Sam

#6 maruf

maruf

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 319 posts

Posted 03 November 2005 - 05:11 PM

Ok, try this one then

QUOTE
<script language="javascript">
// distributed by http://hypergurl.com <!-- var popup="Sorry, right-click
is disabled.\n\nThis Site Copyright ?2000"; function noway(go) { if
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->


#7 sambrads

sambrads

    Novice

  • Members
  • PipPip
  • 16 posts

Posted 04 November 2005 - 04:29 PM

Hi Maruf thank you for all the help got it sorted and it is working fine xxx as i said thanks again

Kisses

Samantha

#8 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 14 November 2005 - 05:40 PM

The issue this topic was opened for has now been resolved.  If you need further assistance, please open a new topic.  If this topic was closed prematurely, please contact me so I can re-open it. smile.gif

Topic Closed
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter