LESIMOON
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] No "submit" buttonActually the submit button is here but his background-color is set to white.
Forum: Plugins
In reply to: [Contact Form 7] add action before sending mailI also found some change due to new version, i will add it here just in case someone find this topic.
To add an action before sending the mail, just do this in your function.php file:function cf7_beforesend($cf7) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); $email = $submission->get_posted_data('email-1'); $name = $submission->get_posted_data('nom-1'); } Your_Function_Call($email,$name); }Forum: Plugins
In reply to: [Contact Form 7] add action before sending mailForum: Plugins
In reply to: [Contact Form 7] include php variable in mailYeah was waiting Facet to solve his problem.
Done.Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailAlright, I finally solved my problem :
add_action('wpcf7_before_send_mail','send_pdf'); function send_pdf( $cf7 ) { $submission = WPCF7_Submission::get_instance(); $data = $submission->get_posted_data(); $path = $data['HiddenField']; $submission->add_uploaded_file('pdf', $path); }Thank you @ov3rfly for your help !
Forum: Plugins
In reply to: [Contact Form 7] include php variable in mail@facet :
Take a look at this https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extensionEven if it won’t solve my problem it might solve your
Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailAlright, I tried it, it’s working with a determined file.
But the file I want to send will never be the same. (“$name”.pdf)
$submission->add_uploaded_file('pdf', 'path/to/test.pdf');
I understood (at least I think), ‘pdf’ is the cf7 shortcode for [pdf].
Maybe I can use my [HiddenShortcode] to complete the pdfname in the path, but how?$submission->add_uploaded_file('pdf', 'path/to/'.[HiddenShortcode].'.pdf');
(The above code is obviously wrong, but it’s just to explain a bit more.Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailMy hidden filed was actually a string containing the .pdf url.
Thank you for you help, gonna take a look at those link !Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailIt won’t work for me, because the the .pdf file is deleted of the server after 15 min.
I tried a trick without any success. I added a hidden field with value=”<?php echo”/Path/To/File/”.$name.”.pdf”?>” in CF7 shortcode [FileURL].
I put the shortcode [FileURL] in the mail content and it appear like it should.
But when it doesn’t work when I but it in the File Attachment 🙁Forum: Plugins
In reply to: [Contact Form 7] Input field width 100% of browser widthedit wp-content/themes/everything/data/css/style.min.css
span.wpcf7-form-control-wrap -> width: 100%Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailI will explain a bit more:
I inserted the contact form on a page who generate a .pdf with a custom name ($name.pdf).
I want to attach this generated file in the mail ( the/file/path/$name.pdf)
How can I do it?Forum: Plugins
In reply to: [Contact Form 7] include php variable in mailany idea?