No Right Click

    Share

    olabaz
    Forum Member
    Forum Member

    Number of posts : 13
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-14

    No Right Click

    Post by olabaz on Mon Sep 15, 2008 3:17 am

    This disables right clicking on pages.

    Code:

    <script language=Javascript>
    <!--
    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

    document.oncontextmenu=new Function("return false")
    // -->
    </script>
    avatar
    kvl_share
    Forum Member
    Forum Member

    Number of posts : 39
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-11

    Re: No Right Click

    Post by kvl_share on Mon Sep 15, 2008 8:59 am

    In forums, do we need to put this code in every page like portal, index or it works on the whole website?

    olabaz
    Forum Member
    Forum Member

    Number of posts : 13
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-14

    Re: No Right Click

    Post by olabaz on Tue Sep 16, 2008 12:12 am

    I'm not sure, I've never used this on a forum, but I think you would.

    swg
    Forum Member
    Forum Member

    Number of posts : 6
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-20

    Re: No Right Click

    Post by swg on Sat Sep 20, 2008 9:54 am

    You should put it in overall_header.html (for phpBB3)
    avatar
    kvl_share
    Forum Member
    Forum Member

    Number of posts : 39
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-11

    Re: No Right Click

    Post by kvl_share on Sat Sep 20, 2008 12:13 pm

    ok...thanks
    avatar
    magic_cupid
    Forum Member
    Forum Member

    Number of posts : 2
    Age : 26
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-30

    Re: No Right Click

    Post by magic_cupid on Tue Sep 30, 2008 3:42 pm

    here is my code for unable to use right click

    Code:
    <body oncontextmenu='return false';>


    Admin Panel\General\Configuration and paste the following code to "Site description * :" and press "Save"
    this will make you not able to use right click for whole forum Wink
    avatar
    kvl_share
    Forum Member
    Forum Member

    Number of posts : 39
    Cash : 10
    Personalized field : <a href="http://promotionzone.ace.st/portal.forum?pid=3&sid=35c0a427ffd0f19f473c8e28fc2371bc/">Donate</a> <b>:</b>
    Registration date : 2008-09-11

    Re: No Right Click

    Post by kvl_share on Tue Sep 30, 2008 4:02 pm

    Why both codes differs so much?
    Your code is so short and olabaz posted very long though both work same!!

    Sponsored content

    Re: No Right Click

    Post by Sponsored content


      Current date/time is Fri Jun 23, 2017 1:47 am