Version Description
- Tested on 5.4.1 version of Wordpress.
Download this release
Release Info
Developer | kpgraham |
Plugin | No Right Click Images Plugin |
Version | 3.5 |
Comparing to | |
See all releases |
Code changes from version 3.4 to 3.5
- includes/nrci_options.php +2 -51
- no-right-click-images-plugin.php +3 -3
- readme.txt +8 -5
includes/nrci_options.php
CHANGED
@@ -148,59 +148,10 @@ function kpg_no_rc_img_control_2() {
|
|
148 |
</table>
|
149 |
</fieldset>
|
150 |
</div>
|
151 |
-
<div style="width:220px;float:right;">Powered By <a href="http://www.siteground.com/recommended?referrer_id=6975888" target="_blank">SiteGround.com</a>
|
152 |
-
<?php
|
153 |
-
echo "<h4>Plugin Support Forum</h4>";
|
154 |
-
echo '<ol>';
|
155 |
-
display_feed('https://wordpress.org/support/rss/plugin//no-right-click-images-plugin');
|
156 |
-
echo '</ol>';
|
157 |
-
?>
|
158 |
-
</div>
|
159 |
-
<div style="width:220px;float:right;clear:right">
|
160 |
-
<?php
|
161 |
-
echo "<h4>Posts at BlogsEye.com</h4>";
|
162 |
-
echo '<ol>';
|
163 |
-
display_feed('http://www.blogseye.com/feed.xml');
|
164 |
-
echo '</ol>';
|
165 |
-
?>
|
166 |
</div>
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
function display_feed($url) {
|
172 |
-
// quick and dirty get_rss replacement
|
173 |
-
include_once( ABSPATH . WPINC . '/feed.php' );
|
174 |
-
|
175 |
-
// Get a SimplePie feed object from the specified feed source.
|
176 |
-
$rss = fetch_feed( $url );
|
177 |
-
$maxitems=0;
|
178 |
-
if ( ! is_wp_error( $rss ) ) { // Checks that the object is created correctly
|
179 |
-
|
180 |
-
// Figure out how many total items there are, but limit it to 5.
|
181 |
-
$maxitems = $rss->get_item_quantity( 10 );
|
182 |
-
|
183 |
-
// Build an array of all the items, starting with element 0 (first element).
|
184 |
-
$rss_items = $rss->get_items( 0, $maxitems );
|
185 |
-
|
186 |
-
}
|
187 |
-
?>
|
188 |
-
<ul>
|
189 |
-
<?php if ( $maxitems == 0 ) { ?>
|
190 |
-
<li>
|
191 |
-
<?php _e( 'No items', 'my-text-domain' ); ?>
|
192 |
-
</li>
|
193 |
-
<?php } else { ?>
|
194 |
-
<?php // Loop through each feed item and display each item as a hyperlink. ?>
|
195 |
-
<?php foreach ( $rss_items as $item ) { ?>
|
196 |
-
<li> <a href="%3C?php%20echo%20esc_url(%20$item-%3Eget_permalink()%20);%20?%3E"
|
197 |
-
title="<?php printf( __( "Posted %s", "my-text-domain" ), $item->get_date("j F Y | g:i a") ); ?>"> <?php echo esc_html( $item->get_title() ); ?> </a> </li>
|
198 |
-
<?php } ?>
|
199 |
-
<?php } ?>
|
200 |
-
</ul>
|
201 |
-
<?php
|
202 |
|
203 |
-
}
|
204 |
// end of module
|
205 |
|
206 |
?>
|
148 |
</table>
|
149 |
</fieldset>
|
150 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
</div>
|
152 |
+
<?php
|
153 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
|
|
155 |
// end of module
|
156 |
|
157 |
?>
|
no-right-click-images-plugin.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?PHP
|
2 |
/*
|
3 |
Plugin Name: No Right Click Images Plugin
|
4 |
-
Plugin URI:
|
5 |
Description: Uses Javascript to prevent right clicking of images to help keep leaches from copying images
|
6 |
-
Version: 3.
|
7 |
Author: Keith P. Graham
|
8 |
-
Author URI:
|
9 |
|
10 |
This software is distributed in the hope that it will be useful,
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1 |
<?PHP
|
2 |
/*
|
3 |
Plugin Name: No Right Click Images Plugin
|
4 |
+
Plugin URI: https://www.facebook.com/BlogsEye/
|
5 |
Description: Uses Javascript to prevent right clicking of images to help keep leaches from copying images
|
6 |
+
Version: 3.5
|
7 |
Author: Keith P. Graham
|
8 |
+
Author URI: https://www.facebook.com/BlogsEye/
|
9 |
|
10 |
This software is distributed in the hope that it will be useful,
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== No Right Click Images Plugin ===
|
2 |
Tags: images, image, right click, stealing
|
3 |
-
Donate link:
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 5.
|
6 |
Contributors: Keith Graham
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -25,7 +25,7 @@ Images uploaded via the Wordpress Media uploader will open in a window if clicke
|
|
25 |
|
26 |
Some browsers prevent JavaScript from changing the browser context menu and this plugin will not be effective in those cases. At best, this plugin will prevent right clicking or dragging images on some browsers.
|
27 |
|
28 |
-
The plugin no longer tries to replace images with a dummy image. This method hardly ever worked and broke many web pages. If you want to go back, the 2.5 version
|
29 |
|
30 |
== Installation ==
|
31 |
1. Download the plugin.
|
@@ -34,6 +34,9 @@ The plugin no longer tries to replace images with a dummy image. This method har
|
|
34 |
|
35 |
== Changelog ==
|
36 |
|
|
|
|
|
|
|
37 |
= 3.4 =
|
38 |
* Added right click enable for admins only option.
|
39 |
|
@@ -102,7 +105,7 @@ Special image presentation plugins that use jQuery or other Javascript systems o
|
|
102 |
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/
|
103 |
= Buy my book =
|
104 |
If you wish to support my programming, buy my book:
|
105 |
-
|
106 |
= Other Plugins =
|
107 |
* I am a contributor to https://wordpress.org/plugins/astounding-spam-prevention which is a very powerful anti spam plugin.
|
108 |
* I have also written https://wordpress.org/plugins/open-in-new-window-plugin which forces external links to open in a new window.
|
1 |
=== No Right Click Images Plugin ===
|
2 |
Tags: images, image, right click, stealing
|
3 |
+
Donate link: https://www.facebook.com/BlogsEye/
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.4.1
|
6 |
Contributors: Keith Graham
|
7 |
+
Stable tag: 3.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
25 |
|
26 |
Some browsers prevent JavaScript from changing the browser context menu and this plugin will not be effective in those cases. At best, this plugin will prevent right clicking or dragging images on some browsers.
|
27 |
|
28 |
+
The plugin no longer tries to replace images with a dummy image. This method hardly ever worked and broke many web pages. If you want to go back, the 2.5 version may be available in the WordPress archive.
|
29 |
|
30 |
== Installation ==
|
31 |
1. Download the plugin.
|
34 |
|
35 |
== Changelog ==
|
36 |
|
37 |
+
= 3.5 =
|
38 |
+
* Tested on 5.4.1 version of Wordpress.
|
39 |
+
|
40 |
= 3.4 =
|
41 |
* Added right click enable for admins only option.
|
42 |
|
105 |
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/
|
106 |
= Buy my book =
|
107 |
If you wish to support my programming, buy my book:
|
108 |
+
https://www.facebook.com/BlogsEye/ : Error Message Eyes: A Programmer's Guide to the Digital Soul
|
109 |
= Other Plugins =
|
110 |
* I am a contributor to https://wordpress.org/plugins/astounding-spam-prevention which is a very powerful anti spam plugin.
|
111 |
* I have also written https://wordpress.org/plugins/open-in-new-window-plugin which forces external links to open in a new window.
|