• Sign in to follow this  
    Followers 0

    (0 reviews)

    Disable Right Click For Guests

    A small yet useful tutorial

    This tutorial will disable right click on your site for guests only!

     

    Just add that code @ the very top of your ACP > look & Feel > Skin name > Edit Template HTML > All Global HTML > global_board_header

     

    <if="$this->ipsclass->member['id'] == '0'">
    <script language=JavaScript>
    var message="You Must Log-in before you can use Right Click!";
    
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    
    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }
    
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    document.oncontextmenu=new Function("alert(message);return false")
    </script>
    </if>

    Change what the message says all you need to do is Edit this part of the codes "You Must Log-in before you can use Right Click!"

     

    0

    Sign in to follow this  
    Followers 0

    User Feedback

    Create an account or sign in to leave a review

    You need to be a member in order to leave a review

    Create an account

    Sign up for a new account in our community. It's easy!


    Register a new account

    Sign in

    Already have an account? Sign in here.


    Sign In Now

    There are no reviews to display.