Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter backstreetprod

    (@backstreetprod)

    well mission acomplished:

    To get a personal message after email sent I did:

    in the contact page add the next DIV ID after shortcode:

    <div id="thankYou" style="display: block;"> THANX </div>

    in the CCS sheet add:

    .wpcf7-form.sent
    {
        display:none;
    }
    
    #thankYou
    {
        font-size: 18px;
        display: none;
    }

    and in the additional confing of Contact Form:

    on_sent_ok: "$('#thankYou').show()"

    all that works for me: can u check in https://www.backstreetprod.com

    Regards!!

    Thread Starter backstreetprod

    (@backstreetprod)

    Well I Found the way to do the first point:

    in /includes/functions.php I add this:

    add_action( 'wpcf7_before_send_mail', 'correo_usuarios' );
    
    function correo_usuarios($cf7) {
       $exportar = "";
       $exportar .= "\n" . $_POST['your-email'] ;
    
     file_put_contents("/infor/cf7.txt", $exportar, FILE_APPEND);
    }

    I have to make the infor root, and every time I get an email the sender′s address records in the file.

    The secont point will have it soon.

    Hi there… I have the same issue. When I upload the main index.php evrything goes perfect, but after a few minutes it′s comes to 0kb. How did you fixed? Thanx!

Viewing 3 replies - 1 through 3 (of 3 total)