WP AuthImage Plugin (v2.0.4) written by Keith McDuffee (2004-6-7) http://www.gudlyf.com gudlyf@realistek.com --- CHANGELOG: 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. 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 = ''; 4. 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.') ); 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' file from your WP options. If you are not interested in using the alternate authimage plugin, you can stop here. -- 8. If you're using the 'authimage-alt.php' plugin instead of the default plugin file, copy the 'authimage-alt.php' file into your plugins directory and rename it 'authimage.php'. 9. Edit 'wp-comments.php' and/or 'wp-comments-popup.php' and change the line: