Forum Replies Created
- AuthorPosts
patdundee
ParticipantMany thanks
patdundee
ParticipantAh
So I can also change the form ID as well as the element id to work with different forms? For eaxmple I could do this for form 1
function my_upload_path_1($path, $element) { $name = $element->getName(); if ($name == 'iphorm_1_1' || $name == 'iphorm_1_2') { $path = 'some/other/path/'; } return $path; } add_filter('iphorm_upload_path_1', 'my_upload_path_1', 10, 2);
And this for form 3
function my_upload_path_3($path, $element) { $name = $element->getName(); if ($name == 'iphorm_3_5' || $name == 'iphorm_3_5') { $path = 'some/other/path/'; } return $path; } add_filter('iphorm_upload_path_3', 'my_upload_path_3', 10, 2);
Silly question on the add filter you always end in 10,2 what is this for please
Many thanks
Patrick- This reply was modified 9 years, 5 months ago by
patdundee. Reason: changed code
patdundee
ParticipantHi Ally
Many thanks I will do that
P.S. did you see my question about file upload paths
Kind regards
Patrickpatdundee
ParticipantNo worries
I do know that this error is caused by older plug ins or the theme. Try turning one off at a time if that helps.
If the issue is still there then it most likely be will be with the themes functions php.When was the theme last updated?
If it is an old theme then it may not yet be compatible with 4.4 and that will possibly be where the issue lies.
If after turning the plugins off one at a time you still get the problem, try getting in touch with the theme makers as they will most likely be the ones that will need to correct the issue in the functions page.
One of the sites I look after has the latest theme/plug in updates and WP 4.4 with QuForm 1.7.5 if you go to the following url and scroll down to select Cake Enquiry, the form will open up with a multitude of options (Including 3 file attachments and that all works fine from all address’s
what is your form url?
P
patdundee
ParticipantSomething you have probably both done already
Turn off all plugins that are not essential to the page display (Especially social plugins). It would be better if all plugins were turned off except for quform and see if the debug message is the samepatdundee
ParticipantHi Belinda
Just going to try and help q4legend firstNot an expert but having used the plug in for some time I have managed to sort several mail issues out that I have encountered.
Again can you send the same details that i have asked from q4legend and let me know what the debug says
my email address is on the reply to q4legend and i will see what i can find out for you.
Patrick
patdundee
ParticipantCan you email me direct with the following
Site address where the form is
Also(which you possibly already have done) can you enable debug mode (wp-config.php) set debug to true
my email address is admin@palmsecure.bizPatrick
patdundee
ParticipantHow strange. Mine is set the same way and does receive them. If it helps I do not mind comparing settings in case their is a difference
I have also used this plug in for about 3 years
Patrick
patdundee
ParticipantJust a quicl thought. I am wondering if this is similar to an issue I have with those 3 email providers.
The emails that people send, are they also being sent to a hotmail/gmail/yahoo address?
I have 4.4 and latest Quform for my contact form and it all works fine. The emails are not being sent to any of those addresses though they are being sent to my domain name also using SMTP
I am aware of an issue that has errupted agian over the past few months where an email is sent to one of the above named accounts and it is received by them but not always delivered. I raised a ticket with hotmail for this but they do not seem to care. I even provided the mail logs for them to show it had received emails but was not always delivering them to the end user
If the email you are receiving is being sent to either of those 3 address names then have a word with them and raise a ticket.
patdundee
ParticipantFound solution
$myfiles= $form->getValue('iphorm_x_x');
foreach ($myfiles as $file) {
$name=$file['text'];
}
P
patdundee
ParticipantCancel this one I have answered my own question
It comes through as an array
$intrologo = $form->getValue('iphorm_x_xx');
$intrologo1 = $intrologo[0]['text'];
$intrologo2 = $intrologo[1]['text'];
$intrologo3 = $intrologo[2]['text'];
$intrologo4 = $intrologo[3]['text'];
$intrologo5 = $intrologo[4]['text'];
patdundee
ParticipantIgnore the code above I entered the wrong one but still need to know how to retrieve all file names from multiple file upload
patdundee
ParticipantHi Ally
setting global inside the function did not work but doing it this way doesfunction my_pre_display($form) { $wp_session = WP_Session::get_instance(); $form->setValue('iphorm_2_57', $wp_session['sku']); } add_action('iphorm_pre_display_2', 'my_pre_display');
P
- This reply was modified 9 years, 6 months ago by
patdundee.
patdundee
ParticipantHi Ally
It is not filling in the value. I have told the page to print the session to the screen so I can see that the session is live and has a value.
Here is what I have put in the functions php
function my_pre_display($form)
{
$form->setValue('iphorm_2_57', $wp_session['sku']);
}
add_action('iphorm_pre_display_2', 'my_pre_display');
The element 2_57 is also a hidden one
Ppatdundee
ParticipantAs a change to the above (which should make it easier to work out)
I do already catch these variables and they are saved in their own session names, which i prefer as the variables and their values do not show in the url when redirecting.
So all i need to do is find a way to make the value of the hidden fields = the value of the sessions.
input type="hidden" name="iphorm id" value="php session"
Can this be achieved?
Many thanks
P- This reply was modified 9 years, 5 months ago by
- AuthorPosts