PDA

View Full Version : Right click prevented


daddy0
4th of November 2002 (Mon), 06:27
Hi,

I want people to be able to download my photos (at least some of them). I noticed that right-click gives me only a message box. Where can I change this? I think I have to hack those .php files, but which one...

Could this be a feature I can turn ON or OFF in Misc. settings? Even better would be the possibility to control this for each exhibition/photo individually.

Regards,

Mikko

ps. As we all know (or at least should know) this right-click thing doesn't protect your photos. "If you can see it in your browser, you can save it to you own computer."

Pekka
4th of November 2002 (Mon), 11:43
The right-click thing was really an experiment - I think I'll remove it from release version.

You can remove it from photo.php, it's a 21-line code block starting around line 880, something like this:




(SNIP MORE CODE ................................)

document.onmousedown = nosource;

daddy0
4th of November 2002 (Mon), 14:36
Pekka wrote:
The right-click thing was really an experiment - I think I'll remove it from release version.


Thanks, now it works fine.

I think you should leave for user to enable this option if he/she needs/wants it. Although I find it quite annoying.

Does anybody know why IE suggests .BMP format when I select 'Save picture...' for a .JPG file?

Pekka
4th of November 2002 (Mon), 14:41
daddy0 wrote:
Does anybody know why IE suggests .BMP format when I select 'Save picture...' for a .JPG file?

Only Bill knows.

XP offers BMP and JPG (original format) in dropdown menu on file save dialog.

Greg M
4th of November 2002 (Mon), 17:01
The right click pop-up that doesn't allow the file to be saved is THE main reason that I am going through all this trying to figure out how to use EE. I really like the fact that I can put up printable pictures without allowing people to print them.

If possible, an on/off "switch" for this feature would be ideal. Just my 2 cents.

daddy0
5th of November 2002 (Tue), 06:15
Greg M wrote:
The right click pop-up that doesn't allow the file to be saved is THE main reason that I am going through all this trying to figure out how to use EE. I really like the fact that I can put up printable pictures without allowing people to print them.


I hope you understand that it doesn't protect your pictures. User can always view HTML-source of page and locate the img-tags. Then she/he is free to download and after that do whatever she/he likes with your pictures (maybe not morally and legally).

Preventing right click just makes stealing your pictures little bit slower. It also has quite annoying side-effect: user can't use any those shortcuts in popup-menu, f.g. 'Create shortcut' in IE.

Greg M
5th of November 2002 (Tue), 07:26
Daddy0,
Don't know how to do that quote thing so I can't put your quote up. What you say is true but how many people know how to do that? The pop-up is like a lock, it's there to keep honest people out. I want something that parents can look at pictures I've taken and most of them aren't going to know anything more then trying to right-click. If that doesn't work and they want the picture then they'll have to contact me then.

As far as creating a short cut, all you have to do is cut & paste the URL or drag the little e to the link bar but that also goes back to do they know how to do it.

There are trade offs with everything. For me, I don't mind the trade offs in this case.

iamhives
7th of November 2002 (Thu), 17:17
A slightly different question. How can I avoid letting anyone save/print an image by right clicking ?

blulegend
19th of November 2002 (Tue), 03:14
I made it so it only pops up the alert when you mousedown on the image itself.

Here is how I did it:

On line 900, I commented the onmousedown function:

//document.onmousedown = nosource;


On line 1414, I added the onmousedown function to the end of the img tag:

print " onmousedown="nosource();">";

seanspeng
19th of November 2002 (Tue), 07:28
blulegend wrote:
I made it so it only pops up the alert when you mousedown on the image itself.

Here is how I did it:

On line 900, I commented the onmousedown function:

//document.onmousedown = nosource;


On line 1414, I added the onmousedown function to the end of the img tag:

print " onmousedown="nosource();">";


Hi Jack,

Where exactly did you put
print " onmousedown="nosource();">";[/
?


Thank you!

blulegend
19th of November 2002 (Tue), 15:37
Change:

print ">";

To:

print " onmousedown="nosource();">";

On: Line 1414.

seanspeng
19th of November 2002 (Tue), 21:14
blulegend wrote:
Change:

print ">";

To:

print " onmousedown="nosource();">";

On: Line 1414.


OK, I figured it out. It was not in line 1414 in my file. Thanks!

blulegend
19th of November 2002 (Tue), 21:23
This:

if ($s_photoclick_rule == "3") {
print " usemap="#ee_multiarea"";
}
print ">";
$done = 1;


To:

if ($s_photoclick_rule == "3") {
print " usemap="#ee_multiarea"";
}
print " onmousedown="nosource();">";
$done = 1;

seanspeng
19th of November 2002 (Tue), 21:40
Jack, Thank you so much for your sharing and help! That is an excellent improvement! I love it. I really wish I knew more of programing.