WordPress.org

Ready to get started?Download WordPress

Forums

Tabbed Login Widget
[resolved] Remove Registration Tab (6 posts)

  1. Xeo01
    Member
    Posted 1 year ago #

    Is there a way to remove the Registration Tab in the PHP code? I have special requirements for registration that the Tabbed Login doesn't show. I've tried editing your code but I seem to be over looking something. Thanks!

    http://wordpress.org/extend/plugins/tabbed-login/

  2. Vivek Marakana
    Member
    Plugin Author

    Posted 1 year ago #

    Remove this much of code from tabbed-ligon.php

    <?php  if(get_option('users_can_register')) { ?>  
    
    		<div id="register" class="tab_content_login" style="display:none;">
    			<h3><?php _e('Register for this site!', 'tabbed-login'); ?></h3>
    			<p><?php _e('Sign up now for the good stuff.', 'tabbed-login'); ?></p>
    			<form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="wp-user-form">
    				<div class="username">
    					<label for="user_login"><?php _e('Username', 'tabbed-login'); ?>: </label>
    					<input type="text" name="user_login" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" id="user_login" tabindex="101" />
    				</div>
    				<div class="password">
    					<label for="user_email"><?php _e('Your Email', 'tabbed-login'); ?>: </label>
    					<input type="text" name="user_email" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" id="user_email" tabindex="102" />
    				</div>
    				<div class="login_fields">
    					<?php do_action('register_form'); ?>
    					<input type="submit" name="user-submit" value="<?php _e('Sign up!', 'tabbed-login'); ?>" 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 $current_url; ?>?register=true" />
    					<input type="hidden" name="user-cookie" value="1" />
    				</div>
    			</form>
    		</div>
    
    		<?php }; ?>
  3. Xeo01
    Member
    Posted 1 year ago #

    Thanks! That part I got. I meant the actual tab itself. The tab is there and it shows no content. Want to remove the tab all together.

  4. Vivek Marakana
    Member
    Plugin Author

    Posted 1 year ago #

    Okay then remove this code from file

    <?php  if(get_option('users_can_register')) { ?>
    		<li><a href="#register"><?php _e('Register', 'tabbed-login') ?></a></li>
    		<?php }; ?>
  5. Xeo01
    Member
    Posted 1 year ago #

    Thanks! I found it late last night. Great plugin by the way!

  6. kcoyne12
    Member
    Posted 1 year ago #

    Is there a way to change where you redirect to after a successful login. Instead of the dashboard I want it to go to my home page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.