Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • gattdesign the update for 1.11 works fine to have the contact form contact the administrator on wp 2.8.4.

    The version I have is 1.1 and it’s running on wp 2.8.4

    Another difference in what I’m using the form for and what you have set is that I have the contact form pulling the to email from the specific “profile” page of the user to be contacted. I’m not having all the contact forms being sent to the admin like in the code you have for 1.11

    http://www.papercutters.org/author/admin/

    That sets the “from” field according to the programming on line 649

    $gatt_design_recaptcha_email_sender = 'From: ' . $gatt_design_recaptcha_form_name_field . ' <' . $gatt_design_recaptcha_form_email_field . '>';

    The to which is set a couple lines down is your coding is $gatt_design_recapthca_email_receiver.

    That’s the line where the issue was. The $gatt_design_recapthca_email_receiver was being defined, but the variables that were being set were blank.

    On the next site I create with wp I’ll check out the update. I don’t want to mess with the production sites I have running.

    gattdesign – on line 661 of gd-recaptcha, I see the wp_mail statement within an if statement. A couple of lines above that the coding says //construct mail. The e-mail and users name weren’t being pulled in this section. So, I altered the code to pull the required data. I would upgrade to the 1.11 version, but everything is working fine on my system now.

    Thanks for making the update that’s compatible with 2.8.4 though.

    Open up gd-recaptcha.php

    go to line 651, 652 and uncomment them.

    The issue is that $authorname and $authoremail are being called by line 653 $gatt_design_recaptcha_email_receiver = $authorname . ' <' . $authoremail . '>';. With those two lines commented out there’s no name or e-mail to send to.

    Rather than commenting those lines out what I did was make a new get_userdata() below line 652. So, my code looks like this and it works without disrupting anything else.

    $curauth = get_userdata(intval($gatt_design_recaptcha_form_author_field));
    //$authorname = $curauth->'user_nicename';
    //$authoremail = $curauth->'user_email';
    $sendto = get_userdata($authorId);
    $gatt_design_recaptcha_email_receiver =  $sendto->user_nicename . ' <' . $sendto->user_email . '>';
Viewing 5 replies - 1 through 5 (of 5 total)