Disable Right Click Portfolio Gallery

  • Posted in : Photographer
  • BrentYoungPhoto
    Participant

    Hey guys,

    This is probably really simple and i’m just an idiot, but I was wondering if there was a way I could disable Right Click in the Portfolio Gallery?

    Great Theme by the way, I Love it!

    Kind Regards,
    Brent

    raffikadafi
    Participant

    I was wondering the same thing.

    Raffi

    Braure54
    Participant

    I use a wordpress plugin : WP-Copyright-Protection

    BrentYoungPhoto
    Participant

    Thanks Braure54, that works perfectly

    Matheus Britto
    Participant

    You can use this script. Works for me. ;-)


    var message = “Sorry!”;
    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”);

    Mehmet S.
    Keymaster

    Hi, a plugin solution is a good choice.

    Thanks

    bentham403
    Participant

    Can you drag the pictures with that plunging installed? thanks

    Mehmet S.
    Keymaster

    Hi, you can try the plugin, it is here.

    Thanks

    zamsh
    Participant

    Hi Mehmet,
    this plugin was last updated 3 years ago and was not tested with this theme (as it says on the add plugins page)
    Is there another plugin you recommend using for this subject?

    Thanks,
    Shani

    Mehmet S.
    Keymaster

    Hi, there is no any other in my mind.

    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register