grahamat78
Forum Replies Created
-
Hi
OK I guess that is far as this can go.
It is a shame that the context of the filter (i.e. $notification or at least it’s ID) is not passed in to it.
Regards
Graham
Hi
Thanks for your reply.
As far as I can see the forminator_custom_form_mail_admin_cc_addresses filter is called from within the prepare_headers function. The prepare_headers function is passed the current $notification array which I assume has the identity of the notification that is currently being processed. $notification is not passed to the filter so I am not sure that I can tell which one is currently being processed.
Am I missing something, is there a way tell which one is being processed in the filter?
Thanks
Graham
Hi
Sorry to be a bit of nuisance but I think I also need to identify which notification it is that I am sending otherwise I will update the cc email addresses for all the emails that I am sending related to a single form.
Thanks
Graham
- This reply was modified 2 years, 9 months ago by grahamat78.
Hi
Thanks for that, I have got this code to work and append cc mail addresses to any existing values. But, I would like to have the content to only run on a specific form.
Would I be right to think that $data[‘form_id’] is the right field to access?
<?php add_filter( 'forminator_custom_form_mail_admin_cc_addresses', function( $cc_addresses, $custom_form, $data ) { $a = $data['checkbox-1']; if (strpos ($a, 'value-1') !== false) { $cc_addresses[] = '[email protected]'; } if (strpos ($a, 'value-2') !== false) { $cc_addresses[] = '[email protected]'; } if (strpos ($a, 'value-3') !== false) { $cc_addresses[] = '[email protected]'; } if (strpos ($a, 'value-4') !== false) { $cc_addresses[] = '[email protected]'; } if (strpos ($a, 'value-5') !== false) { $cc_addresses[] = '[email protected]'; } if (strpos ($a, 'value-6') !== false) { $cc_addresses[] = '[email protected]'; } return $cc_addresses; }, 10, 3); ?>
Thanks
Graham
Hi Nithin
Option 1 is a bit messy as it would require me to keep all of the versions of the notification (in my case 6 additional emails). Possible but a bit of a maintenance headache.
Can I use the filter ‘forminator_custom_form_mail_admin_cc_addresses’ (mentioned in front-mail.php) to change the cc email addresses?
If so can you help me by telling me how to access the checkbox values within the form? My check box group has 6 values and each of them when selected needs result in a new emails address being added to cc email.
I hope that you can help,
Thanks
Hi Patrick
Whilst I would agree that the CSS provided by Nebu John works to supress a label it does result in the misalignment of a unlabelled and a labelled field in the same row. It is also to say the least a bit tedious to keep adding the CSS to individual fields.
Is there any chance that you could add the facility to suppress labels in a future release of the plugin?
Regards
Graham
Hi Patrick
In ideal world I would like a tick box on the field dialog to either show or hide the label on the form.
As an alternative is there CSS that I can add to a field in the field dialog to suppress the label for that field? Until you save the field you do not know what Forminator is going to call it. This solution is a bit tedious really but possible and would at least result in identifiable fields for customised emails.
If you do not provide a label for a field try to customise the email is quite difficult as all the fields are just identified as Input, Textarea, Checkbox etc, so it is mot possible to identify the field.
The same is true for the all fields macro.
I hope this is a better explanation.
Regards
Graham
Hi Yoan
If the default is to overlap with the rightmost activity on top then shouldn’t the number of available slots be moved to the left of the boxes to that it is visible?
Just a thought as the number becomes pointless the way that it is displayed on the right at the moment.
Regards
Graham
Forum: Plugins
In reply to: [Booking Activities] AJAX error when I try to replicate an eventHi
I have upgraded the PHP version and it now working.
Sorry to have missed the PHP version requirement.
Thanks
Graham
Forum: Plugins
In reply to: [Booking Activities] AJAX error when I try to replicate an eventHi
I have run the debug and I think that I have found the problem.
“[14-May-2020 09:08:34 UTC] PHP Fatal error: Uncaught Error: Call to undefined function array_key_last() in /homepages/9/d68710155/htdocs/graham/wordpress/wp-content/plugins/booking-activities/functions/functions-templates-forms-control.php:299”
I am running PHP version: 7.2.307.2.30 and the function array_key_last() was defined in PHP version 7.3 I think.
I am unable to upgrade my PHP at the moment as there is an issue at my hosting platform but when I can I will try that and let you know the result
Thanks
Graham
Forum: Plugins
In reply to: [Booking Activities] AJAX error when I try to replicate an eventHi
I tried all of that. Basically the website has no plugins (or at least none that I loaded before I first got the error).
Some screenshots here https://www.dropbox.com/sh/c818uqrau70i9cm/AACvQ_32x6hXBNd3UDJsLvw4a?dl=0
Regards
Graham
Forum: Plugins
In reply to: [Page Lists Plus] The fix for php 5.5?Hi Hanna
I have restored the link.
I hope it works for you.
https://www.anderson-mail.net/assets/page-lists-plus.zip
Regards
Graham
Forum: Plugins
In reply to: [Contact Form 7] V3 reCAPTCHAThanks for the information I have now downgraded to 5.0.5 and reinstalled my v2 keys and hopefully normal service will be resumed.
Forum: Plugins
In reply to: [Contact Form 7] V3 reCAPTCHAI have run a request through myself and I get a value in g-recaptcha-response but when spam comes in the field is blank but the email is still sent.
I do not think that this can be right surely?
Sorry, my apologise I have been a bit distracted by other things and this is only affecting my test version of the site.
I have just updated my test site to v3.0.9 and the calendar can be seen in the bottom right widget on
https://wptest.anderson-mail.net/about-us/
To compare with the display on the previous version (2.0.4) which can be seen on