Forum Replies Created

Viewing 15 posts - 91 through 105 (of 126 total)
  • Author
    Posts
  • in reply to: Bug found #17804
    patdundee
    Participant

    Many thanks 🙂

    in reply to: Multiple Upload file paths #17800
    patdundee
    Participant

    Ah

    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
    in reply to: Drop down menu multiple select required #17799
    patdundee
    Participant

    Hi Ally

    Many thanks I will do that

    P.S. did you see my question about file upload paths

    Kind regards
    Patrick

    in reply to: Email notification not working for hotmail etc #17797
    patdundee
    Participant

    No 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

    in reply to: Email notification not working for hotmail etc #17792
    patdundee
    Participant

    Something 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 same

    in reply to: Email notification not working for hotmail etc #17791
    patdundee
    Participant

    Hi Belinda
    Just going to try and help q4legend first 🙂

    Not 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

    in reply to: Email notification not working for hotmail etc #17789
    patdundee
    Participant

    Can 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.biz

    Patrick

    in reply to: Email notification not working for hotmail etc #17785
    patdundee
    Participant

    How 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

    in reply to: Email notification not working for hotmail etc #17781
    patdundee
    Participant

    Just 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.

    • This reply was modified 9 years, 5 months ago by patdundee.
    • This reply was modified 9 years, 5 months ago by patdundee.
    in reply to: flash file uploader file names #17778
    patdundee
    Participant

    Found solution 🙂


    $myfiles= $form->getValue('iphorm_x_x');
    foreach ($myfiles as $file) {
    $name=$file['text'];
    }

    P

    in reply to: Multiple file uploads #17773
    patdundee
    Participant

    Cancel 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'];

    in reply to: Multiple file uploads #17772
    patdundee
    Participant

    Ignore the code above I entered the wrong one but still need to know how to retrieve all file names from multiple file upload 🙂

    in reply to: passing variables from one form to another #17679
    patdundee
    Participant

    Hi Ally
    setting global inside the function did not work but doing it this way does

    
    function 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.
    in reply to: passing variables from one form to another #17674
    patdundee
    Participant

    Hi 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
    P

    • This reply was modified 9 years, 6 months ago by patdundee.
    • This reply was modified 9 years, 6 months ago by patdundee.
    • This reply was modified 9 years, 6 months ago by patdundee.
    in reply to: passing variables from one form to another #17654
    patdundee
    Participant

    As 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

Viewing 15 posts - 91 through 105 (of 126 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy