We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Disable Right | Forum

Topic location: Forum home » Support » General Questions
Morena Milani
Morena Milani Nov 24 '14
Can you tell me how you can do to disable the right button to save
Durlabh Ashok
Durlabh Ashok Nov 24 '14
Hello Morena, 

Please give more details,What you want to achive?

ross Team
ross Nov 24 '14
Morena, please provide screenshot of that button. 
Morena Milani
Morena Milani Nov 25 '14
Screenshot button right mouse 
Attachments:
  Disable right mouse.JPG (127Kb)
ross Team
ross Nov 25 '14

You can try this script: <script language="javascript" type="text/javascript"

      src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">

    </script>

    <script type="text/javascript" language="javascript">

        $(function() {

            $(this).bind("contextmenu", function(e) {

                e.preventDefault();

            });

        }); 

    </script>


Put it here: www.yoursite.com/admin/settings/page in the Custom head code area.  

But, some other javascript code can be broken because of this code, you need to test it. 

Also you should know there are many other ways to save the images from any website. It will prevent only this way of saving images


You can also look here: https://www.google.ru/?gws_rd=ssl#newwindow=1&q=disable%20right%20click%20jquery 

Durlabh Ashok
Durlabh Ashok Nov 25 '14
+1 Ross
Morena Milani
Morena Milani Nov 25 '14
I know that there is Ross system to block saving images but to reassure users. For the less experienced to deter plagiarism in being a Social Art
Morena Milani
Morena Milani Nov 25 '14
Thanks Ross I have not tested on live and it worked! Then he turned on Notonlyphotos.
ross Team
ross Nov 25 '14
No problem.