No Right Click Images Plugin - Version 2.3

Version Description

  • Added support for longclick and touch interface for android and ipad/iphone.

=

Download this release

Release Info

Developer kpgraham
Plugin Icon wp plugin No Right Click Images Plugin
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

no-right-click-images-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: No Right Click Images Plugin
4
  Plugin URI: http://www.BlogsEye.com/
5
  Description: Uses Javascript to prevent right clicking of images to help keep leaches from copying images
6
- Version: 2.2
7
  Author: Keith P. Graham
8
  Author URI: http://www.BlogsEye.com/
9
 
@@ -90,10 +90,10 @@ function kpg_no_rc_img_control() {
90
  <div style="position:relative;float:right;width:35%;background-color:ivory;border:#333333 medium groove;padding:4px;margin-left:4px;">
91
  <p>This plugin is free and I expect nothing in return. If you would like to support my programming, you can buy my book of short stories.</p>
92
  <p>Some plugin authors ask for a donation. I ask you to spend a very small amount for something that you will enjoy. eBook versions for the Kindle and other book readers start at 99&cent;. The book is much better than you might think, and it has some very good science fiction writers saying some very nice things. <br/>
93
- <a target="_blank" href="http://www.amazon.com/gp/product/1456336584?ie=UTF8&tag=thenewjt30page&linkCode=as2&camp=1789&creative=390957&creativeASIN=1456336584">Error Message Eyes: A Programmer's Guide to the Digital Soul</a></p>
94
  <p>A link on your blog to one of my personal sites would also be appreciated.</p>
95
  <p><a target="_blank" href="http://www.WestNyackHoney.com">West Nyack Honey</a> (I keep bees and sell the honey)<br />
96
- <a target="_blank" href="http://www.cthreepo.com/blog">Wandering Blog </a> (My personal Blog) <br />
97
  <a target="_blank" href="http://www.cthreepo.com">Resources for Science Fiction</a> (Writing Science Fiction) <br />
98
  <a target="_blank" href="http://www.jt30.com">The JT30 Page</a> (Amplified Blues Harmonica) <br />
99
  <a target="_blank" href="http://www.harpamps.com">Harp Amps</a> (Vacuum Tube Amplifiers for Blues) <br />
3
  Plugin Name: No Right Click Images Plugin
4
  Plugin URI: http://www.BlogsEye.com/
5
  Description: Uses Javascript to prevent right clicking of images to help keep leaches from copying images
6
+ Version: 2.3
7
  Author: Keith P. Graham
8
  Author URI: http://www.BlogsEye.com/
9
 
90
  <div style="position:relative;float:right;width:35%;background-color:ivory;border:#333333 medium groove;padding:4px;margin-left:4px;">
91
  <p>This plugin is free and I expect nothing in return. If you would like to support my programming, you can buy my book of short stories.</p>
92
  <p>Some plugin authors ask for a donation. I ask you to spend a very small amount for something that you will enjoy. eBook versions for the Kindle and other book readers start at 99&cent;. The book is much better than you might think, and it has some very good science fiction writers saying some very nice things. <br/>
93
+ <a target="_blank" href="http://www.blogseye.com/buy-the-book/">Error Message Eyes: A Programmer's Guide to the Digital Soul</a></p>
94
  <p>A link on your blog to one of my personal sites would also be appreciated.</p>
95
  <p><a target="_blank" href="http://www.WestNyackHoney.com">West Nyack Honey</a> (I keep bees and sell the honey)<br />
96
+ <a target="_blank" href="http://www.cthreepo.com/blog">Wandering Blog</a> (My personal Blog) <br />
97
  <a target="_blank" href="http://www.cthreepo.com">Resources for Science Fiction</a> (Writing Science Fiction) <br />
98
  <a target="_blank" href="http://www.jt30.com">The JT30 Page</a> (Amplified Blues Harmonica) <br />
99
  <a target="_blank" href="http://www.harpamps.com">Harp Amps</a> (Vacuum Tube Amplifiers for Blues) <br />
no-right-click-images.js CHANGED
@@ -1,6 +1,6 @@
1
  /**************************************************************************
2
  This javascript is used by the no-right-click-images plugin for wordpress.
3
- Version 2.2
4
  Please give credit as no-right-click-images.js by Keith P. Graham
5
  http://www.blogseye.com
6
  **************************************************************************/
@@ -85,7 +85,6 @@ function kpg_nrci_contextAll(event) {
85
  if (ev.preventDefault) {
86
  ev.preventDefault();
87
  }
88
- ev.returnValue=false;
89
  kpg_nrci_replace(targ);
90
  return false;
91
  }
@@ -194,12 +193,19 @@ function kpg_nrci_action(event) {
194
  b[i].oncontextmenu=function(event) { return kpg_nrci_context(event);}
195
  b[i].oncopy=function(event) { return kpg_nrci_context(event);}
196
  b[i].onmousedown=function(event) { return kpg_nrc1_mousedown(event);}
 
 
 
 
 
 
197
  if (kpg_nrci_drag=='Y') b[i].ondragstart=function(event) { return kpg_nrci_dragdrop(event);}
198
  }
199
  } catch (er) {
200
  return false;
201
  }
202
  }
 
203
  if (typeof(kpg_nrci_image) == 'undefined' || kpg_nrci_image=='' || typeof(kpg_nrci_extra) == 'undefined'|| typeof(kpg_nrci_drag) == 'undefined') {
204
  //alert("vars not found: "+kpg_nrci_image+","+kpg_nrci_extra);
205
  } else {
1
  /**************************************************************************
2
  This javascript is used by the no-right-click-images plugin for wordpress.
3
+ Version 2.3
4
  Please give credit as no-right-click-images.js by Keith P. Graham
5
  http://www.blogseye.com
6
  **************************************************************************/
85
  if (ev.preventDefault) {
86
  ev.preventDefault();
87
  }
 
88
  kpg_nrci_replace(targ);
89
  return false;
90
  }
193
  b[i].oncontextmenu=function(event) { return kpg_nrci_context(event);}
194
  b[i].oncopy=function(event) { return kpg_nrci_context(event);}
195
  b[i].onmousedown=function(event) { return kpg_nrc1_mousedown(event);}
196
+ b[i].onlongpress=function(event) { return kpg_nrci_context(event);}
197
+ b[i].ontouchstart = b[i].onclick;
198
+ //b[i].ontouchstart=function(event) { return kpg_nrc1_mousedown(event);}
199
+ b[i].ontouchmove=function(event) { return kpg_nrci_context(event);}
200
+ b[i].ontouchend=function(event) { return kpg_nrci_context(event);}
201
+ b[i].ontouchcancel=function(event) { return kpg_nrci_context(event);}
202
  if (kpg_nrci_drag=='Y') b[i].ondragstart=function(event) { return kpg_nrci_dragdrop(event);}
203
  }
204
  } catch (er) {
205
  return false;
206
  }
207
  }
208
+
209
  if (typeof(kpg_nrci_image) == 'undefined' || kpg_nrci_image=='' || typeof(kpg_nrci_extra) == 'undefined'|| typeof(kpg_nrci_drag) == 'undefined') {
210
  //alert("vars not found: "+kpg_nrci_image+","+kpg_nrci_extra);
211
  } else {
readme.txt CHANGED
@@ -1,10 +1,12 @@
1
  === No Right Click Images Plugin ===
2
  Tags: images, image, right click, stealing
3
- Donate link: http://www.amazon.com/gp/product/1456336584?ie=UTF8&tag=thenewjt30page&linkCode=as2&camp=1789&creative=390957&creativeASIN=1456336584
4
- Requires at least: 2.8
5
  Tested up to: 3.4
6
  Contributors: Keith Graham
7
- Stable tag: 2.2
 
 
8
 
9
  Disables right click context menu on images to help deter leeches from glomming images.
10
 
@@ -46,8 +48,32 @@ It is impossible to keep people from stealing images that appear in web pages, b
46
  = 2.2 =
47
  * Changed the default so that logged in users cannot copy images. Too many people tested the plugin without checking the settings and assumed that the plugin was broken. They did not read the documentation, try the settings, or check the WordPress forums. I am sorry that I had to do this, but people were indicating on the WordPress plugin page that it didn't work.
48
 
 
 
 
 
 
 
 
 
 
 
49
  == Support ==
50
- This plugin is free and I expect nothing in return. Please rate the plugin at http://wordpress.org/extend/plugins/stop-spammer-registrations-plugin/.
51
- If you wish to support my programming, please buy my Science Fiction book. The Kindle version is less thana buck.
52
- <a href="http://www.amazon.com/gp/product/1456336584?ie=UTF8&tag=thenewjt30page&linkCode=as2&camp=1789&creative=390957&creativeASIN=1456336584">Error Message Eyes: A Programmer's Guide to the Digital Soul</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
1
  === No Right Click Images Plugin ===
2
  Tags: images, image, right click, stealing
3
+ Donate link: http://www.blogseye.com/buy-the-book/
4
+ Requires at least: 3.0
5
  Tested up to: 3.4
6
  Contributors: Keith Graham
7
+ Stable tag: 2.3
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Disables right click context menu on images to help deter leeches from glomming images.
12
 
48
  = 2.2 =
49
  * Changed the default so that logged in users cannot copy images. Too many people tested the plugin without checking the settings and assumed that the plugin was broken. They did not read the documentation, try the settings, or check the WordPress forums. I am sorry that I had to do this, but people were indicating on the WordPress plugin page that it didn't work.
50
 
51
+ = 2.3 =
52
+ * Added support for longclick and touch interface for android and ipad/iphone.
53
+
54
+ == Frequently Asked Questions ==
55
+ = I click on an image and the image to open it and then save it =
56
+ When you added the image to WordPress you specified this behavior. When you insert an image you have to specify that you don't want to have a click on the image open the image. If I stopped all links attached to images, half the web pages would not be able to function. It is up to you to protect your images by not opening the image on a click.
57
+ = I have a Slideshow or Gallery and people can right click on the images in the gallery. =
58
+ Special image presentation plugins that use jQuery or other Javascript systems override the behavior of this plugin. When they load they take over and my plugin can't help you. You need to contact the authors of the gallery and ask they they disable the right click event and drag events inside their plugin.
59
+
60
+
61
  == Support ==
62
+ = Rate the Plugin =
63
+ This plugin is free and I expect nothing in return. Please rate the plugin at: http://wordpress.org/extend/plugins/no-right-click-images-plugin/
64
+ = Buy my book =
65
+ If you wish to support my programming, buy my book:
66
+ http://www.blogseye.com/buy-the-book/ : Error Message Eyes: A Programmer's Guide to the Digital Soul
67
+ = Some of my many plugins =
68
+ http://wordpress.org/extend/plugins/permalink-finder/ : Permalink Finder Plugin
69
+
70
+ http://wordpress.org/extend/plugins/open-in-new-window-plugin/ : Open in New Window Plugin
71
+
72
+ http://wordpress.org/extend/plugins/kindle-this/ : Kindle This - publish blog to user's Kindle
73
+
74
+ http://wordpress.org/extend/plugins/stop-spammer-registrations-plugin/ : Stop Spammer Registrations Plugin
75
+
76
+ http://wordpress.org/extend/plugins/collapse-page-and-category-plugin/ : Collapse Page and Category Plugin
77
+
78
+ http://wordpress.org/extend/plugins/custom-post-type-list-widget/ : Custom Post Type List Widget
79