Anti-spam - Version 2.2

Version Description

  • 2014-08-03 =
  • clear value of the empty input because some themes are adding some value for all inputs
  • updated FAQ section
Download this release

Release Info

Developer webvitaly
Plugin Icon 128x128 Anti-spam
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

Files changed (3) hide show
  1. anti-spam.php +6 -6
  2. js/anti-spam.js +2 -1
  3. readme.txt +14 -2
anti-spam.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
- Version: 2.1
7
  Author: webvitaly
8
  Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv3
@@ -15,7 +15,7 @@ $antispam_allow_trackbacks = false; // if true, than trackbacks will be allowed
15
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
16
  // more about the difference between trackback and pingback - http://web-profile.com.ua/web/trackback-vs-pingback/
17
 
18
- $antispam_version = '2.1';
19
 
20
 
21
  if ( ! function_exists( 'antispam_scripts_styles_init' ) ) :
@@ -35,14 +35,14 @@ if ( ! function_exists( 'antispam_form_part' ) ) :
35
  if ( ! is_user_logged_in() ) { // add anti-spam fields only for not logged in users
36
  $antispam_form_part = '
37
  <p class="comment-form-ant-spm" style="clear:both;">
38
- <strong>Current <span style="display:none;">day</span> <span style="display:none;">month</span> <span style="display:inline;">ye@r</span></strong> <span class="required">*</span>
39
  <input type="hidden" name="ant-spm-a" id="ant-spm-a" value="'.date('Y').'" />
40
- <input type="text" name="ant-spm-q" id="ant-spm-q" size="30" value="21" />
41
  </p>
42
- '; // question (hidden with js) [aria-required="true" required="required"]
43
  $antispam_form_part .= '
44
  <p class="comment-form-ant-spm-2" style="display:none;">
45
- <strong>Leave this field empty</strong> <span class="required">*</span>
46
  <input type="text" name="ant-spm-e-email-url" id="ant-spm-e-email-url" size="30" value=""/>
47
  </p>
48
  '; // empty field (hidden with css)
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
+ Version: 2.2
7
  Author: webvitaly
8
  Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv3
15
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
16
  // more about the difference between trackback and pingback - http://web-profile.com.ua/web/trackback-vs-pingback/
17
 
18
+ $antispam_version = '2.2';
19
 
20
 
21
  if ( ! function_exists( 'antispam_scripts_styles_init' ) ) :
35
  if ( ! is_user_logged_in() ) { // add anti-spam fields only for not logged in users
36
  $antispam_form_part = '
37
  <p class="comment-form-ant-spm" style="clear:both;">
38
+ <strong>Current ye@r</strong> <span class="required">*</span>
39
  <input type="hidden" name="ant-spm-a" id="ant-spm-a" value="'.date('Y').'" />
40
+ <input type="text" name="ant-spm-q" id="ant-spm-q" size="30" value="2.2" />
41
  </p>
42
+ '; // question (hidden with js) [required="required"]
43
  $antispam_form_part .= '
44
  <p class="comment-form-ant-spm-2" style="display:none;">
45
+ <strong>Leave this field empty</strong>
46
  <input type="text" name="ant-spm-e-email-url" id="ant-spm-e-email-url" size="30" value=""/>
47
  </p>
48
  '; // empty field (hidden with css)
js/anti-spam.js CHANGED
@@ -9,7 +9,8 @@ wordpress.org/plugins/anti-spam/
9
  function anti_spam_init() {
10
  $('.comment-form-ant-spm, .comment-form-ant-spm-2').hide(); // hide inputs from users
11
  var answer = $('.comment-form-ant-spm input#ant-spm-a').val(); // get answer
12
- $('.comment-form-ant-spm input#ant-spm-q').val( answer ); // set answer into other input instead of user
 
13
 
14
  var current_date = new Date();
15
  var current_year = current_date.getFullYear();
9
  function anti_spam_init() {
10
  $('.comment-form-ant-spm, .comment-form-ant-spm-2').hide(); // hide inputs from users
11
  var answer = $('.comment-form-ant-spm input#ant-spm-a').val(); // get answer
12
+ $('.comment-form-ant-spm input#ant-spm-q').val(answer); // set answer into other input instead of user
13
+ $('.comment-form-ant-spm-2 input#ant-spm-e-email-url').val(''); // clear value of the empty input because some themes are adding some value for all inputs
14
 
15
  var current_date = new Date();
16
  var current_year = current_date.getFullYear();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-profile.com.ua/donate/
4
  Tags: spam, spammer, spammers, comment, comments, antispam, anti-spam, block-spam, spamfree, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
- Stable tag: 2.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -33,9 +33,9 @@ After installing the Anti-spam plugin **try to submit a comment on your site bei
33
  If you get an error - you may check the solution in the [Support section](http://wordpress.org/support/plugin/anti-spam) or submit a new topic with detailed description of your problem.
34
 
35
  = Useful: =
 
36
  * ["Security-protection" - blocks brute-force attacks](http://wordpress.org/plugins/security-protection/ "stops brute-force attacks")
37
  * ["Page-list" - show list of pages with shortcodes](http://wordpress.org/plugins/page-list/ "list of pages with shortcodes")
38
- * ["activetab" - responsive clean theme](http://wordpress.org/themes/activetab "responsive clean and light theme")
39
 
40
  == Installation ==
41
 
@@ -68,6 +68,14 @@ Jetpack Comments use iframe to insert comment form and it is impossible to acces
68
  If you use Jetpack Comments - you should find some other plugin to block spam.
69
  You could try [Akismet](http://wordpress.org/plugins/akismet/), it is compatible with Jetpack Comments.
70
 
 
 
 
 
 
 
 
 
71
  = Does Anti-spam plugin work with ajax comments forms? =
72
 
73
  Some themes, for example [p2](http://wordpress.org/themes/p2), use ajax to submit comment.
@@ -104,6 +112,10 @@ Do not order products from spam. If spam will be less effective than spammers wi
104
 
105
  == Changelog ==
106
 
 
 
 
 
107
  = 2.1 - 2014-02-15 =
108
  * add support for comments forms loaded via ajax
109
 
4
  Tags: spam, spammer, spammers, comment, comments, antispam, anti-spam, block-spam, spamfree, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
+ Stable tag: 2.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
33
  If you get an error - you may check the solution in the [Support section](http://wordpress.org/support/plugin/anti-spam) or submit a new topic with detailed description of your problem.
34
 
35
  = Useful: =
36
+ * [Anti-spam Pro](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitaly "Upgrade to Pro")
37
  * ["Security-protection" - blocks brute-force attacks](http://wordpress.org/plugins/security-protection/ "stops brute-force attacks")
38
  * ["Page-list" - show list of pages with shortcodes](http://wordpress.org/plugins/page-list/ "list of pages with shortcodes")
 
39
 
40
  == Installation ==
41
 
68
  If you use Jetpack Comments - you should find some other plugin to block spam.
69
  You could try [Akismet](http://wordpress.org/plugins/akismet/), it is compatible with Jetpack Comments.
70
 
71
+ = Does Anti-spam plugin block spam from Contact or other forms? =
72
+
73
+ Anti-spam plugin blocks spam only in comments form section and does not block spam from any other forms on site.
74
+
75
+ = Does Anti-spam plugin work with bbPress? =
76
+
77
+ No.
78
+
79
  = Does Anti-spam plugin work with ajax comments forms? =
80
 
81
  Some themes, for example [p2](http://wordpress.org/themes/p2), use ajax to submit comment.
112
 
113
  == Changelog ==
114
 
115
+ = 2.2 - 2014-08-03 =
116
+ * clear value of the empty input because some themes are adding some value for all inputs
117
+ * updated FAQ section
118
+
119
  = 2.1 - 2014-02-15 =
120
  * add support for comments forms loaded via ajax
121