Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorgac
    • CommentTimeJun 29th 2008
     
    Hi all,

    I was wondering if there was a way to disable the saving of a photo from a plogger gallery.

    I know there are ways around saving a photo anyways (print screen for example), but I still hope for a simple deterrance that might keep away the flagrant right-click / savers that might come across my photo gallery.

    Any ideas anyone?

    Thank you in advance,
    G
    •  
      CommentAuthorkimparsell
    • CommentTimeJun 29th 2008
     
    There are several ways to do this - here are a couple of solutions:

    The first thing you can do is to add <meta http-equiv="imagetoolbar" content="no" /> to the head.php file in the theme you are using. This will disable the Internet Explorer toolbar that appears when you hover over an image.

    You can also add oncontextmenu="return false" to the image tag in picture.php:

    // generate XHTML with thumbnail and link to picture view.
    $imgtag = '<img class="photos-large" oncontextmenu="return false" src="'.plogger_get_picture_thumb(THUMB_LARGE).'" title="'.$capt.'" alt="'.$capt.'" />';


    That will disable the right-click menu only on the image. Your visitors will still be able to right-click on a link to open it in a new tab or window. This is a much better solution than some of the javascripts that disable right-click for the entire page.

    Hope this helps!
    Thankful People: pkearney, gac
    • CommentAuthorgac
    • CommentTimeJun 29th 2008
     
    This is perfect. I used the oncontextmenu tag and it works like a charm.

    Kim, you're wonderful! Thank you so much again.

    Sincerely,
    G
    • CommentAuthorPhilEvans
    • CommentTimeAug 31st 2008
     
    I used the oncontextmenu too and it worked superbly, one thing though you need to do the same in slideshow.php or the full size pictures can be saved from there, I'm using theme air and the line of code after update looks like this:

    $imgtag = '<img id="slideshow_image" class="photos-large" oncontextmenu="return false" src="about:blank" title="" alt="" />';

    For the META solution to disable the IE toolbar whereabouts in head.php would that go?

    Thanks
    P
    •  
      CommentAuthorkimparsell
    • CommentTimeAug 31st 2008
     
    Hi Phil -

    Open head.php in your theme and add

    <meta http-equiv="imagetoolbar" content="false" />
    as the first line, and you should be just fine. :)
    • CommentAuthorPhilEvans
    • CommentTimeSep 1st 2008
     
    Hi kim that was great thanks

    One thing though when I click on the image to get the full size pic the toolbar returns, anyone know where to change that?

    Thanks

    Phil
    •  
      CommentAuthorkimparsell
    • CommentTimeSep 1st 2008
     
    Phil -

    The toolbar that you see once you click on the full-size image is controlled by Internet Explorer, not Plogger.

    At that point, the full-size image is being viewed directly in the browser, not in a Plogger gallery page.

    The only way that can be turned off for you and/or other gallery viewers is to change the setting in the IE browser.