Changeset 793953
- Timestamp:
- 10/26/2013 07:45:37 AM (12 years ago)
- Location:
- growmap-anti-spambot-plugin
- Files:
-
- 18 added
- 2 edited
-
tags/1.5.4 (added)
-
tags/1.5.4/commentluv-plus-logo.png (added)
-
tags/1.5.4/growmap-anti-spambot-plugin.php (added)
-
tags/1.5.4/index.html (added)
-
tags/1.5.4/index.php (added)
-
tags/1.5.4/languages (added)
-
tags/1.5.4/languages/ab_gasp-es_ES.mo (added)
-
tags/1.5.4/languages/ab_gasp-es_ES.po (added)
-
tags/1.5.4/languages/ab_gasp-fr_FR.mo (added)
-
tags/1.5.4/languages/ab_gasp-fr_FR.po (added)
-
tags/1.5.4/languages/ab_gasp.mo (added)
-
tags/1.5.4/languages/ab_gasp.po (added)
-
tags/1.5.4/languages/index.html (added)
-
tags/1.5.4/languages/index.php (added)
-
tags/1.5.4/readme.txt (added)
-
tags/1.5.4/screenshot-1.jpg (added)
-
tags/1.5.4/screenshot-2.jpg (added)
-
tags/1.5.4/screenshot-3.jpg (added)
-
trunk/growmap-anti-spambot-plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
growmap-anti-spambot-plugin/trunk/growmap-anti-spambot-plugin.php
r781684 r793953 4 4 Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/ 5 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. 36 Version: 1.5.4 7 7 Author: Andy Bailey 8 8 Author URI: http://ComLuv.com … … 39 39 *********************************************/ 40 40 41 /** 42 * strip the links out of the comment text if moderated comment 43 * @param string $commenttext 44 * @return string 45 * since 1.5.4 46 */ 47 function gasp_strip_tags($commenttext){ 48 global $comment; 49 if($comment->comment_approved == '0'){ 50 return strip_tags($commenttext); 51 } 52 return $commenttext; 53 } 54 /** 55 * strip the link off the name if comment is in moderation 56 * @param string $authorlink 57 * @return string 58 */ 59 function gasp_get_comment_author($authorlink){ 60 global $comment; 61 if($comment->comment_approved == '0'){ 62 return get_comment_author(); 63 } 64 return $authorlink; 65 } 41 66 /** gasp_init 42 67 */ 43 68 function gasp_init(){ 44 69 load_plugin_textdomain( 'ab_gasp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 70 if(is_singular()){ 71 // filters for single posts to remove links from moderated comments 72 add_filter('comment_text','gasp_strip_tags',99); 73 add_filter('get_comment_author_link','gasp_get_comment_author',99); 74 } 45 75 } 46 76 /** gasp_admin_init -
growmap-anti-spambot-plugin/trunk/readme.txt
r781684 r793953 4 4 Tags: comments, anti spam, spam, spambot, gasp 5 5 Requires at least: 2.9.2 6 Tested up to: 3. 67 Stable tag: 1.5. 36 Tested up to: 3.7 7 Stable tag: 1.5.4 8 8 9 9 Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox. … … 21 21 22 22 You can set the maximum amount of comments a user can have in the moderation queue to protect you from comment floods (provided you haven't approved any of the spammers comments before) 23 24 *new! - prevent spambots from thinking they got links on your site by removing all links from comments that are waiting for moderation 23 25 24 26 You can get support and see this plugin in action at [Growmap](http://www.growmap.com/growmap-anti-spambot-plugin/ "Growmap Internet Strategist") … … 88 90 89 91 == ChangeLog == 92 93 = 1.5.4 = 94 95 * added : remove all links from a comment if it is in moderation. (prevents autospam bots like scrapebox from thinking they got through with a link) 96 * updated : compatibility with 3.7 90 97 91 98 = 1.5.3 = … … 172 179 == Upgrade Notice == 173 180 174 = 1.5. 2=181 = 1.5.4 = 175 182 176 * fix - set secret key check to no by default and added nocache url and error codes to error messages183 * added - prevent autospam bots from thinking they got through by removing all links from a moderated comment until it is approved 177 184 178 185 == Configuration ==
Note: See TracChangeset
for help on using the changeset viewer.