Why is right click protect enabled when the owner is logged in?

JohnnyNapalmJohnnyNapalm Registered Users Posts: 134 Major grins
edited August 3, 2009 in SmugMug Support
What if I want to save a non-original sized version whilst logged into a protected gallery? This happens all the time, and having to toggle the protection is pretty frustrating. I tried searching to see if this had been discussed before and couldn't find anything. If it hasn't, consider it a feature request. :D

Thanks.

Comments

  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited July 20, 2009
    Hi, try 'owner save' it's on the photobar flyout :D
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 20, 2009
    Andy wrote:
    Hi, try 'owner save' it's on the photobar flyout :D
    Andy, he asked for the ability to save a "non-original" size of the image.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • JohnnyNapalmJohnnyNapalm Registered Users Posts: 134 Major grins
    edited July 20, 2009
    jfriend wrote:
    Andy, he asked for the ability to save a "non-original" size of the image.
    Yup, that's right. I'm not always at a computer with appropriate software to do a proper resize/resample. Either way, it doesn't make much sense to protect my photos from myself; that's the real issue.
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 20, 2009
    Yup, that's right. I'm not always at a computer with appropriate software to do a proper resize/resample. Either way, it doesn't make much sense to protect my photos from myself; that's the real issue.
    The easiest way is to enable the Share button with Easy Sharing, then use CSS so you only see it when you're logged in. Then, you can get the direct URL to any size, load it in the browser (unprotected) and save it.

    This CSS will hide the share button when not logged in:

    .notLoggedIn .shareButton {display:none;}


    You can also just learn how to construct the URL yourself based on the gallery URL:

    If you're looking at this image in this gallery URL in the Smugmug view:

    http://jfriend.smugmug.com/gallery/5608869_vwzCG#344291068_HdnTo

    Then, you can modify it to this image URL:

    http://jfriend.smugmug.com/photos/344291068_HdnTo-L.jpg

    Where you keep the red part from the original gallery URL and add the green part.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • JohnnyNapalmJohnnyNapalm Registered Users Posts: 134 Major grins
    edited July 20, 2009
    jfriend wrote:
    The easiest way is to enable the Share button with Easy Sharing, then use CSS so you only see it when you're logged in. Then, you can get the direct URL to any size, load it in the browser (unprotected) and save it.

    This CSS will hide the share button when not logged in:

    .notLoggedIn .shareButton {display:none;}


    You can also just learn how to construct the URL yourself based on the gallery URL:

    If you're looking at this image in this gallery URL in the Smugmug view:

    http://jfriend.smugmug.com/gallery/5608869_vwzCG#344291068_HdnTo

    Then, you can modify it to this image URL:

    http://jfriend.smugmug.com/photos/344291068_HdnTo-L.jpg

    Where you keep the red part from the original gallery URL and add the green part.
    Thanks John. All valid workarounds! I still feel that this is somewhat of an oversight in terms of Smugmug's implementation of right click protection, however.
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 20, 2009
    Thanks John. All valid workarounds! I still feel that this is somewhat of an oversight in terms of Smugmug's implementation of right click protection, however.
    I understand your point.

    I'm sure it's a bit of a tradeoff. The page has to be structured a bit differently to make right-click protection work and if they didn't implement right-click protection when you were logged in, you might not be seeing your customizations the same way your viewers do which is less than ideal. Also, I'm sure there would be customers complaining that right-click protection wasn't working because they didn't realize it only works when not logged in.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • shmoojshmooj Registered Users Posts: 19 Big grins
    edited August 3, 2009
    jfriend wrote:
    The easiest way is to enable the Share button with Easy Sharing, then use CSS so you only see it when you're logged in. Then, you can get the direct URL to any size, load it in the browser (unprotected) and save it.

    This CSS will hide the share button when not logged in:

    .notLoggedIn .shareButton {display:none;}


    You can also just learn how to construct the URL yourself based on the gallery URL:

    If you're looking at this image in this gallery URL in the Smugmug view:

    http://jfriend.smugmug.com/gallery/5608869_vwzCG#344291068_HdnTo

    Then, you can modify it to this image URL:

    http://jfriend.smugmug.com/photos/344291068_HdnTo-L.jpg

    Where you keep the red part from the original gallery URL and add the green part.

    I'm sorry... that's the "easiest" way? Clearly this needs a rethink.

    It makes much more sense to enable right click for the owner than to be concerned about the few owners who wonder why right click doesn't work when in fact it does work but not for them.

    All that would need would be a simple line added to the explanation ? next to the "Protected" toggle on the customize gallery panel. Here, I'll even write it for you for free:

    If you're logged in as owner, you'll still be able to right click your own pictures.

    Adding that to the help dialogue shouldn't be too hard now should it ne_nau.gif
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 3, 2009
    shmooj wrote:
    I'm sorry... that's the "easiest" way? Clearly this needs a rethink.

    It makes much more sense to enable right click for the owner than to be concerned about the few owners who wonder why right click doesn't work when in fact it does work but not for them.

    All that would need would be a simple line added to the explanation ? next to the "Protected" toggle on the customize gallery panel. Here, I'll even write it for you for free:

    If you're logged in as owner, you'll still be able to right click your own pictures.

    Adding that to the help dialogue shouldn't be too hard now should it ne_nau.gif
    Turn easy sharing on and add this line to your CSS is the easy way:

    .notLoggedIn .shareButton {display:none;}

    If you want to solve your problem, this works perfectly fine. You then have a whole screen full of URLs to all the different sizes Smugmug makes for any image.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • afarberafarber Registered Users Posts: 267 Major grins
    edited August 3, 2009
    jfriend wrote:
    Turn easy sharing on and add this line to your CSS is the easy way:

    .notLoggedIn .shareButton {display:none;}

    If you want to solve your problem, this works perfectly fine. You then have a whole screen full of URLs to all the different sizes Smugmug makes for any image.
    Is there any way to only turn off the share button for galleries which have right-click disabled turned on?

    To clarify, I have two main types of galleries:

    1. Completely unprotected, printable, right-clickable family and friend galleries

    2. Protected, non-printable, right-click protected photography galleries

    I would love to leave the share option available whenever I am logged in no matter which gallery, but hidden only for the photography type galleries when someone else views.

    Is that doable with a tweak to the CSS above?

    Thanks,
    Adam
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited August 3, 2009
    shmooj wrote:
    It makes much more sense to enable right click for the owner than to be concerned about the few owners who wonder why right click doesn't work when in fact it does work but not for them.

    We'd get gobs of emails - will you help answer them :D ?
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 3, 2009
    afarber wrote:
    Is there any way to only turn off the share button for galleries which have right-click disabled turned on?

    To clarify, I have two main types of galleries:

    1. Completely unprotected, printable, right-clickable family and friend galleries

    2. Protected, non-printable, right-click protected photography galleries

    I would love to leave the share option available whenever I am logged in no matter which gallery, but hidden only for the photography type galleries when someone else views.

    Is that doable with a tweak to the CSS above?

    Thanks,
    Adam
    I'm not aware of any global way to do this using CSS based on whether right-click protection is on or off. That, I think it would take a custom piece of javascript to examine the gallery to see if right-click-protection was on and then show the Share button even when logged out.

    If your galleries are arranged appropriately via category, you can use CSS to hide/show things by category or subcategory.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • JohnnyNapalmJohnnyNapalm Registered Users Posts: 134 Major grins
    edited August 3, 2009
    Andy wrote:
    We'd get gobs of emails - will you help answer them :D ?
    If it made my life magnitudes easier as this fix would, then yes rolleyes1.gif
  • afarberafarber Registered Users Posts: 267 Major grins
    edited August 3, 2009
    I could probably do it by category. What would be the CSS syntax for that? Using, for example this category: http://www.adamfarber.com/All%20Photos/194796

    Thanks!


    jfriend wrote:
    I'm not aware of any global way to do this using CSS based on whether right-click protection is on or off. That, I think it would take a custom piece of javascript to examine the gallery to see if right-click-protection was on and then show the Share button even when logged out.

    If your galleries are arranged appropriately via category, you can use CSS to hide/show things by category or subcategory.
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited August 3, 2009
    What if I want to save a non-original sized version whilst logged into a protected gallery? This happens all the time, and having to toggle the protection is pretty frustrating.
    You know, I've ran across this for years, but never thought about it too much until you mentioned it.

    Having right-click automatically disable for owners would be nice. Anyone know how to do this through a javascript? Since there's a '.notloggedin' variable/method/whatever, so I'm sure there's got to be a way to use this to serve the purpose. Anyone want to give a stab at it?
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 3, 2009
    SamirD wrote:
    You know, I've ran across this for years, but never thought about it too much until you mentioned it.

    Having right-click automatically disable for owners would be nice. Anyone know how to do this through a javascript? Since there's a '.notloggedin' variable/method/whatever, so I'm sure there's got to be a way to use this to serve the purpose. Anyone want to give a stab at it?
    I don't know how practical this is via javascript. I might take a look sometime in the next few days.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited August 3, 2009
    jfriend wrote:
    I don't know how practical this is via javascript. I might take a look sometime in the next few days.
    if (YD.hasClass(document.body,"loggedIn")) {
      document.oncontextmenu = null;
    }
    
    David Parry
    SmugMug API Developer
    My Photos
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 3, 2009
    devbobo wrote:
    if (YD.hasClass(document.body,"loggedIn")) {
      document.oncontextmenu = null;
    }
    
    All that does is defeat the popup. It doesn't let you right click and get the actual image which is what people want here. To do that, presumably one has to get the image out of the background and into a normal image tag and get rid of the transparent gif.

    The actual code to move the image from background to img tag doesn't look hard - I just didn't want to promise it until I'd actually written it and seen it work and it's got to be made to work in different views, etc...
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited August 3, 2009
    jfriend wrote:
    All that does is defeat the popup. It doesn't let you right click and get the actual image which is what people want here. To do that, presumably one has to get the image out of the background and into a normal image tag and get rid of the transparent gif.

    The actual code to move the image from background to img tag doesn't look hard - I just didn't want to promise it until I'd actually written it and seen it work and it's got to be made to work in different views, etc...
    onPhotoShow.subscribe(function() {
      if(YD.hasClass(document.body,"loggedIn") && YD.hasClass(document.body,"smugmug_ajax")) {
        var target = YD.get('mainImage');
    
        if (target == null) {
          return;
        }
    
        var re = /url\((.+)\)/;
        if(/spacer\.gif/.test(target.src) && re.test(target.style.backgroundImage)) {
          re.exec(target.style.backgroundImage);
          target.src = RegExp.$1;
        }
      }
    })
    

    note: this code for smugmug ajax only.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.