WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] registration page as front page (8 posts)

  1. wpcoderguy
    Member
    Posted 5 months ago #

    Hi,
    how i can create default page as registration page in multi site. we want to two section there one is for existing user and other one for new users

    plz help me i will be thankfull to you all.

    Thanks

  2. Scott (@scottsweb)
    Member
    Posted 5 months ago #

    A plugin like Profile Builder should help you achieve this: http://wordpress.org/plugins/profile-builder/

  3. wpcoderguy
    Member
    Posted 5 months ago #

    Hi,

    Thanks for provide me solution but i tried and its not working please give me some code so i will paste and create login or registration page or any post where i can read and create it.

    Thanks

  4. David Sader
    Member
    Posted 5 months ago #

    Create a custom page template in your active theme's directory. copy/paste code from wp-signup.php. Tweak it.

    Create a new page "signup".

    Apply the custom page template to it.

    Got to site's Reading->Settings and set the front page to static new "signup" page.

    Example: http://pastebin.com/8EfBHA1K

  5. wpcoderguy
    Member
    Posted 5 months ago #

    Hi ,

    thnaks lot for this code its work but i am facing on problem is

    The requested URL /signup/ was not found on this server.

    Plz help me how to over come this problme..

    thanks a lot for this help.

    Thanks

  6. David Sader
    Member
    Posted 5 months ago #

    In the example above, you needed to create a new page named "signup".

    Then your signup page must have a url: http://domain.tld/signup/

    If you create a page with some other url: http://domain.tld/xyzzy/

    ... then you need to tweak the code from the pastebin, replace the action="/signup/" with the action="/xyzzy/"

  7. David Sader
    Member
    Posted 5 months ago #

    If you get that working you'll still need to redirect to your new signup_location with a plugin (/plugins/, or /mu-plugins/, or add to your template's functions.php):

    <?php
    function ds_my_signup_page() {
    	$page = 'http://domain.tld/signup/';
    	return $page;
    }
    add_filter( 'wp_signup_location', 'ds_my_signup_page' );
    
    if( strpos($_SERVER['REQUEST_URI'], 'wp-signup.php'))
    wp_redirect( 'signup/' );
    
    ?>
  8. wpcoderguy
    Member
    Posted 5 months ago #

    Hi thank you very much it will solved.

    thanks

Reply

You must log in to post.

About this Topic