PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Replacing the default registration form

  1. I'm pretty new to GF. I'm using CF with the Catalyst Theme. I've created a couple of forms for our members to submit images for our meetings. Seems pretty straight forward. THe forms that are generated are really nice.

    Now that the new user registration plug-in is available I figured that I could replace the default WP registration with a form that captures more information. I've download the plug-in, got it activated. I created the form, Registration, then using the user registration option mapped the registration form to the user data. I've created a page and used the forms option to add the form. This is where I seem to get lost.

    At this point is WP suppose to re-map the registration to the new page? If not, how do I get the new registration form to display when someone clicks on the register link in the meta widget?

    Thanks,
    John

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  2. deltajo
    Member

    Same here, John. Not just the Registration link in your sidebar widget, but at COMMENTS too. The Gravity instructions help us along like we are the dummies we actually are (OK I'll speak for myself), but at this point, it's like we suddenly need to know a secret handshake or something!

    Posted 13 years ago on Friday April 29, 2011 | Permalink
  3. The link WordPress uses for registration an be manipulated via a WordPress hook. This is WordPress functionality so you need to change how WordPress works.

    Here is a WordPress.org forum discussion about how to do this:

    http://wordpress.org/support/topic/wp_register-how-do-i-change-the-text-link

    The very last post in that thread has a code sample that should do the trick. You would have to modify it and change the link used for the Register link to the page you have embedded your Gravity Forms registration form.

    You would place this code in your themes functions.php file.

    Posted 13 years ago on Friday April 29, 2011 | Permalink
  4. deltajo
    Member

    yyyeah. I'm not sure how much learning and studying I'm supposed to do before I'm capable of using this information, and I certainly do appreciate your help, but what you said just went right over my head. I've spend all this time trying to work with what you wrote here and I'm lost.

    I do see a functions.php file in my setup. I saw the code you referred me to. I have a Gravity User Registration form and page set up.

    I'm using the Genesis theme package with a child theme for my live web site, but just to ensure I was working on this with something basic, I used a native WP installation which uses the stock "Twenty Ten" theme.

    Posted 13 years ago on Friday April 29, 2011 | Permalink
  5. Carl,

    Yeah, I sort of got the idea. I'm pretty much a noob at the programming aspect, but I'll give it a try.

    I take it that presently we can NOT create a form for editing existing data in the wordpress user file.

    Thanks for the info, also creating an excellent forms generation tool.

    Posted 13 years ago on Friday April 29, 2011 | Permalink
  6. OK, just tried the following code changing 'Your Title Here' to 'Registration':

    add_action( 'register' , 'register_replacement' );
    function register_replacement( $link ){
    if ( ! is_user_logged_in() ) {
    if ( get_option('users_can_register') )
    $link = $before . '' . __('Register') . '' . $after;
    else
    $link = '';
    } else {
    $link = $before . '' . __('Registration') . '' . $after;
    }
    return $link;
    }

    Nothing happens. Apparently I'm missing something. I named both the form and the page 'Registration'. Should I change the name of my form from 'Registration" to 'Register'?

    Thanks,
    John

    Posted 13 years ago on Friday April 29, 2011 | Permalink
  7. You could also use the Redirection plugin for this (or add a line to your .htaccess for it).

    Posted 13 years ago on Saturday April 30, 2011 | Permalink
  8. hardseatsleeper
    Member

    Here is the htaccess I used:

    RewriteCond %{QUERY_STRING} ^action=register$
    RewriteRule ^wp-login\.php$ http://www.mysite.com/mypage? [R=302,L]

    Posted 13 years ago on Monday May 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.