What file contains the community login form?

I'd like to move the login form currently in the community popout section into a static layer.

What template file contains this login form? Thanks.

  • Timothy Bowers

    Hey SRD.

    Open the following file around line 18:

    /studio/library/components/buddypress/buddypress-panel.php

    <?php do_action( 'bp_before_sidebar_login_form' ) ?>
    
    						<div class="label-box">	<h3><?php _e( 'user Login', 'studio' ) ?></h3>
    								<p id="login-text">
    									<?php _e( 'To start connecting please log in first.', 'studio' ) ?>
    									<?php if ( bp_get_signup_allowed() ) : ?>
    										<?php printf( __( ' You can also <a href="%s" title="Create an account">create an account</a>.', 'studio' ), site_url( BP_REGISTER_SLUG . '/' ) ) ?>
    									<?php endif; ?>
    								</p>
    						</div>
    							<form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post">
    								<label><?php _e( 'Username', 'studio' ) ?><br />
    											<input type="text" name="log" id="sidebar-user-login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label>
    
    								<label><?php _e( 'Password', 'studio' ) ?><br />
    								<input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label>
    
    								<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'studio' ) ?></label></p>
    
    								<?php do_action( 'bp_sidebar_login_form' ) ?>
    								<input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
    								<input type="hidden" name="testcookie" value="1" />
    							</form>
    			<?php do_action( 'bp_after_sidebar_login_form' ) ?>

    Hope this helps. :slight_smile:

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.