Growmap Anti Spambot Plugin - Version 1.5.1

Version Description

  • updated : set the max_mod value during install if it doesn't exist
  • updated : new readme
Download this release

Release Info

Developer commentluv
Plugin Icon wp plugin Growmap Anti Spambot Plugin
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

Files changed (2) hide show
  1. growmap-anti-spambot-plugin.php +4 -4
  2. readme.txt +14 -3
growmap-anti-spambot-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Growmap Anti Spambot Plugin
4
  Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/
5
  Description: Very simple plugin that adds a client side generated checkbox to the comment form requesting that the user clicks it to prove they are not a spammer. Bots wont see it so their spam comment will be discarded.
6
- Version: 1.5
7
  Author: Andy Bailey
8
  Author URI: http://ComLuv.com
9
  */
@@ -118,7 +118,7 @@ function gasp_get_options(){
118
  $options['secret_key'] = COOKIEHASH.md5(home_url());
119
  update_option('gasp_options',$options);
120
  }
121
- if(version_compare($options['version'],'1.4.3','<')){
122
  $options['refer_check'] = 'yes';
123
  $options['max_mod'] = 3;
124
  }
@@ -208,7 +208,7 @@ function gasp_check_comment($commentdata){
208
  $gasp_check = $options['send_to'];
209
  }
210
  }
211
- if($options['max_mod'] != 'disabled'){
212
  $count = get_comments(array('status'=>'hold','author_email'=>$commentdata['comment_author_email'],'count'=>true));
213
  if($count > $options['max_mod']){
214
  wp_die(__('You already have too many comments in moderation. Please wait until your existing comments have been approved before attempting to leave more comments','ab_gasp'));
@@ -425,7 +425,7 @@ function gasp_add_checkbox(){
425
  echo '<input type="hidden" name="'.$gasp_secret.'" value="'.$gasp_secret.'"/>';
426
  echo '<p id="gasp_p" style="clear:both;"></p>';
427
  echo '<script type="text/javascript">
428
- //v1.4.3
429
  var gasp_p = document.getElementById("gasp_p");
430
  var gasp_cb = document.createElement("input");
431
  var gasp_text = document.createTextNode(" '.$options['checkbox_label'].'");
3
  Plugin Name: Growmap Anti Spambot Plugin
4
  Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/
5
  Description: Very simple plugin that adds a client side generated checkbox to the comment form requesting that the user clicks it to prove they are not a spammer. Bots wont see it so their spam comment will be discarded.
6
+ Version: 1.5.1
7
  Author: Andy Bailey
8
  Author URI: http://ComLuv.com
9
  */
118
  $options['secret_key'] = COOKIEHASH.md5(home_url());
119
  update_option('gasp_options',$options);
120
  }
121
+ if(version_compare($options['version'],'1.5.1','<')){
122
  $options['refer_check'] = 'yes';
123
  $options['max_mod'] = 3;
124
  }
208
  $gasp_check = $options['send_to'];
209
  }
210
  }
211
+ if(isset($options['max_mod']) && $options['max_mod'] != 'disabled'){
212
  $count = get_comments(array('status'=>'hold','author_email'=>$commentdata['comment_author_email'],'count'=>true));
213
  if($count > $options['max_mod']){
214
  wp_die(__('You already have too many comments in moderation. Please wait until your existing comments have been approved before attempting to leave more comments','ab_gasp'));
425
  echo '<input type="hidden" name="'.$gasp_secret.'" value="'.$gasp_secret.'"/>';
426
  echo '<p id="gasp_p" style="clear:both;"></p>';
427
  echo '<script type="text/javascript">
428
+ //v1.5.1
429
  var gasp_p = document.getElementById("gasp_p");
430
  var gasp_cb = document.createElement("input");
431
  var gasp_text = document.createTextNode(" '.$options['checkbox_label'].'");
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:http://comluv.com/about/donate
4
  Tags: comments, anti spam, spam, spambot, gasp
5
  Requires at least: 2.9.2
6
  Tested up to: 3.6
7
- Stable tag: 1.5
8
 
9
  Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox.
10
 
@@ -70,6 +70,12 @@ Sometimes scripts can semi automate spam and they know what the checkbox name is
70
  Change the `checkbox name` value in the settings page to something new (like change the number) so the autmoated systems don't know what the checkbox is called any more
71
  You can also change the secret key value and set the maximum comments in moderation to a lower number.
72
 
 
 
 
 
 
 
73
  == Screenshots ==
74
 
75
  1. settings page
@@ -80,6 +86,11 @@ You can also change the secret key value and set the maximum comments in moderat
80
 
81
  == ChangeLog ==
82
 
 
 
 
 
 
83
  = 1.5 =
84
 
85
  * updated : max_mod is set at 3 by default
@@ -144,9 +155,9 @@ You can also change the secret key value and set the maximum comments in moderat
144
 
145
  == Upgrade Notice ==
146
 
147
- = 1.5 =
148
 
149
- * added - better measures for combatting the new 'learning' bots by using dynamically named hidden fields
150
 
151
  == Configuration ==
152
 
4
  Tags: comments, anti spam, spam, spambot, gasp
5
  Requires at least: 2.9.2
6
  Tested up to: 3.6
7
+ Stable tag: 1.5.1
8
 
9
  Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox.
10
 
70
  Change the `checkbox name` value in the settings page to something new (like change the number) so the autmoated systems don't know what the checkbox is called any more
71
  You can also change the secret key value and set the maximum comments in moderation to a lower number.
72
 
73
+ = everyone is getting the error message =
74
+
75
+ if you have a cache plugin, please clear all caches.
76
+
77
+ also, you can try saving the settings again to reset all the variables
78
+
79
  == Screenshots ==
80
 
81
  1. settings page
86
 
87
  == ChangeLog ==
88
 
89
+ = 1.5.1 =
90
+
91
+ * updated : set the max_mod value during install if it doesn't exist
92
+ * updated : new readme
93
+
94
  = 1.5 =
95
 
96
  * updated : max_mod is set at 3 by default
155
 
156
  == Upgrade Notice ==
157
 
158
+ = 1.5.1 =
159
 
160
+ * fix - some users reporting that all comments were denied. this was due to a setting not being set on install. try saving your settings if this happens to you
161
 
162
  == Configuration ==
163