synthview
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Accented letters encoding issue for select fieldsI’ve found the pipe technique and it does the job! Thanks
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userI’ve found there is a native way for CF7 to get the wanted result.
Thanks anyway 🙂Forum: Plugins
In reply to: [Contact Form 7] Accented letters encoding issue for select fieldsand there is any way to differentiate between select > option text and value ?
This way I could set a non-accented value to pass to my functions but keep correctly written text for humansForum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP usernow print_r($args); echo $recipient; die; works!
I see it bugs on when I have accented letters in my select options.
I’ve tried to mark them aséArray ( [select-email] => Je souhaite rejoindre votre équipe )
it should be équipe
In CF7 configurator I’ve set
Je souhaite rejoindre votre équipe- This reply was modified 8 years, 4 months ago by synthview.
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userI’ve tried putting the new after or before the class and it crashes.
It worked once (my previous post) but now it works no more 🙁Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userWell, with the classic hook it works now…
I think I didn’t get the good naming of the hook into here[simplehidden dynamic-mail-to-filter "wpcf7-dynamic-recipient-example-filter"]Thanks for your help!! It was very useful to check again things 🙂
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP usermy local server (Mamp) has php 5.5.3, does it matter?
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userif I uncomment I see this
Fatal error: Class 'wpcf7_dynamic_mail_to_examples' not found in /xx/yy/zz/themes/velocita/functions.php on line 163(163 is the line of new wpcf7_etcetc)
the other example didn’t work neither 🙁- This reply was modified 8 years, 4 months ago by synthview.
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userin fact I have the feeling the hook doesn’t fire.If I set a print_r and a die inside, nothing outputs.
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] mail sent to default WP userthis (emails addresses cloaked for this forum. By now I’m just testing for first 3 items of the select, not all)
//not include css and js from ContactForm7 add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' ); // new wpcf7_dynamic_mail_to_examples(); class wpcf7_dynamic_mail_to_examples { // these are the email addresses to be used to for setting the recipient email address in cf7 private $email_address_1 = 'xxxxx.com'; private $email_address_2 = 'yyyyy.com'; private $email_address_3 = 'zzzzz.com'; public function __construct() { add_filter('wpcf7-dynamic-mail-to-example-filter', array($this, 'filter'), 10, 2); } // end public function __construct public function filter($recipient, $args=array()) { if (isset($args['select-email'])) { if ($args['select-email'] == 'Je suis un citoyen') { $recipient = $this->email_address_1; } elseif ($args['select-email'] == 'Je suis un media') { $recipient = $this->email_address_2; } elseif ($args['select-email'] == 'Je suis un investisseur') { $recipient = $this->email_address_3; } } return $recipient; } // end public function filter } // end class wpcf7_dynamic_mail_to_examples- This reply was modified 8 years, 4 months ago by synthview.
Forum: Plugins
In reply to: [Contact Form 7] Additional settings / Dom elementsOk maybe I know! it’s because I’m sending the form in a classic way (no ajax).
Forum: Plugins
In reply to: [Contact Form 7] Additional settings / Dom elementsmaybe it’s because I’ve set
define('WPCF7_LOAD_JS', false);I’ve added
<?php
if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) {
wpcf7_enqueue_scripts();
}
wp_head(); ?>but I see nothing printed in the html of the page. I expected to see a .js file imported, right?
Forum: Plugins
In reply to: [Contact Form 7] Additional settings / Dom elementsI’ve updated to last WP install and all the plugins but no change 🙁
Forum: Plugins
In reply to: [Contact Form 7] Additional settings / Dom elementstried on a local copy of the site with an
alert('a');inside the eventlistener, but nothing happens. Maybe it’s because I’m not on the last WP version?yes I had lowered down it.
I’ve received only the 1st email with the temp ban.
Your IP is NOT in the banned users > Ban hosts list 🙁