WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] How to disable right click ? (25 posts)

  1. lostfx
    Member
    Posted 6 years ago #

    Hi, guys!

    I installed NextGen Gallery and Lightbox2 and everything is working fine except 2 things.

    1.) How to disable rightclick menu on thumbnails and images (lightbox2) in NextGen Gallery? I do not want people to download the images from my blog.
    2.) If there are Flash objects on my blog, they do not darken when clicking on thumbnail. They are actually positioned above the image / LighBox view. Is there any way to fix that?

    Thank you,

    Lost

  2. Ryan Hellyer
    Member
    Posted 6 years ago #

    I had a similar problem with Flash objects a while ago, here's the solution ... http://pixopoint.com/forum/index.php?topic=58.msg641#msg641

    Stephen Chapman wrote an interesting article on right click scripts a while back ... http://javascript.about.com/library/blnoright.htm

    Disabling right click is incredibly annoying and highly recommend finding an alternative solution.

  3. lostfx
    Member
    Posted 6 years ago #

    Thanks Ryan.

    Thsi solved the problem: <body oncontextmenu="return false;">

    Now I have to find out how to supress that flash object to be in background. What I'm using is that FlashFader plugin. Do I have to put it somewhere in the file within the plugin?

    Thx

  4. own_wordpress
    Member
    Posted 6 years ago #

    Thank you so much ryanhellyer for this Stephen Chapman article - this is exactly what I too want to do.

    But I'm new to word press and I'm not exactly sure where the code goes? Into which php page?

  5. Marcel Brinkkemper
    Member
    Posted 6 years ago #

    I do not want people to download the images from my blog

    That is practically impossible. As soon as the image is being displayed in your browser, the image has been downloaded alredy. By disabling the right click, you only make it a little harder for people to get to the image.

  6. own_wordpress
    Member
    Posted 6 years ago #

    where does the right-click Disable code go? Into which php page?

    Any help greatly appreciated...

  7. jbicha
    Member
    Posted 6 years ago #

    Like macbrink said, it is very easy to download pictures. For instances, there is a handy option in Firefox under "enable javascript" to prevent webdesigners like you from messing with our rightclick context menus. It's not appreciated to mess with our browsers and probably won't work anyway. If you want absolute security for your pictures, don't put them on the Internet.

  8. own_wordpress
    Member
    Posted 6 years ago #

    Yes I know, but how do you do it with this code <body oncontextmenu="return false;">

    Where exaclty does it go within the php page - do I put this in index.php?

  9. whooami
    Member
    Posted 6 years ago #

    if I want your pictures, I can take them, save this stupid hack for a day when you dont have anything else to do.

  10. own_wordpress
    Member
    Posted 6 years ago #

    Yes - But how do you disable it - on a word press blog?

  11. Marcel Brinkkemper
    Member
    Posted 6 years ago #

    well...... if you really want to annoy your readers, change the <body> tag in header.php

    but, before you do, think of this:
    you also block your reader right-click ability to

    • add your site to favorites
    • print your page
    • open a link in another tab
    • refresh the page
  12. own_wordpress
    Member
    Posted 6 years ago #

    Thanks so much macbrink for your reply... I would like to disable the right-click on the NextGen gallery & image postings.

    You say change the <body> tag in header.php - but what do I change it to?

    Thanks again..Hope you & any others out there - can reply a.s.a.p.

  13. Marcel Brinkkemper
    Member
    Posted 6 years ago #

    please read YOUR replies to this thread very carefully. You know the answer already

  14. own_wordpress
    Member
    Posted 6 years ago #

    Oh yes, many thanks Macbrink - I now added the body tag to head and it has worked - Photos "save as" are disabled, upon right click.

    Thanks so much.

  15. Drawer
    Member
    Posted 5 years ago #

    This is hysterical, in a sad way. own_wordpress had to ask 4 times for an answer as to where to put the little line of code. (thanks, macbrink for reminding us it is in the header.php, because I couldn't find it either.)

    And the reason he/she had to keep asking is because everyone who replied hates to be stopped from copying images! Some of us make a living by making the images everyone wants. And steals.

    I just put this in my blog and love it. I like the way there is no java, as the pop-up can be annoying. It's just a quiet, powerful NO! I KNOW there are workarounds for images. But it creates more work for the visitor. Why shouldn't it be difficult to steal images?

    Thank you, ryanhellyer.

    Yes, it also makes it difficult to right click and quote - but the control-copy still works fine if someone needs to quote me.

  16. Boris
    Member
    Posted 5 years ago #

    I think you're hysterical, Drawer :)

    And the reason he/she had to keep asking is because everyone who replied hates to be stopped from copying images!

    Don't you think this is being a little over dramatic?

    If someone really wants to copy your precious images, then they can do so. You just annoy the hell out of all your normal visitors. It's all about usability nowadays, dude! You want your visitors to come back after all. Well, maybe you don't!?

    A better way of dealing with this is to watermark your images with your homepage link. That way you might even get more visitors to your site. And don't put high quality pics online. What's someone going to do with a watermarked 640x480 or even 800x600px image?

  17. Drawer
    Member
    Posted 5 years ago #

    And you just proved my point, travel-junkie! See, I have something, and you want it. You are already mad, because, you say, you know how to take it, so why shouldn't you? BECAUSE IT'S MINE.

    Visitors like you are thieves. "My precious images?" Yes, I call the dollar bills in my pocket precious images. And that annoys you, because we're back to the point that you want to take what isn't yours to take.

    I should add that visitors who are looking for images do NOT become new followers. 98% of them go to that page, or steal the image directly. They do not sign up. They do not favorite, or get rss. They just come to take.

    I agree, I am watermarking everything now. But I don't know how to go back to images already uploaded and watermark them. Is there a plugin that can do that, does anyone know? It sounds impossible to me, but maybe there is a way to go in my database and do it, I don't know.

  18. Boris
    Member
    Posted 5 years ago #

    Just upload the images again with the watermark, dude. Use Photoshop to watermark the lot of em oin one go. Or use NextGEN Gallery and import your images into it. You can add watermarks there.

    I didn't prove your point, mate. I'm not remotely interested in your images. All I was saying is that what you're doing to "protect" your images doesn't work. All I would (if I wanted to, which I don't, believe me) need to do is disable Javascript in my browser. And I said 'might' get you new followers, as you put it (are you running a cult or what?)

    You should really lay off the weed a bit, dude. It's making you all paranoid.

  19. zandercent
    Member
    Posted 5 years ago #

    I think the point is that he wasn't asking for an opinion, he was asking for a solution. If he had asked "do you think I should disable right click" then maybe he would have deserved the tirade.

    As it is he asked, "how do I...". Share your opinions - fine - but at the end of the day it is his site to do with what he wills.

  20. bakerballs
    Member
    Posted 5 years ago #

    SOME OF US need this for legal reasons. I agree annoying but could save my ass?? Needy clients are needy clients. Any image on the web can be copied. duh

  21. SoftDux
    Member
    Posted 5 years ago #

    Disabling the right click has no legal implications. In fact, the moment I browse a website, I already stole that websites images. It's how the internet works, for me to view a website, my computer has to download (aka steal) the images from your precious website and then I have them. I own them, and I can do with them what I like to.

    Guys, it's time you get off your throne on this one. If you don't want others to have your images / photos, then don't put it on the internet. If you have to put it online, then watermark the images, and only put low res images on the net. How many sites do you know that has the right click option disabled? I don't know any, and those that I do know, don't even bother visiting.

    Does anyone of the big micro stock sites do it? NO. In fact, they get more traffic from people who 'steal' their photos and then use it in emails / presentations / CD's / lame websites, etc than most other sites do.

    P.S. I don't care about your images, or your website.

  22. torb
    Member
    Posted 5 years ago #

    Yes, of course you own the picture... as you own a car in a car shop because you want it. No wonder people want to disable right-clicking...

  23. RAULOR
    Member
    Posted 5 years ago #

    Everybody has a point,
    However the best bet is not to publish photos you do not want them to have... :)
    They are in the cache images under "temporary internet files"...and you could get them from there in your browser under: Tools/Internet Options/general/browsing history/settings/view files/

    Even with sites that deal with the porno industry,personal private pic's like in the "lifestyles"...or related content...they are in those folders...also remember "copy screen"...
    A water mark is a good solution, or in a NGG/Slideshow...can not right click...
    Good luck

  24. SoftDux
    Member
    Posted 5 years ago #

    I saw an article a while ago about putting a transparent image on top of the images, and then when someone right clicks, and saves and image, it saves the transparent image to his PC, not the actual photo.

    The question is, how does one get this into WP?

  25. thewhitereport
    Member
    Posted 5 years ago #

    Several solutions:

    To disable right click: <norightclick all="true">

    To disable images only: <norightclick all="images">

    Add to BODY tage to disable right click on whole page: <body oncontextmenu="return false;">

    Change the TAG to disable right click on specific images: <img src="no-more-yourimage.gif" width="250" height="250" oncontextmenu="return false">

    Disable CUT and PASTE: <body ondragstart="return false" onselectstart="return false">

    Disable page printing:

    <style media="print">
    <--

    BODY {
    display:none;
    }

    -->
    </style>

Topic Closed

This topic has been closed to new replies.

About this Topic