• Hi,

    Beginning of this week I started using this plugin. I use the following code in the header.php file to show the registration form in a popup:

    <?php do_action('register_form'); ?>

    For some reason it is not showing the submit button. All the custom fields are showing correctly.

    Hope someone can help me with this.

    http://wordpress.org/plugins/register-plus-redux/

Viewing 2 replies - 1 through 2 (of 2 total)
  • This took me a while to figure out, it’s pretty silly.

    Reason: do_action(‘register_form’) only shows the form. That’s it. No <form> tags, no <input type=’submit’ />

    Solution:

    <form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="wp-user-form">
    			<?php do_action('register_form'); ?>
    			<input type="submit" name="user-submit" value="<?php _e('Sign up!'); ?>" class="user-submit" tabindex="103" />
    			<?php $register = $_GET['register']; if($register == true) { echo '<p>Check your email for the password!</p>'; } ?>
    			<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?register=true" />
    			<input type="hidden" name="user-cookie" value="1" />
    		</form>

    This is pretty buggy stuff, the register_form is a useless function man. You’re better off building your own damn register page.

    It didn’t even give me the email field. I’ve got the two working nicely together, here’s the finished code that worked for me, seen at actualrewards.com

    <form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="wp-user-form">
    			<input id="user_email" class="input" type="text" value="" name="user_email">
    			<?php do_action('register_form'); ?>
    			<input type="submit" name="user-submit" value="<?php _e('Sign up!'); ?>" class="user-submit" tabindex="103" />
    			<?php $register = $_GET['register']; if($register == true) { echo '<p>Check your email for the password!</p>'; } ?>
    			<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?register=true" />
    			<input type="hidden" name="user-cookie" value="1" />
    		</form>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Register plus redux – Registration form in frontend doesn't show submit button’ is closed to new replies.