Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1271109
    thecashbag
    Participant

    I have a login form inside a ConvertPlug modal.

    The login form has AJAX error messages that appear if the user inputs the wrong password, username, etc.

    But when a user clicks on the submit button it closes the modal and refreshes the page – so users never get to see the error messages.

    This is happening because ConvertPlug is taking over the submit event, thus making the AJAX mode broken.

    Do you know how I can fix that? Maybe stop the ConvertPlug submit event?

    See a live example of the login modal here: http://wordpress-15765-63246-180943.cloudwaysapps.com/2016/11/25/test-post-for-profilepress/

    #1271193
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Hmm, how about a blank ConvertPlug template and add your custom content? ConvertPlug isn’t designed for that, it will try to submit the form inside it, no matter what fields you added. While with the blank template, it will expect that there is no form within it, and there you can add your login code.

    Thanks!

    #1271241
    thecashbag
    Participant

    Hi Rad, the modal was already built with a blank template, with my custom login form added via a shortcode.

    #1271245
    thecashbag
    Participant
    This reply has been marked as private.
    #1271267
    Rad
    Moderator

    Hi there,

    The problem is that your form is not actually related to ajax. I created a sample here http://wordpress-15765-63246-180943.cloudwaysapps.com/sample-login/

    It submits the form and reload the page instead of posting it through AJAX

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1271109 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>