Jump to content
Sign in to follow this  
buddha

Custom Log-in/Sign-Up in Header

Recommended Posts

buddha

hi, it was suggested to me that a buddypress corporate theme has a good log-in/sign-up for a header. the code from the header.php is below. any suggestions on how i can customize for whitehousepro? ---------------------------------------------- <div id="fc_wrap"> <?php if ( !is_user_logged_in() ) : ?> <?php $check_active_signup = get_site_option( 'registration' ); if( $check_active_signup == 'none' ) { //if signup allowed ?> <?php } else { ?> <?php do_action( 'bp_before_sidebar_login_form' ) ?> <form name="login-form" id="login-form" action="<?php echo site_url( 'wp-login.php' ) ?>" method="post"> <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'bp-corp') ?>" onfocus="if (this.value == '<?php _e( 'Username', 'bp-corp') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'bp-corp') ?>';}" /> <input type="password" name="pwd" id="user_pass" class="input" value="" /> <input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', 'bp-corp' ) ?>" /> <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'bp-corp') ?>"/> <?php if ( bp_get_signup_allowed() ) : ?> <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'bp-corp') ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" /> <?php endif; ?> <input type="hidden" name="testcookie" value="1" /> <?php do_action( 'bp_login_bar_logged_out' ) ?> </form> <?php do_action( 'bp_after_sidebar_login_form' ) ?> <?php } ?> <?php else : ?> <div id="logout-link"> <?php bp_loggedin_user_avatar( 'width=20&height=20' ) ?> <?php bp_loggedinuser_link() ?> / <?php bp_log_out_link() ?> <?php do_action( 'bp_login_bar_logged_in' ) ?> </div> <?php endif; ?> </div>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×