Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter scalare

    (@scalare)

    Thanks Neil. That is what I thought. The question then is: how do I remove recaptcha v3 from Contact Form 7? I’ve found a lot of posts mentioning how to remove the badge, but not to completely remove the integrated recaptcha functionality.

    Only be completely removing Contact Form 7 and installing it again like Johnny says?

    Thank you!

    Thread Starter scalare

    (@scalare)

    Thank you, I’ll try that.

    Thread Starter scalare

    (@scalare)

    I’m using version 5.7.3.

    To duplicate the events, after I have created the initial one (as private), I go to the list of events, roll over the event title, and then click on the “Duplicate” link that shows below it. That leads to an event edit page, where I get the fields pre-populated. I see now that I can change the “Visibility” option to “Private” before publishing, but shouldn’t the pre-populated visibility option there match the original visibility option for the event (in this case, “private”)?

    Also, what about the custom additional taxonomy terms?

    Thanks a lot.

    Thread Starter scalare

    (@scalare)

    Yes Angelo, that is correct. Aren’t custom taxonomies copied over? If not, that’s fine. I can understand if that is not supported by the plugin. But I’m more concerned about the private events getting copied as published. Let me know about that, please. Thanks a lot!

    Me too! The plugin with all its extensions covers all the functionality we need for a new site. The only thing missing is the possibility of charging for the membership (different values per user role). Can you please let us know how that is coming along?

    Thank you!

    Thread Starter scalare

    (@scalare)

    I forgot to explain that I had to do this because this is an e-card system, and we allow the users to send a card to up to 5 different email addresses, and the content in the email is dynamic, so I needed to be able to generate the email content on the fly, and send a customized email body to each recipient.

    Thread Starter scalare

    (@scalare)

    Hi Takayuki, thank you for getting back to me. I’m sorry that I could not get back to this. There were other projects that required my urgent attention. Here is the whole function (I had to replace the name of the website with “…” because there is a non-disclosure contract in place)

    add_action(‘wpcf7_before_send_mail’, ‘my_wpcf7_before_send_mail’);

    function my_wpcf7_before_send_mail($form) {

    $wpcf7_data->skip_mail = true;
    $submission = WPCF7_Submission::get_instance();
    if ($submission){
    $posted_data = $submission->get_posted_data();
    }
    if ($posted_data[‘send_on’]== date(“m/d/Y”)){
    // Card does not have to be scheduled

    $recipient1=$posted_data[‘recipient1’];
    $recipient2=$posted_data[‘recipient2’];
    $recipient3=$posted_data[‘recipient3’];
    $recipient4=$posted_data[‘recipient4’];
    $recipient5=$posted_data[‘recipient5’];
    $hashfield=$posted_data[‘hashfield’];
    $user_email=$posted_data[‘user_email’];
    $sender_name=stripslashes($posted_data[‘sender_name’]);

    $subject=$sender_name . ” has sent you an e-card.”;

    $mime_boundary = “—-… e-Cards—-“.md5(time());

    $headers = “From: … e-Cards <ecard@….com>\r\n”;
    $headers .= “Reply-To: … e-Cards <ecard@….com>\r\n”;
    $headers .= “MIME-Version: 1.0\r\n”;
    $headers .= “Content-Type: multipart/alternative; boundary=\”$mime_boundary\”\r\n”;

    $email_part1 .=”
    <html>
    <head>
    <meta http-equiv=’content-type’ content=’text/html; charset=windows-1250′>
    <meta name=’generator’ content=’PSPad editor, https://www.pspad.com’&gt;
    <title></title>
    </head>
    <body>

    <div style=’background-color:#3a7f7b;’>
    <!–[if gte mso 9]>
    <v:background xmlns:v=’urn:schemas-microsoft-com:vml’ fill=’t’>
    <v:fill type=’tile’ src='”.get_bloginfo(‘home’).”/wp-content/themes/…/images/email_pattern.jpg’ color=’#3a7f7b’/>
    </v:background>
    <![endif]–>
    <table height=’100%’ width=’100%’ cellpadding=’0′ cellspacing=’0′ border=’0′>
    <tr>
    <td valign=’top’ background='”.get_bloginfo(‘home’).”/wp-content/themes/…/images/email_pattern.jpg’>

    <table width=’600′ cellpadding=’10’ cellspacing=’0′ style=’border:10px solid #FFFFFF;margin-top:50px;’ align=’center’ border=’0′>
    <tr>
    <td>

    <table width=’100%’ cellpadding=’20’ cellspacing=’0′ border=’0′ bgcolor=’#FFFFFF’>
    <tr>
    <td style=’padding:15px;’ align=’center’>
    <img src='”.get_bloginfo(‘home’).”/wp-content/themes/…/images/logo_email.jpg’ alt=’…’/>
    </td>
    </tr><tr>
    <td align=’center’>
    <p><font face=’Times New Roman, Georgia, serif’ size=’4′>“.$sender_name.”</font> <font face=’Arial, Helvetica, Verdana, sans-serif’ size=’3′>(“;

    $email_part2=”)</font> <font face=’Times New Roman, Georgia, serif’ size=’4′> has sent you a … e-card.</font></p>
    </td>
    </tr><tr>
    <td align=’center’>
    <a style=’border:none;’ href='”;

    $email_part3=”‘ target=’_blank’><img src='”.get_bloginfo(‘home’).”/wp-content/themes/…/images/get_…ed.jpg’ alt=” border=’0’/>
    </td>
    </tr><tr>
    <td align=’center’>
    <p><font face=’Times New Roman, Georgia, serif’ size=’4′>You can view your … e-card by clicking \”Get …ed!\” or by <a style=’border:none;’ href='”;

    $email_part4 =”‘ target=’_blank’>clicking here.</font></p>

    <p><font face=’Times New Roman, Georgia, serif’ size=’4′>Check us out at ….com.</font></p>

    </td>
    </tr>
    </table>

    </td>
    </tr>
    </table>

    <table width=’600′ cellspacing=’0′ cellpadding=’10’ border=’0′ align=’center’ style=’border:10px solid #FFFFFF;background:#FFFFFF;margin-bottom:50px;’>
    <tr><td align=’center’>
    <p><font face=’Times New Roman, Georgia, serif’ size=’2′>If you prefer that people not send you … e-cards, please click here</font></p>
    </td></tr></table>

    </td>
    </tr>
    </table>
    </div>

    </body>
    </html> “;

    add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );

    remove_filter( ‘wp_mail_from’, ‘wpse_new_mail_from’ );
    remove_filter(‘wp_mail_from_name’, ‘wpse_new_mail_from_name’);

    // lets start our custom link with the hashed id
    $ecardlink = get_bloginfo(‘home’).”/receive?card=”.$hashfield;
    // we’ll start with recpient 1 but override this later if we need to (i.e. if more than one card is sent)
    $recipientvar = ‘&recipient=1’;
    // and finally we have our final link (we’ll overwrite this for each user
    $ecardlinkfinal = $ecardlink.$recipientvar;

    $message = $email_part1.$user_email.$email_part2.$ecardlinkfinal.$email_part3.$ecardlinkfinal.$email_part4;
    wp_mail($recipient1, $subject , $message, $headers);

    if ($recipient2) {
    $recipientvar = ‘&recipient=2’;
    $ecardlinkfinal = $ecardlink.$recipientvar;
    $message = $email_part1.$user_email.$email_part2.$ecardlinkfinal.$email_part3.$ecardlinkfinal.$email_part4;
    wp_mail($recipient2, $subject , $message, $headers);
    }

    if ($recipient3) {
    $recipientvar = ‘&recipient=3’;
    $ecardlinkfinal = $ecardlink.$recipientvar;
    $message = $email_part1.$user_email.$email_part2.$ecardlinkfinal.$email_part3.$ecardlinkfinal.$email_part4;
    wp_mail($recipient3, $subject , $message, $headers);
    }

    if ($recipient4) {
    $recipientvar = ‘&recipient=4’;
    $ecardlinkfinal = $ecardlink.$recipientvar;
    $message = $email_part1.$user_email.$email_part2.$ecardlinkfinal.$email_part3.$ecardlinkfinal.$email_part4;
    wp_mail($recipient4, $subject , $message, $headers);
    }

    if ($recipient5) {
    $recipientvar = ‘&recipient=5’;
    $ecardlinkfinal = $ecardlink.$recipientvar;
    $message = $email_part1.$user_email.$email_part2.$ecardlinkfinal.$email_part3.$ecardlinkfinal.$email_part4;
    wp_mail($recipient5, $subject, $message, $headers);
    }

    remove_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );
    add_filter( ‘wp_mail_from’, ‘wpse_new_mail_from’ );
    add_filter(‘wp_mail_from_name’, ‘wpse_new_mail_from_name’);

    return(true);
    }
    }

    Thread Starter scalare

    (@scalare)

    I’ve just updated CF7 to version 4.2.1 to see if the upgrade would get this fixed, and I still get the same issue.

    Hello Jeff,

    I’m getting the same error. Hosting at wpengine, and already requested them to exclude ^/resetpass/ from the cache. I’m overriding the resetpass-form.php template, but my copy in my custom theme is updated (made sure the fields have been changed based on your diff here).

    I’ve cleared my cache using wpengine tool (they install a tool in your dashboard to do some maintenance without having to log into the control panel), and also cleared my browser caché. Same result.

    Using version 6.3.12 on WP 4.2.2.

    I’ve gone through the whole thread, and also through others that refer to the same issue. I even have tried refreshing my wp-config keys and salts, and also tried to clear the user_activation_key value for the user I’m resetting the password at the users table.

    Still getting the invalid key error message.

    Would it be possible for you to help us? We need to launch this new site ASAP.

    Thank you in advance.
    Andres

    Thread Starter scalare

    (@scalare)

    It seems the later versions of phpmyadmin display this error when there is no primary key for a table, and the version of phpmyadmin we have in the staging environment is rather old.

    I’ve just created a temporary primary key using submit_time, field_name and form_name as multiple-column key for the table, so phpmyadmin would let me edit the records, and then removed the index again.

    (Just in case this helps someone else)

    Andres

    Thread Starter scalare

    (@scalare)

    Same thing happens if you try to view a post you’re editing at the back-end. When you click the “View Post” link or button, the generated URL of the post does not include the language code in the folder structure, resulting in a 404 page.

    Thank you.

    Hello Till,

    I’ve made another test with the plugin, in a different WordPress installation, and the plugin works correctly there (with WPML as well). So I guess there must be some kind of conflict with one of the plugins we have in place in the installation we’ve been testing with. So far, both installations are local (XAMPP), so I cannot give you access.

    We plan to use your plugin for this, so when we transfer the site to a protected testing environment, if we still have trouble, I will give you a URL to check.

    Thank you very much for your help!
    Andrés

    Hi Till,

    yes, I actually have checked the source code, for both languages. What could be happening? Maybe some kind of issue with the filter priorities when having WPML installed?

    Thanks.

    Hello Till,

    I’m also having trouble with WPML. I contacted them, and they suggested me to contact you and direct you to the same page sankari has listed above. In my case, emails are not getting obfuscated in any of the languages, including the default one (English). I don’t get execution time errors though. Just that the mailto links are not being encoded.

    Will you be able to make this fix?

    Thank you.
    Andrés

    Thread Starter scalare

    (@scalare)

    I’ve figured out. Since the template tag uses the same parameters as wp_tag_cloud(), I called it using format=array&echo=false, and assigned it to an array. Then I just asked for the array length to figure out if it was bigger than 5.

    I hope this helps somebody.

Viewing 15 replies - 1 through 15 (of 18 total)