• Home
  • Features
  • Screenshots
  • Installation / Setup
  • Localization
  • FAQ
  • Support
  • ForumPress
  • Guest  

    Welcome Guest, posting in this forum requires registration.

    Pages: 1 [2]
    Topic: Captcha doesn't work?
    jesse
    Member
    Posts: 2

    Reputation: 0
    Re: Captcha doesn't work?
    on: November 15, 2011, 19:18

    Also having this problem. It would be great to have someone at Vast HTML look into this. In the meantime, maybe this will help some folks…


    http://code.google.com/apis/recaptcha/docs/wordpress.html


    jesse
    Member
    Posts: 2

    Reputation: 0
    Re: Captcha doesn't work?
    on: November 15, 2011, 22:14

    Update…I was able to fix the problem myself. Find this code in the file wpf-insert.php:


    if($options['forum_captcha'] == true && !$user_ID){

    if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {

    unset($_SESSION['security_code']);

    }

    else {

    $error = true;

    $msg = __("Security code does not match", "vasthtml");

    }

    }


    and replace with this:


    if($options['forum_captcha'] == true && !$user_ID){

    if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {

    unset($_SESSION['security_code']);

    }

    else {

    $error = true;

    $msg = __("Security code does not match", "vasthtml");

    wp_die($msg);

    }

    }


    wp-dude had it right. now it's working perfectly.


    Pages: 1 [2]
    WP Forum Server by ForumPress | LucidCrew
    Version: 1.7.4; Page loaded in: 0.021 seconds.