Version Description
Download this release
Release Info
Developer | cchetanonline |
Plugin | WP-CopyProtect [Protect your blog posts] |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- readme.txt +2 -6
- screenshot-1.gif +0 -0
- wp-copyprotect.php +37 -7
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.thechetan.com/
|
|
4 |
Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO
|
5 |
Requires at least: 2
|
6 |
Tested up to: 2.6.5
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Protect your blog content from being copied. A simple plug-in developed to stop the Copy cats
|
10 |
|
@@ -27,17 +27,13 @@ By [Chetan Gole](http://www.thechetan.com/).
|
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
-
= I've a problem. Where can I get help? =
|
31 |
-
|
32 |
-
Please post your messages to <a href="http://www.thechetan.com/wp-copyprotect">WP-CopyProtect</a> Home page.
|
33 |
-
|
34 |
= Is it wp_2.6.x compatible? =
|
35 |
|
36 |
Of course it is!
|
37 |
|
38 |
= Why Disable content selection is not working ? =
|
39 |
|
40 |
-
Actually your theme doesn't have
|
41 |
|
42 |
== Screenshots ==
|
43 |
1. Configuration page
|
4 |
Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO
|
5 |
Requires at least: 2
|
6 |
Tested up to: 2.6.5
|
7 |
+
Stable tag: 1.5
|
8 |
|
9 |
Protect your blog content from being copied. A simple plug-in developed to stop the Copy cats
|
10 |
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
|
|
|
|
|
|
|
|
30 |
= Is it wp_2.6.x compatible? =
|
31 |
|
32 |
Of course it is!
|
33 |
|
34 |
= Why Disable content selection is not working ? =
|
35 |
|
36 |
+
Actually your theme doesn't have `<?php wp_footer(); ?>` in footer, so please edit the footer of your theme and insert that code. The "disable Content selection" will start working.
|
37 |
|
38 |
== Screenshots ==
|
39 |
1. Configuration page
|
screenshot-1.gif
CHANGED
Binary file
|
wp-copyprotect.php
CHANGED
@@ -113,6 +113,17 @@ disableSelection(document.body) //disable text selection on entire body of page
|
|
113 |
}
|
114 |
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
// Tuning your WP-CopyProtect
|
117 |
function CopyProtect_options_page()
|
118 |
{
|
@@ -120,11 +131,13 @@ function CopyProtect_options_page()
|
|
120 |
update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
|
121 |
update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
|
122 |
update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
|
|
|
123 |
|
124 |
echo '<div class="updated"><p>Commands accepted</p></div>';
|
125 |
}
|
126 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
127 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
|
|
128 |
?>
|
129 |
<div class="wrap">
|
130 |
<h2>WP-CopyProtect Options</h2>
|
@@ -139,7 +152,7 @@ function CopyProtect_options_page()
|
|
139 |
<th width="33%" scope="row">Disable right mouse click:</th>
|
140 |
<td>
|
141 |
<input type="checkbox" id="CopyProtect_nrc" name="CopyProtect_nrc" value="CopyProtect_nrc" <?php if($wp_CopyProtect_nrc == true) { echo('checked="checked"'); } ?> />
|
142 |
-
check to activate (I do not recommand to switch on this option, as below option is sufficient to stop content theft)
|
143 |
<br />
|
144 |
<input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
|
145 |
This warning will be given to right clickers.
|
@@ -149,15 +162,31 @@ function CopyProtect_options_page()
|
|
149 |
<th width="33%" scope="row">Disable text selection:</th>
|
150 |
<td>
|
151 |
<input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
|
152 |
-
check to activate
|
153 |
</td>
|
154 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
</table>
|
156 |
<p class="submit"><input type="submit" name="CopyProtect_save" value="Save" /></p>
|
157 |
-
<h2>
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
</fieldset>
|
162 |
</form>
|
163 |
</div>
|
@@ -171,7 +200,6 @@ function CopyProtect()
|
|
171 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
172 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
173 |
$wp_CopyProtect_nrc_text = get_option('CopyProtect_nrc_text');
|
174 |
-
|
175 |
$pos = strpos(strtolower(getenv("REQUEST_URI")), '?preview=true');
|
176 |
|
177 |
if ($pos === false) {
|
@@ -183,8 +211,10 @@ function CopyProtect()
|
|
183 |
function CopyProtect_footer()
|
184 |
{
|
185 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
|
|
186 |
|
187 |
if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
|
|
|
188 |
}
|
189 |
|
190 |
function CopyProtect_adminmenu()
|
113 |
}
|
114 |
|
115 |
|
116 |
+
// adds button in Footer
|
117 |
+
function CopyProtect_button()
|
118 |
+
{
|
119 |
+
?>
|
120 |
+
|
121 |
+
<a href="http://www.thechetan.com/wp-copyprotect/" target="_blank"><img src="http://cchetanonline.googlepages.com/copy-protect.jpeg" alt="Protected by WP-CopyProtect" border="0" /></a>
|
122 |
+
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
|
126 |
+
|
127 |
// Tuning your WP-CopyProtect
|
128 |
function CopyProtect_options_page()
|
129 |
{
|
131 |
update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
|
132 |
update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
|
133 |
update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
|
134 |
+
update_option('CopyProtect_button',$_POST['CopyProtect_button']);
|
135 |
|
136 |
echo '<div class="updated"><p>Commands accepted</p></div>';
|
137 |
}
|
138 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
139 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
140 |
+
$wp_CopyProtect_button = get_option('CopyProtect_button');
|
141 |
?>
|
142 |
<div class="wrap">
|
143 |
<h2>WP-CopyProtect Options</h2>
|
152 |
<th width="33%" scope="row">Disable right mouse click:</th>
|
153 |
<td>
|
154 |
<input type="checkbox" id="CopyProtect_nrc" name="CopyProtect_nrc" value="CopyProtect_nrc" <?php if($wp_CopyProtect_nrc == true) { echo('checked="checked"'); } ?> />
|
155 |
+
check to activate <br />(I do not recommand to switch on this option, as below option is sufficient to stop content theft)
|
156 |
<br />
|
157 |
<input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
|
158 |
This warning will be given to right clickers.
|
162 |
<th width="33%" scope="row">Disable text selection:</th>
|
163 |
<td>
|
164 |
<input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
|
165 |
+
check to activate.
|
166 |
</td>
|
167 |
</tr>
|
168 |
+
<tr valign="top">
|
169 |
+
<th width="33%" scope="row">Proudly show :</th>
|
170 |
+
<td>
|
171 |
+
<input type="checkbox" id="CopyProtect_button" name="CopyProtect_button" value="CopyProtect_button" checked="checked" <?php if($wp_CopyProtect_button == true) { echo('checked="checked"'); } ?> />
|
172 |
+
check to activate (Proudly show that this page is protected from Copy cats, adds button at Footer)
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
+
|
176 |
</table>
|
177 |
<p class="submit"><input type="submit" name="CopyProtect_save" value="Save" /></p>
|
178 |
+
<h2>Whats next ?</h2>
|
179 |
+
<p>Why don't you <a href="/wp-admin/post-new.php">write a post</a> about <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect</a> ?</p>
|
180 |
+
|
181 |
+
|
182 |
+
<h3>Please note</h3>
|
183 |
+
This is just a basic copy protect plug-in, if someone want to copy your content he/she can go to source of the blog and can easily copy the stuff from there.
|
184 |
+
|
185 |
+
I also recommend you to use <a href="http://www.feedburner.com/">Feedburner</a> for more protection which will protect your feeds. Along with feedburner use <a href="http://www.google.com/support/feedburner/bin/answer.py?answer=78483&topic=13252">Feedsmith</a> plug-in which will redirect all your feed traffic to feedburner only.
|
186 |
+
|
187 |
+
Always select "Summary" at "For each article in a feed, show" in Wordpress admin panel "<a href="wp-admin/options-reading.php">Reading Settings</a>" so that even if someone try to copy your content from feeds he can not copy the whole post.
|
188 |
+
<h3>Thank you</h3>
|
189 |
+
Plug in developed by <a href="http://www.thechetan.com/" target="_blank">Chetan Gole</a>.
|
190 |
</fieldset>
|
191 |
</form>
|
192 |
</div>
|
200 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
201 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
202 |
$wp_CopyProtect_nrc_text = get_option('CopyProtect_nrc_text');
|
|
|
203 |
$pos = strpos(strtolower(getenv("REQUEST_URI")), '?preview=true');
|
204 |
|
205 |
if ($pos === false) {
|
211 |
function CopyProtect_footer()
|
212 |
{
|
213 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
214 |
+
$wp_CopyProtect_button = get_option('CopyProtect_button');
|
215 |
|
216 |
if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
|
217 |
+
if($wp_CopyProtect_button == true) { CopyProtect_button(); }
|
218 |
}
|
219 |
|
220 |
function CopyProtect_adminmenu()
|