• 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

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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

    Thread Starter gbengston

    (@gbengston)

    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

    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>

    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? https://www.peixinchando.com.br/oferta/15#comments

    Best regards

    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>

    Cool! It worked.

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

    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!

    Pinkiewashere

    (@pinkiewashere)

    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Theme My Login] Login and Registration Form on same page?’ is closed to new replies.