WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Placing register form in a JS popup box (3 posts)

  1. baj84
    Member
    Posted 1 year ago #

    Hi,

    So, I have a <div id="join-popup"> on each page, so that it can popup when a user clicks the 'Join' button. I am trying to get the register form to be inside the div, but of course I get errors, because the template variables are associated with the parent template.

    My code:
    <div id="join-popup">
    <div id="register-page">
    <div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
    <?php $template->the_action_template_message( 'register'); ?>
    <?php $template->the_errors(); ?>
    <form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register' ); ?>" method="post">
    etc....
    </div>

    Is what I am trying to do possible? If so, what's the best approach?

    Cheers, Ben

    http://wordpress.org/extend/plugins/theme-my-login/

  2. yasirhaleem
    Member
    Posted 1 year ago #

    just call shortcode http://www.jfarthing.com/development/theme-my-login/shortcode/ or in template `<?php theme_my_login( array( 'default_action' => 'register' ) ); ?>

  3. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Exactly what he said. Also, TML 6.3 will come with an AJAX module that uses a lightbox-like window.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.