Advertisement
Guest User

Registration Form Updated

a guest
Jan 27th, 2012
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.81 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3.                            
  4.         <!-- When homepage is using blog posts -->
  5.    
  6.                
  7.                 <?php do_action( 'bp_before_blog_page' ) ?>
  8.                
  9.                 <div id="content" <?php if ( is_active_sidebar('home-right') ) : ?>class="three_column"<?php else : ?> class="two_column_left"<?php endif; ?>>
  10.                 <div class="padder">
  11. <div id="login">
  12.  
  13.         <?php do_action( 'bp_before_register_page' ) ?>
  14.  
  15.         <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
  16.  
  17.     <h2><?php _e( 'Create an Account', 'buddypress' ) ?></h2>
  18.  
  19.     <?php do_action( 'template_notices' ) ?>
  20.  
  21.     <p><?php _e( 'Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress' ) ?></p>
  22.  
  23.     <?php do_action( 'bp_before_account_details_fields' ) ?>
  24.  
  25.     <div class="register-section" id="basic-details-section">
  26.  
  27.         <?php /***** Basic Account Details ******/ ?>
  28.  
  29.         <h4><?php _e( 'Account Details', 'buddypress' ) ?></h4>
  30.        
  31.  
  32.                 <label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  33.                 <?php do_action( 'bp_signup_username_errors' ) ?>
  34.                 <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
  35.  
  36.                 <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  37.                 <?php do_action( 'bp_signup_email_errors' ) ?>
  38.                 <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
  39.  
  40.                 <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  41.                 <?php do_action( 'bp_signup_password_errors' ) ?>
  42.                 <input type="password" name="signup_password" id="signup_password" value="" />
  43.  
  44.                 <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  45.                 <?php do_action( 'bp_signup_password_confirm_errors' ) ?>
  46.                 <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
  47.  
  48.     </div><!-- #basic-details-section -->
  49.  
  50.     <?php do_action( 'bp_after_account_details_fields' ) ?>
  51.  
  52.     <?php /***** Extra Profile Details ******/ ?>
  53.  
  54.     <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  55.  
  56.     <?php do_action( 'bp_before_signup_profile_fields' ) ?>
  57.  
  58.     <div class="register-section" id="profile-details-section">
  59.  
  60.         <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
  61.  
  62.         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  63.         <?php if ( function_exists('bp_is_active') && bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1&hide_empty_fields=0' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  64.  
  65.                     <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  66.  
  67.                         <div class="editfield">
  68.  
  69.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  70.  
  71.                                 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  72.                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  73.                                 <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />
  74.  
  75.                             <?php endif; ?>
  76.  
  77.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  78.  
  79.                                 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  80.                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  81.                                 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea>
  82.  
  83.                             <?php endif; ?>
  84.  
  85.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  86.  
  87.                                 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  88.                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  89.                                 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  90.                                     <?php bp_the_profile_field_options() ?>
  91.                                 </select>
  92.  
  93.                             <?php endif; ?>
  94.  
  95.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  96.  
  97.                                 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  98.                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  99.                                 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  100.                                     <?php bp_the_profile_field_options() ?>
  101.                                 </select>
  102.  
  103.                             <?php endif; ?>
  104.  
  105.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  106.  
  107.                                 <div class="radio">
  108.                                     <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span>
  109.  
  110.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  111.                                     <?php bp_the_profile_field_options() ?>
  112.  
  113.                                     <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  114.                                         <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a>
  115.                                     <?php endif; ?>
  116.                                 </div>
  117.  
  118.                             <?php endif; ?>
  119.  
  120.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  121.  
  122.                                 <div class="checkbox">
  123.                                     <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span>
  124.  
  125.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  126.                                     <?php bp_the_profile_field_options() ?>
  127.                                 </div>
  128.  
  129.                             <?php endif; ?>
  130.  
  131.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  132.  
  133.                                 <div class="datebox">
  134.                                     <label for="<?php bp_the_profile_field_input_name() ?>_day"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  135.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  136.  
  137.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  138.                                         <?php bp_the_profile_field_options( 'type=day' ) ?>
  139.                                     </select>
  140.  
  141.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  142.                                         <?php bp_the_profile_field_options( 'type=month' ) ?>
  143.                                     </select>
  144.  
  145.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  146.                                         <?php bp_the_profile_field_options( 'type=year' ) ?>
  147.                                     </select>
  148.                                 </div>
  149.  
  150.                             <?php endif; ?>
  151.  
  152.                             <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  153.  
  154.                             <p class="description"><?php bp_the_profile_field_description() ?></p>
  155.  
  156.                         </div>
  157.  
  158.                     <?php endwhile; ?>
  159.  
  160.                     <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
  161.  
  162.                     <?php endwhile; endif; endif; ?>
  163.  
  164.                 </div><!-- #profile-details-section -->
  165.  
  166.                 <?php do_action( 'bp_after_signup_profile_fields' ) ?>
  167.  
  168.             <?php endif; ?>
  169.  
  170.             <?php do_action( 'bp_before_registration_submit_buttons' ) ?>
  171.  
  172.             <div class="submit">
  173.                 <input type="submit"name="signup_submit" id="signup_submit" value="<?php _e( 'Sign Up', 'membership' ) ?> &rarr;" />
  174.             </div>
  175.  
  176.             <?php do_action( 'bp_after_registration_submit_buttons' ) ?>
  177.  
  178.             <?php wp_nonce_field( 'bp_new_signup' ) ?>
  179.  
  180.  
  181.         <?php do_action( 'bp_custom_signup_steps' ) ?>
  182.         <input type="hidden" name="action" value="validatepage1bp" />
  183.         </form>
  184.                
  185.         </div>
  186.        
  187.         </div>                 
  188.                    
  189.                     <!-- .page -->
  190.                     </div><!-- .padder -->
  191.                     </div><!-- #content -->
  192.                    
  193.                 <?php do_action( 'bp_after_blog_page' ) ?>
  194.                 <?php locate_template( array( 'sidebar-home-right.php' ), true ) ?>                        
  195.        
  196.  
  197.  
  198. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement