This topic has 5 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #11961
     zoesites
    Participant

    Hi Guys,

    I would like the register modal to register the user, instead of redirecting to the signup form.

    Where is the PHP function that handles the current user registration? Was thinking of changing the code.

    Or is there a better way?

    Tx

    Rob

    #12294
     Abe
    Keymaster

    Hi, That need to be done by some Javascript code that you need to develop. The modal form template can be found here: wp-content\themes\sweetdate\page-parts\general-register-modal.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #12372
     zoesites
    Participant

    Hi Abe,

    Thank you for the reply, I have modified the file and I can redirect via javascript or just pointing the form to a custom php file that handles the submission.

    But I would like to know which current php file / function handles the submission of the main registration form, so that I can simply point the modal to that and then modify it to handle the custom modal form / submission.

    I assume it’s a buddypress file/function, do you know which one it is?

    Tx

    #12566
     Abe
    Keymaster

    The form inside the registration modal already has the good link which normally is yoursite.com/register on your site.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #12696
     zoesites
    Participant

    Yes, I understand this, but this is not what I am asking for.

    I want to know where does yoursite.com/register go to? Which file/function handles this form submission?

    <form action="" name="signup_form" id="signup_form" class="standard-form custom" method="post" enctype="multipart/form-data">

    When using Chrome Inspect Element tool, Network Tab, I see that on submission the page goes to itself, but I can’t find where in the theme files or buddypress plugin files the actual form processing takes place – as I want to modify that code.

    Hope that provides you with clarity regarding my question and what I need to know.

    #12868
     Abe
    Keymaster

    That is handled by Buddypress and it sends the data to the same page as a POST request with form data.
    See an example for registration trough the modal directly:
    http://d.pr/n/s2KO

    We don’t do custom work but that is some code provided to someone and you can start from that

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?