WP AuthImage Plugin (v2.1) written by Keith McDuffee (2004-6-7) http://www.gudlyf.com gudlyf@realistek.com --- CHANGELOG: 2.1 -- Added support info. in README for Wordpress 1.5. Fixed other typos in README. Merged alt and regular versions -- no need for two. You should now edit the $sess_key_name variable in authimage.php. Read below. 2.0.4 -- Fixed echo typo in this README file Added path for $plugins_dir for those who may not have it defined Added the case insinsitivity stuff to the -alt version of the script Fixed bounds in for loop for CreateAIAltText 2.0.3 -- Fixed some code in the README regarding the

3. FOR WORDPRESS VERSIONS < 1.5: Look for this in 'wp-comments-post.php': if (strlen($url) < 7) $url = ''; and add this after it: // authimage -- Check for valid sized code $code = trim(strip_tags($_POST['code'])); if (strlen($code) < 6) $code = ''; FOR WORDPRESS VERSION 1.5: Look for this in 'wp-comments-post.php': $comment_content = $_POST['comment']; and add this after it: $comment_code = $_POST['code']; // AuthImage 4. FOR WORDPRESS VERSIONS < 1.5: You have two options next, both require editing 'wp-comments-post.php': To allow comments to come into the moderation pool, look for the following lines in 'wp-comments-post.php': if(check_comment($author, $email, $url, $comment, $user_ip)) { $approved = 1; } else { $approved = 0; } and add this afterwards: // authimage -- Check if valid code. If not valid, send to moderation. if ( !checkAICode($code) ) $approved = 0; -or- if you want to dump the comment altogether and warn the commenter that an invalid code was entered, look for the following lines in 'wp-comments-post.php': if ( '' == $comment ) die( __('Error: please type a comment.') ); and add this after it: if ( !checkAICode($code) ) die( __('Error: please enter the valid authorization code.') ); FOR WORDPRESS VERSION 1.5: Look for the following lines n 'wp-comments-post.php': if ( '' == $comment_content ) die( __('Error: please type a comment.') ); and add this after it: // AuthImage if ( !checkAICode($comment_code) ) die( __('Error: please enter the valid authorization code.') ); 5. Make sure you've activated the AuthImage plugin. 6. Make sure your 'my-hacks.php' file contains what is in 'authimage-hacks.php'. THIS IS STILL REQUIRED! 7. Enable the 'my-hacks.php legacy support' from your WP options. If you are not interested in using the JavaScript form checking, you can stop here. -- 8. FOR WORDPRESS VERSIONS < 1.5: Edit 'wp-comments.php' AND 'wp-comments-popup.php' and change the following line. FOR WORDPRESS VERSION 1.5, this line is in 'comments.php' AND 'comments-popup.php' in your theme's directory:
to read: 9. If you want to validate the email address, edit the plugin and uncomment the code that checks for email. That's it!