Support » Plugin: Easy FancyBox » Easy Fancybox with Mailpress form

  • Resolved asisrodriguez

    (@asisrodriguez)


    Hello and thanks for your plugin.
    I use contact form with this code and works perfectly:
    <div style=”background-color: #FFCC99; padding: 10px”>
    Contacto
    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”contact_form_pop”>
    [contact-form-7 id=”57″ title=”Contacto”]
    </div>
    </div>
    </div>
    but now, need to use Mailpress form and, if I use the same code but with [mailpress_form id=’15’] when send the form, the web colapse until a 504 `page appear. so, I understand the code
    <div id=”contact_form_pop”>
    must be wrong for Mailpress form.
    please, do you know what I have to put to work?
    if a put <div id=”mailpress_form_pop”> the popup even not appear.
    thanks in advanced.
    asis

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi, the ID should not matter as long as it corresponds with link target. So if you switch to id=”mailpress_form_pop” then you also need to change the link/button target to href=”#mailpress_form_pop” (with the # sign in front)…

    But in any case, this should not matter for the form submission error.

    Please insert your Mailpress form normally (so forget the hidden div with popup button for a moment) and test the form. Does it work then or do you get the same 504 response?

    thanks, I did but nothing…
    and when do without Easy… in https://www.seguridadprofesionalhoy.com/pruebas-servicio-al-lector/ works perfectly the Mailpress form
    🙁
    It is possible creat a “mailpress_form_pop” in anyway?
    thanks
    asis

    Plugin Author RavanH

    (@ravanh)

    Hi, no idea why it would not be working when inside the light box.

    Could you now test the form in a light box but without making it invisible like this:

    
    <a href="#mailpress_form_pop" class="fancybox-inline">Servicio al Lector</a>
    
    <div id=”mailpress_form_pop”>
    [mailpress_form id=’15’]
    </div>
    

    By the way, I’m not sure if such a form is good for displaying in a light box. The thing is that when a user makes a mistake in the CAPTCHA code or email address, he/she will not see the error message because after page reload, the message will be hidden just the same as the form. Unless they click the button/link again…

    Thanks RavanH,
    nothing… you can see in https://www.seguridadprofesionalhoy.com/pruebas-servicio-al-lector/
    at the begining of the post.
    (and thanks for your reflection about captcha mistake)
    asis

    Plugin Author RavanH

    (@ravanh)

    There are two javascript errors that need to be fixed:

    
    (index):677 Uncaught SyntaxError: Unexpected token ,
    (index):985 Uncaught SyntaxError: Unexpected token ,
    

    Then there is this in your source where the form should be:

    
    <!-- MailPress_form  ERROR : unknown form #’6’ ! -->
    

    Best to use the other short code that is working, not adding another one…

    thanks RavanH, questions:
    1. the javascrit is fault of my server?
    2. the [mailpress_form id=’6’] is working in https://www.seguridadprofesionalhoy.com/pruebas-servicio-al-lector/ so, why not into Easy Fancybox?
    3. It is possible create a “mailpress_form_pop” in anyway to solve?
    thanks
    asis

    please help. It is possible create a “mailpress_form_pop” in anyway to solve?
    thanks
    asis

    Plugin Author RavanH

    (@ravanh)

    Hi you are trying to use TWO shortcodes there on the same page. The second one is working, the first one is not. Please try again but only use ONE shortcode (the one that is working) and delete the first [mailpress_form id=’6’] and then move the </div> to below the second (working) shortcode.

    yeah¡¡¡¡ works, thanks a lot.
    but…
    when send, close the popUp and cannot see the “final message”
    I use
    <div style=”background-color: #FFCC99; padding: 10px”>
    Contacto
    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”contact_form_pop”>
    [mailpress_form id=’6′]
    </div>
    </div>
    </div>
    in https://www.seguridadprofesionalhoy.com/pruebas-servicio-al-lector/
    please, It is possible to do somethng for not to close the PopUp until message
    thanks a lot.
    asis

    Plugin Author RavanH

    (@ravanh)

    HI, the form refreshes the page on submission even when it’s in error. Try it with submitting the form without any data: the page refreshes, then when you open the fancybox again you can read the message…

    The light box cannot remain open on a page refresh, that’s just not possible sorry.

    Is there an option in MailPress that allows Ajax submission (without refresh) ? If so, try that. If not, you could set the light box to automatically open on page load. Give the Contacto link an id=”fancybox-auto” attribute like this:

    
    <a id="fancybox-auto" href="#contact_form_pop" class="fancybox-inline">Contacto</a>
    

    Downside: this will open the light box on each visit, not only after form submission…

    thanks RavanH but is “service for readers” that open only when people wants more info and to be open all time is a bit uncomfortable.
    🙁
    I have not more ideas but thanks very much for your help.
    asis

    Plugin Author RavanH

    (@ravanh)

    Then without option for AJAX form submission, it does not seem suitable for display inside a light box.

    By the way, are you using this one: https://wordpress.org/plugins/mailpress/ ? It does not seem very wise to use a plugin that has been closed for security reasons… At least upgrade to the 6.0 release candidate from http://blog.mailpress.org/ if you have not done that already 🙂

    thanks and yes, I have the last version but has an mistake, ticket in https://groups.google.com/forum/#!topic/mailpress/7DjXc_DMQHw so I still work with version 5. I use since a lot of years and never have a security problem with it.
    thanks very much. I will have to look for another option to open the contact form. Sure not so great at your LightBox.
    asis

    Plugin Author RavanH

    (@ravanh)

    You might try this in a your theme footer.php (make a child theme first!) just before the line with <?php wp_footer(); ?>:

    
    <?php if ( isset( $_POST['mp_[6]'] ) ) { ?>
    <script>
    (function($) {
     $(body).find("a[href='#contact_form_pop']").attr("id","fancybox-auto");
    })(jQuery);
    </script>
    <?php } ?>
    

    thanks RavanH, done but nothing new, please see in https://www.seguridadprofesionalhoy.com/pruebas-servicio-al-lector/
    thanks very very much.
    asis

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Easy Fancybox with Mailpress form’ is closed to new replies.