WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Theme My Login] Login and Registration Form on same page? (9 posts)

  1. gbengston
    Member
    Posted 4 years ago #

    Is there a way to have both the login and registration forms on the same page? For example, I'd like the two forms side by side with the login form (ie. returning members fill out this form) on the left and the register form to its right (ie. New Member? Sign up here, etc.).

    It's a great plugin, by the way.

    Thanks,
    Greg

  2. bseidner
    Member
    Posted 4 years ago #

    Hi Greg,
    I do not know if you can get them side by side but you can get them on the same page by using the codes:

    [theme-my-login default_action='register']
    [theme-my-login default_action='login']

    I have this for my blog.
    Bruce

  3. gbengston
    Member
    Posted 4 years ago #

    Hi Bruce,

    Thank you! It looks like it will work. I'll throw each of those shortcodes into left and right floated divs and see what happens. Sorry for taking so long to thank you, I didn't realize anyone replied to my question until just now.

    -Greg

  4. Jeff Farthing
    Member
    Posted 4 years ago #

    Or if you want to do it via the template:

    <div class="floatleft">
    <?php theme_my_login('default_action=login'); ?>
    </div>
    
    <div class="floatright">
    <?php theme_my_login('default_action=register'); ?>
    </div>
  5. erick.keller
    Member
    Posted 3 years ago #

    Hi Jeff,

    It's been 4 months since your last reply on this question so I'm not sure if you changed this code. I'm using the code you supplied above on one page (single), but that doesn't seem to be working. They're both showing the default action as 'login', no matter what. I even tried setting both to register but no luck.

    If you don't mind, could you take a quick look here? http://www.peixinchando.com.br/oferta/15#comments

    Best regards

  6. Jeff Farthing
    Member
    Posted 3 years ago #

    Thank you. You just discovered a bug. At the moment, you have to pass the arguments as an array. So, it should work like this:

    <div class="floatleft">
    <?php theme_my_login( array( 'default_action' => 'login' ) ); ?>
    </div>
    
    <div class="floatright">
    <?php theme_my_login( array( 'default_action' => 'register' ) ); ?>
    </div>
  7. erick.keller
    Member
    Posted 3 years ago #

    Cool! It worked.

    This plugin is awesome! Thank you very much for your support!

  8. base007
    Member
    Posted 3 years ago #

    I have been battling to figure out where exactly in should put this code. What theme file and where in the file? Would appreciate some direction.

    TML is absolutely amazing!

  9. Pinkiewashere
    Member
    Posted 3 years ago #

    Hey Erick or anyone else that can help

    How do I do what you did with the login and registration on same page as you did in your site?

    Please explain like I am an idiot. For instance do I need to upload separate login and registration plugins and then put in the theme my login? And then where do I put the code to make them side by side on the home page.

    Please help someone!!

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic