View Full Version : Why is right click protect enabled when the owner is logged in?
JohnnyNapalm
Jul-20-2009, 09:16 AM
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.
Andy
Jul-20-2009, 09:59 AM
Hi, try 'owner save' it's on the photobar flyout :D
jfriend
Jul-20-2009, 11:00 AM
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.
JohnnyNapalm
Jul-20-2009, 11:10 AM
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.
jfriend
Jul-20-2009, 11:27 AM
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.
JohnnyNapalm
Jul-20-2009, 11:46 AM
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.
jfriend
Jul-20-2009, 12:10 PM
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.
shmooj
Aug-03-2009, 08:21 AM
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 :dunno
jfriend
Aug-03-2009, 08:30 AM
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 :dunno 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.
afarber
Aug-03-2009, 09:28 AM
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
Andy
Aug-03-2009, 09:32 AM
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 ?
jfriend
Aug-03-2009, 09:38 AM
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,
AdamI'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.
JohnnyNapalm
Aug-03-2009, 10:17 AM
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 :rofl
afarber
Aug-03-2009, 12:38 PM
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!
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.
SamirD
Aug-03-2009, 01:13 PM
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?
jfriend
Aug-03-2009, 04:17 PM
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.
devbobo
Aug-03-2009, 05:04 PM
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;
}
jfriend
Aug-03-2009, 06:16 PM
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...
devbobo
Aug-03-2009, 07:26 PM
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.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.