Plugin Directory

Changeset 1040923


Ignore:
Timestamp:
12/09/2014 02:11:37 AM (11 years ago)
Author:
rozx
Message:

guest only capcha

Location:
recaptcha-wp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • recaptcha-wp/trunk/readme.txt

    r1040897 r1040923  
    2828== Frequently Asked Questions ==
    2929
    30 Q: Where can you find settings of thie plugin?
     30Q: Where can I find the settings of thie plugin?
    3131
    3232A: It's under the Settings -> Discussion menu
     
    3434== Screenshots ==
    3535
    36 1. '/assets/screenshot1.png'
     361. /assets/screenshot1.png
    3737
    3838== Changelog ==
     39
     40= 0.23=
     41+Added non-member only recaptcha.
     42
    3943
    4044= 0.2 =
  • recaptcha-wp/trunk/recaptcha-wp.php

    r1040888 r1040923  
    44Description: A wordpress Plugin enable google reCAPTCHA in your wordpress Site.
    55Plugin URI: http://www.heavyskymobile.com
    6 Version: 0.2
     6Version: 0.23
    77Author: rozx
    88Author URI: http://www.heavyskymobile.com
     
    2727function wp_recaptcha_input() {
    2828    //echo '<input name="wp_recaptcha_register" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_register' ), false ) . ' /> Use reCAPTCHA when new user registering. </em><br><br>';
    29     echo '<input name="wp_recaptcha_comment" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_comment' ), false ) . ' /> Use reCAPTCHA when posting comments. </em><br><br>';
     29    echo '<input name="wp_recaptcha_comment" type="checkbox" value="1" ' . checked( 1, get_option( 'wp_recaptcha_comment' ), false ) . ' /> Use reCAPTCHA only for guest. </em><br><br>';
    3030    echo '<em>Site key:  </em><input name="p_site_key" type="text" value=" '. get_option( 'p_site_key' ) . '" size = "50" /> <br><br>';
    3131    echo '<em>Secret key:  </em><input name="p_secret_key" type="text" value=" ' .get_option( 'p_secret_key' ) .'" size = "50"/><br><br>';
     
    4646   
    4747        if (!is_user_logged_in()) {
    48             // config the comment form
     48    // config the comment form
    4949           
    5050             add_filter('comment_form_field_comment','wp_recaptcha_config');
     
    5555        }
    5656       
    57     }
     57    } else {
     58          add_filter('comment_form_field_comment','wp_recaptcha_config');
     59             
     60            // process the comment
     61           
     62            add_filter('preprocess_comment','wp_recaptcha_process');
     63}
    5864   
    5965    /*
Note: See TracChangeset for help on using the changeset viewer.