{"id":1462,"date":"2005-01-11T22:58:05","date_gmt":"2005-01-11T22:58:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/authimage\/"},"modified":"2005-02-10T20:08:32","modified_gmt":"2005-02-10T20:08:32","slug":"authimage","status":"closed","type":"plugin","link":"https:\/\/es.wordpress.org\/plugins\/authimage\/","author":770,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.0","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"AuthImage","header_author":"Keith McDuffee","header_description":"","assets_banners_color":"","last_updated":"2005-02-10 20:08:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.gudlyf.com\/index.php?p=376","header_author_uri":"http:\/\/www.gudlyf.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5403,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.4","2.1","2.1.1","3.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-1462","plugin","type-plugin","status-closed","hentry","plugin_committers-gudlyf"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/authimage.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>written by Keith McDuffee (2004-6-7)\nhttp:\/\/www.gudlyf.com\ngudlyf@realistek.com<\/p>\n\n\n\n<p>CHANGELOG:<\/p>\n\n<p>3.0 -- Much more effective (too much?) captcha generation, thanks to the\n       freely available VeriWord PHP class package\n       (http:\/\/www.phpclasses.org\/browse\/package\/1768.html).  In this release,\n       I've decided to forget about the phoenetic text option.  If you want\n       that option, just continue to use version 2.1.1.\n       Note that quite a bit has changed in this README, so if you want to\n       upgrade, read this document fully.<\/p>\n\n\n\n<p>REQUIREMENTS:<\/p>\n\n<p>This hack assumes the following for your blog.  Anything else is up to\nthe user to hack for their own use.  These are the only reqs that have been\nfully tested up to this point.<\/p>\n\n<ul>\n<li>WordPress (http:\/\/wordpress.org\/) version 1.2 or above (includes 1.5).<\/li>\n<li>Apache 1.3 or above running on Linux.<\/li>\n<li>PHP 4 or above.<\/li>\n<li>GD library (http:\/\/www.boutell.com\/gd\/) and Freetype library\n(http:\/\/www.freetype.org\/) for PHP.  See http:\/\/us2.php.net\/gd for more\ninformation.<\/li>\n<li>Some sort of shell access to your web server.<\/li>\n<\/ul>\n\n<p>You can test your version of PHP for GD and Freetype with the following\ncommands \"from a shell\":<\/p>\n\n<pre><code>php -i | grep \"GD Support\"\n<\/code><\/pre>\n\n<p>should return:<\/p>\n\n<p>GD Support enabled <\/p>\n\n<p>and:<\/p>\n\n<pre><code>php -i | grep \"FreeType Support\"\n<\/code><\/pre>\n\n<p>should return:<\/p>\n\n<p>FreeType Support enabled <\/p>\n\n\n\n<p>INSTALLATION:<\/p>\n\n<p>Following the directions below with the included files should allow you to\nadd authorization image checking for comments posted on your site.  It displays\nan image with a random word from a supplied list that the commenter has to enter in order for\ntheir comment to go through.  This should cut down on any bots out there from\nspamming your comments area and perhaps remove the need for comment moderation.<\/p>\n\n<p>NOTE: It's important to make the indicated changes to BOTH the regular AND the\npopup versions of the comment pages.  If you don't do that, spammers may\nperhaps find a way to target the unedited version of the page.<\/p>\n\n<ol>\n<li><p>Put the file \"authimage.php\" and the directory \"authimage-inc\" in your WP\nplugins directory.  Keep reading past step 7 if you want to use the\nJavaScript form checking.<\/p><\/li>\n<li><p>FOR WORDPRESS VERSIONS &lt; 1.5, look for this in 'wp-comments.php' AND 'wp-comments-popup.php'.  FOR WORDPRESS VERSION 1.5, loog for this in your theme's 'comments.php' and\/or 'comments-popup.php':<\/p><\/li>\n<\/ol>\n\n<p>&lt; ?php _e(&quot;URI\"); ?&gt;<\/p>\n\n<p>and add this after it:<\/p>\n\n<p>\n          &lt;input type=&quot;text&quot; name=&quot;code&quot; id=&quot;code&quot; value=&quot;\" size=\"28\" tabindex=\"4\" \/&gt;\n          \n          &lt;img src=&quot;\" width=\"155\" height=\"50\" alt=\"authimage\" \/&gt;\n<\/p>\n\n<ol>\n<li>FOR WORDPRESS VERSIONS &lt; 1.5: Look for this in 'wp-comments-post.php':<\/li>\n<\/ol>\n\n<p>if (strlen($url) &lt; 7)\n        $url = '';<\/p>\n\n<p>and add this after it:<\/p>\n\n<p>\/\/ authimage -- Check for valid sized code\n$code = trim(strip_tags($_POST['code']));<\/p>\n\n<p>FOR WORDPRESS VERSION 1.5: Look for this in 'wp-comments-post.php':<\/p>\n\n<p>$comment_content      = $_POST['comment'];<\/p>\n\n<p>and add this after it:<\/p>\n\n<p>$comment_code         = $_POST['code'];  \/\/ AuthImage<\/p>\n\n<ol>\n<li><p>FOR WORDPRESS VERSIONS &lt; 1.5: You have two options next, both require editing 'wp-comments-post.php':<\/p>\n\n<p>To allow comments to come into the moderation pool, look for the following\nlines in 'wp-comments-post.php':<\/p><\/li>\n<\/ol>\n\n<p>if(check_comment($author, $email, $url, $comment, $user_ip)) {\n        $approved = 1;\n} else {\n        $approved = 0;\n}<\/p>\n\n<p>and add this afterwards:<\/p>\n\n<p>\/\/ authimage -- Check if valid code.  If not valid, send to moderation.\nif ( !checkAICode($code) )\n        $approved = 0;<\/p>\n\n<p>-or- if you want to dump the comment altogether and warn the commenter\n  that an invalid code was entered, look for the following lines in\n  'wp-comments-post.php':<\/p>\n\n<p>if ( '' == $comment )\n    die( __('Error: please type a comment.') );<\/p>\n\n<p>and add this after it:<\/p>\n\n<p>if ( !checkAICode($code) )\n        die( __('Error: please enter the valid authorization code.') );<\/p>\n\n<p>FOR WORDPRESS VERSION 1.5:<\/p>\n\n<p>Look for the following lines n 'wp-comments-post.php':<\/p>\n\n<p>if ( '' == $comment_content )\n        die( __('Error: please type a comment.') );<\/p>\n\n<p>and add this after it:<\/p>\n\n<p>\/\/ AuthImage\nif ( !checkAICode($comment_code) )\n        die( __('Error: please enter the valid authorization code.') );<\/p>\n\n<ol>\n<li><p>Make sure you've activated the AuthImage plugin.<\/p><\/li>\n<li><p>Make sure your 'my-hacks.php' file contains what is in 'authimage-hacks.php'.\nTHIS IS STILL REQUIRED!<\/p><\/li>\n<li><p>Enable the 'my-hacks.php legacy support' from your WP options.<\/p><\/li>\n<li><p>You can configure lots of how the captcha image appears by editing the\n'authimage-inc\/veriword.ini' file.  Read the PDF documentation at\n'authimage-inc\/manualveriword.pdf' for a list of options.  You can also\nalter the dictionary used to generate words as well as the length of\nthe word generated.<\/p><\/li>\n<\/ol>\n\n<p>--<\/p>\n\n<ol>\n<li>FOR WORDPRESS VERSIONS &lt; 1.5: Edit 'wp-comments.php' AND 'wp-comments-popup.php'\nand change the following line.  FOR WORDPRESS VERSION 1.5, this line is in\n'comments.php' AND 'comments-popup.php' in your theme's directory:<\/li>\n<\/ol>\n\n<p>&lt;<\/p>\n\n<p>form action=\"\/wp-comments-post.php\"\nmethod=\"post\" id=\"commentform\"&gt;<\/p>\n\n<p>to read:<\/p>\n\n<p>&lt;<\/p>\n\n<p>form action=\"\/wp-comments-post.php\"\nmethod=\"post\" id=\"commentform\" onSubmit=\"return testValues(this)\"&gt;<\/p>\n\n<ol>\n<li>If you want to validate the email address, edit the plugin and uncomment\nthe code that checks for email.  That's it!<\/li>\n<\/ol>","raw_excerpt":"written by Keith McDuffee (2004-6-7)\nhttp:\/\/www.gudlyf.com\ngudlyf@realistek.com\n\n\n\nCHANGELOG:\n\n3.0 -- Much more effective (too much?) captcha generati &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1462"}],"author":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gudlyf"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1462"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1462"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1462"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1462"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1462"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}