BuddyDev

Search

Reorganize input profile and Xprofile fields in register.php with Ajax Register

  • Participant
    Level: Initiated
    Posts: 2
    Gert on #10813

    Hi Brajesh

    Is it possible to reorganize the standard input fields and XProfile fields in register.php with the Ajax Register plugin?
    Ideally I would like to get:

    First Name Last Name
    Username
    Email account
    Password
    Confirm password

    Checkbox Membertype
    Dropdown list Country

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #10833

    Hi Gert,
    My apologies for the delayed reply.

    I will suggest copying “ajax-register-form.php” from the plugin to your theme and modifying it.

    Please do note that First Name, Last Name are xprofile fields and if you want to put them above the username, you will have to manually add the field ids.

    Rest are just fine. If you have issues( I am guessing you most probably will have issue), please let me know and I can provide a custom copy. Please let me know the field id for Last Name.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    Gert on #11290

    Modifying the php file worked.

    Is there a way to redirect site.com/register to site.com with javascript overlay that shows the register page?

    add_action('init', 'redirect_register_login')
    function redirect_register_login(){
      global $pagenow;
      $action = (isset($_GET['action'])) ? $_GET['action'] : '';
      
      //doesn't work
      
    if( in_array($pagenow, array('wp-login.php', 'wp-admin.php', 'wp-register.php')) && ( ! $action || ( $action && ! in_array($action, array('logout', 'lostpassword', 'rp', 'resetpass'))))) {
        wp_redirect(get_bloginfo('url'));
      }
      
    // is_page('register') also doesn't work
    
    }

    Any ideas? (I realize that if javascript is disabled in the browser users won’t be able to login or register)

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #11315

    Hi Gert,
    It is feasible and we have done it in past.
    For now, I will suggest waiting for 4-7 days as we may have next version that allows it out of the box. We are also including the login/forget password support too.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved