WordPress.org

Forums

Contact Form Clean and Simple
[resolved] Disable "Confirm Email Address" (9 posts)

  1. neoh
    Member
    Posted 2 years ago #

    Hi,

    Very good and nice plugin. Thanks for that!

    How to disable "Confirm Email Address" field without breaking plugin?
    I just want the user to type email once.

    Thanks,
    Matthew.

    http://wordpress.org/extend/plugins/clean-and-simple-contact-form-by-meg-nicholas/

  2. megnicholas
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Matthew,

    I'm afraid this is not possible without a lot of changes.
    I may well make 'confirm email' optional in a later release.

    You could possible add some hacks into css by hiding the confirm email input box and then filling it in automatically when the email address is entered using jquery/javascript, that way the form will validate on the server. Just thinking off the top of my head here!

    Sorry I can't be of more help.
    Meg

  3. neoh
    Member
    Posted 2 years ago #

    Hi,

    I resolved the problem.
    In class.cscf_contact.php I changed following lines:
    if ($this->Email != $this->ConfirmEmail) $this->Errors['confirm-email'] = __('Sorry the email addresses do not match.','cleanandsimple');
    to
    $this->Email != $this->ConfirmEmail;
    and
    if (strlen($this->ConfirmEmail) == 0) $this->Errors['confirm-email'] = __('Please confirm your email address.','cleanandsimple');
    to
    if (strlen($this->ConfirmEmail) < 0) $this->Errors['confirm-email'] = __('Please confirm your email address.','cleanandsimple');

    I tested it and it seems to work perfectly. The only problem I have is that every single email I send to my gmail goes straight to spam folder. Do you have resolution for that?

    Thanks,
    Matthew.

  4. megnicholas
    Member
    Plugin Author

    Posted 2 years ago #

    Ummm..

    I'm sure you realise that you will have to make this change every time you update the plugin!

    Re the spam problem, try experimenting with the 'Email Subject :' and use some words that you don't think are spammy.

    Meg

  5. neoh
    Member
    Posted 2 years ago #

    Yes, I realise that. Kind of sucks but that was the fastest method for me...

    I don't think this would help. I tried many other plugins and there is exactly the same problem...

  6. megnicholas
    Member
    Plugin Author

    Posted 2 years ago #

    I use gmail also but don't get the spam problem you are having.
    Are you 'training' gmail by clicking the 'not spam' button?

  7. neoh
    Member
    Posted 2 years ago #

    Yes, I did that however it only worked for single email address.
    For example I used test@abc.com in my form. It was sent to spam solder and I clicked "This is not spam". If I send more messages using contact form and the same address (test@abc.com) it worked. However when I used different email it went to spam again.

    I used WP Mail SMTP plugin (http://wordpress.org/plugins/wp-mail-smtp/) and it seems liek it fixed the issue.

    Thanks.

  8. kingofmycastle
    Member
    Posted 1 year ago #

    Just wanted to say thanks to neoh for the help in turning off the email confirm functionality.

    Love the HTML this plugin produces. I'll take my chances with any upgrades.

  9. kingofmycastle
    Member
    Posted 1 year ago #

    Ah, neoh's code changes didn't quite work for me. My new solution is to alter a couple of line in two files. We hide the input box, then tell the form to compare the same email field.

    1. In /views/contact-form.view.php hide the confirm email address section using comment tags (<!-- ... -->) from line 45 to line 66.

    2. In line 33 of class.cscf_contact.php change

    $this->ConfirmEmail = filter_var($cscf['confirm-email'], FILTER_SANITIZE_EMAIL);

    to

    $this->ConfirmEmail = filter_var($cscf['email'], FILTER_SANITIZE_EMAIL);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form Clean and Simple
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.