Advertisement
Guest User

Buddypress Registration Page w/ Groups

a guest
Aug 25th, 2010
1,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 49.61 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3.     <div id="content">
  4.         <div class="padder">
  5.  
  6.         <?php do_action( 'bp_before_register_page' ) ?>
  7.  
  8.         <div class="page" id="register-page">
  9.  
  10.             <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
  11.  
  12.             <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
  13.  
  14.                 <h2><?php _e( 'Register', 'buddypress' ) ?></h2>
  15.  
  16.                 <?php do_action( 'template_notices' ) ?>
  17. <!-- Altered the text in the below section and elsewhere (JV) -->
  18.                 <p>The PHR National Student Program supports student advocacy by offering resources, training, networks, and opportunities to make a difference. Sign up below for the PHR National Student Program and register your Chapter. Through PHR's online community, you can connect with other students and health professionals who are dedicated to protecting human rights. You will also receive important email updates about opportunities for advocacy and education. Even if you’re not part of a Chapter, sign up today!</p>
  19.  
  20. <h5>Please Note:</h5>
  21. <ul class="instructions">
  22. <li><strong>Fields marked <span title="Required" class="required">*</span> are required for registration.</strong></li>
  23. <li>Fields in <strong><span style="color:black">bold</span></strong> will be publicly visible.</li>
  24. <li>Fields in <em><span style="color:black">italics</span></em> will be visible only to yourself and PHR staff.</li>
  25. <li>Other fields may be public by default, but you may change the visibility settings by editing your profile. You may change these fields to be visible to everyone, only your friends, or only yourself and PHR staff.</li>
  26. </ul>
  27. <div class="privacy-policy"><a href="http://physiciansforhumanrights.org/privacy/" target="_blank">Physicians for Human Rights privacy policy</a></div>
  28.  
  29.                 <?php do_action( 'bp_before_account_details_fields' ) ?>
  30.  
  31.                 <div class="register-section" id="basic-details-section">
  32.  
  33.                     <?php /***** Basic Account Details ******/ ?>
  34. <!-- Rearranged and added divs here and throughout for styling (JV) -->
  35.                     <h4><?php _e( 'Account Details', 'buddypress' ) ?></h4>
  36. <!--                    <p class="description"><span class="reg-description">(Account details will not be publicly displayed)</span></p>-->
  37. <div class="profile-table"><div class="editfield"><span id="signup_username">
  38.                     <label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?></label></span>
  39.                     <?php do_action( 'bp_signup_username_errors' ) ?>
  40.                     <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
  41.                     </div></div>
  42. <div class="profile-table"><div class="editfield"><span id="signup_email">
  43.                     <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ) ?> <?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?></label></span>
  44.                     <?php do_action( 'bp_signup_email_errors' ) ?>
  45.                     <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
  46.                     </div></div>
  47. <div class="profile-table"><div class="editfield"><span id="signup_password">
  48.                     <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ) ?> <?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?></label></span>
  49.                     <?php do_action( 'bp_signup_password_errors' ) ?>
  50.                     <input type="password" name="signup_password" id="signup_password" value="" />
  51.                     </div></div>
  52. <div class="profile-table"><div class="editfield"><span id="signup_password_confirm">
  53.                     <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ) ?> <?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?></label></span>
  54.                     <?php do_action( 'bp_signup_password_confirm_errors' ) ?>
  55.                     <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
  56.                     </div></div>
  57.                 </div><!-- #basic-details-section -->
  58.  
  59.                 <?php do_action( 'bp_after_account_details_fields' ) ?>
  60.  
  61.                 <?php /***** Extra Profile Details ******/ ?>
  62.  
  63.                 <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  64.  
  65.                     <?php do_action( 'bp_before_signup_profile_fields' ) ?>
  66.  
  67. <!-- My take on displaying the profile fields, arranged by field groups, with many div alterations for styling (JV) -->
  68.                     <div class="register-section" id="profile-details-section">
  69.                         <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
  70.                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  71.                         <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  72.  
  73.                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  74.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  75.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  76.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  77.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  78.                                     <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() ?>" />
  79.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  80.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  81.                                 </div></div>
  82.                             <?php endif; ?>
  83.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  84.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  85.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  86.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  87.                                     <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>
  88.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  89.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  90.                                 </div></div>
  91.                             <?php endif; ?>
  92.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  93.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  94.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  95.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  96.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  97.                                         <?php bp_the_profile_field_options() ?>
  98.                                     </select>
  99.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  100.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  101.                                 </div></div>
  102.                             <?php endif; ?>
  103.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  104.                                 <div class="profile-table"><div class="editfield">
  105.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label>
  106.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  107.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  108.                                         <?php bp_the_profile_field_options() ?>
  109.                                     </select>
  110.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  111.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  112.                                 </div></div>
  113.                             <?php endif; ?>
  114.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  115.                                 <div class="profile-line"><div class="editfield">
  116.                                     <div class="radio">
  117.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  118.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  119.                                         <?php bp_the_profile_field_options() ?>
  120.                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  121.                                             <span class="clear-link"><a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a></span>
  122.                                         <?php endif; ?>
  123.                                     </div>
  124.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  125.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  126.                                 </div></div>
  127.                             <?php endif; ?>
  128.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  129.                                 <div class="profile-line"><div class="editfield">
  130.                                     <div class="checkbox">
  131.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  132.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  133.                                         <?php bp_the_profile_field_options() ?>
  134.                                     </div>
  135.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  136.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  137.                                 </div></div>
  138.                             <?php endif; ?>
  139.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  140.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  141.                                     <!--<div class="datebox">-->
  142.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  143.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  144.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  145.                                     <?php bp_the_profile_field_options( 'type=day' ) ?>
  146.                                     </select>
  147.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  148.                                     <?php bp_the_profile_field_options( 'type=month' ) ?>
  149.                                     </select>
  150.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  151.                                     <?php bp_the_profile_field_options( 'type=year' ) ?>
  152.                                     </select>
  153.                                     <!--</div>-->
  154.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  155.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  156.                                 </div></div>
  157.                             <?php endif; ?>                    
  158.                         <?php endwhile; ?>
  159.  
  160.                         <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
  161.                         <?php endwhile; endif; endif; ?>
  162.                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",",$fields_ids);?>" />
  163.                     </div>
  164.                        
  165.                     <div class="register-section" id="student-details-section">
  166.                         <h4><?php _e( 'Students', 'buddypress' ) ?></h4>
  167.                         <p class="description"><span class="reg-description">Students, please fill in the following fields. Not a student? Skip this section.</span></p>
  168.                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  169.                         <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=3' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  170.  
  171.                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  172.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  173.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  174.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  175.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  176.                                     <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() ?>" />
  177.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  178.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  179.                                 </div></div>
  180.                             <?php endif; ?>
  181.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  182.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  183.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  184.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  185.                                     <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>
  186.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  187.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  188.                                 </div></div>
  189.                             <?php endif; ?>
  190.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  191.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  192.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  193.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  194.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  195.                                         <?php bp_the_profile_field_options() ?>
  196.                                     </select>
  197.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  198.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  199.                                 </div></div>
  200.                             <?php endif; ?>
  201.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  202.                                 <div class="profile-table"><div class="editfield">
  203.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label>
  204.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  205.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  206.                                         <?php bp_the_profile_field_options() ?>
  207.                                     </select>
  208.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  209.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  210.                                 </div></div>
  211.                             <?php endif; ?>
  212.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  213.                                 <div class="profile-line"><div class="editfield">
  214.                                     <div class="radio">
  215.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  216.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  217.                                         <?php bp_the_profile_field_options() ?>
  218.                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  219.                                             <span class="clear-link"><a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a></span>
  220.                                         <?php endif; ?>
  221.                                     </div>
  222.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  223.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  224.                                 </div></div>
  225.                             <?php endif; ?>
  226.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  227.                                 <div class="profile-line"><div class="editfield">
  228.                                     <div class="checkbox">
  229.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  230.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  231.                                         <?php bp_the_profile_field_options() ?>
  232.                                     </div>
  233.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  234.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  235.                                 </div></div>
  236.                             <?php endif; ?>
  237.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  238.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  239.                                     <!--<div class="datebox">-->
  240.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  241.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  242.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  243.                                     <?php bp_the_profile_field_options( 'type=day' ) ?>
  244.                                     </select>
  245.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  246.                                     <?php bp_the_profile_field_options( 'type=month' ) ?>
  247.                                     </select>
  248.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  249.                                     <?php bp_the_profile_field_options( 'type=year' ) ?>
  250.                                     </select>
  251.                                     <!--</div>-->
  252.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  253.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  254.                                 </div></div>
  255.                             <?php endif; ?>                    
  256.                         <?php endwhile; ?>
  257.  
  258.                         <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
  259.                         <?php endwhile; endif; endif; ?>
  260.                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",",$fields_ids);?>" />
  261.                     </div>
  262.  
  263.                     <div class="register-section" id="chapter-details-section">
  264.                         <h4><?php _e( 'Chapter Membership', 'buddypress' ) ?></h4>
  265.                         <p class="description"><span class="reg-description">Please fill in the following chapter membership fields.</span></p>
  266.                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  267.                         <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=6' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  268.  
  269.                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  270.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  271.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  272.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  273.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  274.                                     <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() ?>" />
  275.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  276.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  277.                                 </div></div>
  278.                             <?php endif; ?>
  279.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  280.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  281.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  282.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  283.                                     <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>
  284.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  285.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  286.                                 </div></div>
  287.                             <?php endif; ?>
  288.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  289.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  290.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  291.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  292.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  293.                                         <?php bp_the_profile_field_options() ?>
  294.                                     </select>
  295.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  296.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  297.                                 </div></div>
  298.                             <?php endif; ?>
  299.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  300.                                 <div class="profile-table"><div class="editfield">
  301.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label>
  302.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  303.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  304.                                         <?php bp_the_profile_field_options() ?>
  305.                                     </select>
  306.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  307.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  308.                                 </div></div>
  309.                             <?php endif; ?>
  310.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  311.                                 <div class="profile-line"><div class="editfield">
  312.                                     <div class="radio">
  313.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  314.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  315.                                         <?php bp_the_profile_field_options() ?>
  316.                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  317.                                             <span class="clear-link"><a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a></span>
  318.                                         <?php endif; ?>
  319.                                     </div>
  320.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  321.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  322.                                 </div></div>
  323.                             <?php endif; ?>
  324.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  325.                                 <div class="profile-line"><div class="editfield">
  326.                                     <div class="checkbox">
  327.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  328.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  329.                                         <?php bp_the_profile_field_options() ?>
  330.                                     </div>
  331.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  332.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  333.                                 </div></div>
  334.                             <?php endif; ?>
  335.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  336.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  337.                                     <!--<div class="datebox">-->
  338.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  339.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  340.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  341.                                     <?php bp_the_profile_field_options( 'type=day' ) ?>
  342.                                     </select>
  343.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  344.                                     <?php bp_the_profile_field_options( 'type=month' ) ?>
  345.                                     </select>
  346.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  347.                                     <?php bp_the_profile_field_options( 'type=year' ) ?>
  348.                                     </select>
  349.                                     <!--</div>-->
  350.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  351.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  352.                                 </div></div>
  353.                             <?php endif; ?>                    
  354.                         <?php endwhile; ?>
  355.  
  356.                         <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
  357.                         <?php endwhile; endif; endif; ?>
  358.                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",",$fields_ids);?>" />
  359.                     </div>
  360.  
  361.                     <div class="register-section" id="resident-details-section">
  362.                         <h4><?php _e( 'Residents & Health Professionals', 'buddypress' ) ?></h4>
  363.                         <p class="description"><span class="reg-description">Residents and health professionals, please fill in the following fields. Not a resident or health professional? Skip this section.</span></p>
  364.                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  365.                         <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=4' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  366.  
  367.                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  368.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  369.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  370.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  371.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  372.                                     <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() ?>" />
  373.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  374.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  375.                                 </div></div>
  376.                             <?php endif; ?>
  377.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  378.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  379.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  380.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  381.                                     <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>
  382.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  383.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  384.                                 </div></div>
  385.                             <?php endif; ?>
  386.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  387.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  388.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  389.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  390.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  391.                                         <?php bp_the_profile_field_options() ?>
  392.                                     </select>
  393.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  394.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  395.                                 </div></div>
  396.                             <?php endif; ?>
  397.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  398.                                 <div class="profile-table"><div class="editfield">
  399.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label>
  400.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  401.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  402.                                         <?php bp_the_profile_field_options() ?>
  403.                                     </select>
  404.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  405.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  406.                                 </div></div>
  407.                             <?php endif; ?>
  408.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  409.                                 <div class="profile-line"><div class="editfield">
  410.                                     <div class="radio">
  411.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  412.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  413.                                         <?php bp_the_profile_field_options() ?>
  414.                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  415.                                             <span class="clear-link"><a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a></span>
  416.                                         <?php endif; ?>
  417.                                     </div>
  418.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  419.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  420.                                 </div></div>
  421.                             <?php endif; ?>
  422.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  423.                                 <div class="profile-line"><div class="editfield">
  424.                                     <div class="checkbox">
  425.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  426.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  427.                                         <?php bp_the_profile_field_options() ?>
  428.                                     </div>
  429.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  430.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  431.                                 </div></div>
  432.                             <?php endif; ?>
  433.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  434.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  435.                                     <!--<div class="datebox">-->
  436.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  437.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  438.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  439.                                     <?php bp_the_profile_field_options( 'type=day' ) ?>
  440.                                     </select>
  441.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  442.                                     <?php bp_the_profile_field_options( 'type=month' ) ?>
  443.                                     </select>
  444.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  445.                                     <?php bp_the_profile_field_options( 'type=year' ) ?>
  446.                                     </select>
  447.                                     <!--</div>-->
  448.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  449.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  450.                                 </div></div>
  451.                             <?php endif; ?>                    
  452.                         <?php endwhile; ?>
  453.  
  454.                         <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
  455.                         <?php endwhile; endif; endif; ?>
  456.                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",",$fields_ids);?>" />
  457.                     </div>
  458.  
  459.                     <div class="register-section" id="faculty-details-section">
  460.                         <h4><?php _e( 'Faculty', 'buddypress' ) ?></h4>
  461.                         <p class="description"><span class="reg-description">Faculty members, please fill in the following fields. Not a faculty member? Skip this section.</span></p>
  462.                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  463.                         <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=5' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  464.  
  465.                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  466.                             <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  467.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  468.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  469.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  470.                                     <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() ?>" />
  471.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  472.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  473.                                 </div></div>
  474.                             <?php endif; ?>
  475.                             <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  476.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  477.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  478.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  479.                                     <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>
  480.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  481.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  482.                                 </div></div>
  483.                             <?php endif; ?>
  484.                             <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  485.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  486.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  487.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  488.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  489.                                         <?php bp_the_profile_field_options() ?>
  490.                                     </select>
  491.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  492.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  493.                                 </div></div>
  494.                             <?php endif; ?>
  495.                             <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  496.                                 <div class="profile-table"><div class="editfield">
  497.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label>
  498.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  499.                                     <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  500.                                         <?php bp_the_profile_field_options() ?>
  501.                                     </select>
  502.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  503.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  504.                                 </div></div>
  505.                             <?php endif; ?>
  506.                             <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  507.                                 <div class="profile-line"><div class="editfield">
  508.                                     <div class="radio">
  509.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  510.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  511.                                         <?php bp_the_profile_field_options() ?>
  512.                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  513.                                             <span class="clear-link"><a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a></span>
  514.                                         <?php endif; ?>
  515.                                     </div>
  516.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  517.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  518.                                 </div></div>
  519.                             <?php endif; ?>
  520.                             <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  521.                                 <div class="profile-line"><div class="editfield">
  522.                                     <div class="checkbox">
  523.                                         <span id="styled<?php bp_the_profile_field_input_name() ?>"><span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></span></span>
  524.                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  525.                                         <?php bp_the_profile_field_options() ?>
  526.                                     </div>
  527.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  528.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  529.                                 </div></div>
  530.                             <?php endif; ?>
  531.                             <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  532.                                 <div class="profile-table"><div class="editfield"><span id="styled<?php bp_the_profile_field_input_name() ?>">
  533.                                     <!--<div class="datebox">-->
  534.                                     <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( '<span title="Required" class="required">*</span>', 'buddypress' ) ?><?php endif; ?></label></span>
  535.                                     <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  536.                                     <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  537.                                     <?php bp_the_profile_field_options( 'type=day' ) ?>
  538.                                     </select>
  539.                                     <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  540.                                     <?php bp_the_profile_field_options( 'type=month' ) ?>
  541.                                     </select>
  542.                                     <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  543.                                     <?php bp_the_profile_field_options( 'type=year' ) ?>
  544.                                     </select>
  545.                                     <!--</div>-->
  546.                                     <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  547.                                     <div class="editfield-description"><?php bp_the_profile_field_description() ?></div>
  548.                                 </div></div>
  549.                             <?php endif; ?>                    
  550.                         <?php endwhile; ?>
  551.  
  552.                         <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
  553.                         <?php endwhile; endif; endif; ?>
  554.                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",",$fields_ids);?>" />
  555.                     </div>             
  556.                        
  557.                 <!-- #profile-details-section -->
  558.  
  559.  
  560.                     <?php do_action( 'bp_after_signup_profile_fields' ) ?>
  561.  
  562.                 <?php endif; ?>
  563.                
  564.                 <?php if ( bp_get_blog_signup_allowed() ) : ?>
  565.  
  566.                     <?php do_action( 'bp_before_blog_details_fields' ) ?>
  567.  
  568.                     <?php /***** Blog Creation Details ******/ ?>
  569.  
  570.                     <div class="register-section" id="blog-details-section">
  571.  
  572.                         <h4><?php _e( 'Blog Details', 'buddypress' ) ?></h4>
  573.  
  574.                         <p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new blog', 'buddypress' ) ?></p>
  575.  
  576.                         <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
  577.  
  578.                             <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  579.                             <?php do_action( 'bp_signup_blog_url_errors' ) ?>
  580.  
  581.                             <?php if ( is_subdomain_install() ) : ?>
  582.                                 http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" /> .<?php echo str_replace( 'http://', '', site_url() ) ?>
  583.                             <?php else : ?>
  584.                                 <?php echo site_url() ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" />
  585.                             <?php endif; ?>
  586.  
  587.                             <label for="signup_blog_title"><?php _e( 'Blog Title', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  588.                             <?php do_action( 'bp_signup_blog_title_errors' ) ?>
  589.                             <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value() ?>" />
  590.  
  591.                             <span class="label"><?php _e( 'I would like my blog to appear in search engines, and in public listings around this site', 'buddypress' ) ?>:</span>
  592.                             <?php do_action( 'bp_signup_blog_privacy_errors' ) ?>
  593.  
  594.                             <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes' ) ?></label>
  595.                             <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No' ) ?></label>
  596.  
  597.                         </div>
  598.  
  599.                     </div><!-- #blog-details-section -->
  600.  
  601.                     <?php do_action( 'bp_after_blog_details_fields' ) ?>
  602.  
  603.                 <?php endif; ?>
  604. <!-- Added and styled a div here for the final steps of registration page (JV) -->
  605. <div class="register-section" id="bottom-group">
  606. <h4>Complete Your Registration</h4>
  607.                 <?php do_action( 'bp_before_registration_submit_buttons' ) ?>
  608.  
  609.                 <div class="submit">
  610.                     <input type="submit"name="signup_submit" id="signup_submit" value="<?php _e( 'Submit', 'buddypress' ) ?> &rarr;" /><span title="Required" class="required">*</span>
  611.                 </div>
  612.  
  613.                 <?php do_action( 'bp_after_registration_submit_buttons' ) ?>
  614. </div>
  615.                 <?php wp_nonce_field( 'bp_new_signup' ) ?>
  616.  
  617.             <?php endif; // request-details signup step ?>
  618.  
  619.             <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
  620.  
  621.                 <h2><?php _e( 'Sign Up Complete!', 'buddypress' ) ?></h2>
  622.  
  623.                 <?php do_action( 'template_notices' ) ?>
  624.  
  625.                 <?php if ( bp_registration_needs_activation() ) : ?>
  626.                     <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ) ?></p>
  627.                 <?php else : ?>
  628.                     <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ) ?></p>
  629.                 <?php endif; ?>
  630.  
  631.                 <?php if ( bp_is_active( 'xprofile' ) && !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
  632.  
  633.                     <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
  634.  
  635.                         <h4><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h4>
  636.                         <p><?php _e( "We've fetched an avatar for your new account. If you'd like to change this, why not upload a new one?", 'buddypress' ) ?></p>
  637.  
  638.                         <div id="signup-avatar">
  639.                             <?php bp_signup_avatar() ?>
  640.                         </div>
  641.  
  642.                         <p>
  643.                             <input type="file" name="file" id="file" />
  644.                             <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
  645.                             <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
  646.                             <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
  647.                             <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
  648.                         </p>
  649.  
  650.                         <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
  651.  
  652.                     <?php endif; ?>
  653.  
  654.                     <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
  655.  
  656.                         <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3>
  657.  
  658.                         <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
  659.  
  660.                         <div id="avatar-crop-pane">
  661.                             <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
  662.                         </div>
  663.  
  664.                         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
  665.  
  666.                         <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
  667.                         <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
  668.                         <input type="hidden" name="signup_avatar_dir" id="signup_avatar_dir" value="<?php bp_signup_avatar_dir_value() ?>" />
  669.  
  670.                         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
  671.                         <input type="hidden" id="x" name="x" />
  672.                         <input type="hidden" id="y" name="y" />
  673.                         <input type="hidden" id="w" name="w" />
  674.                         <input type="hidden" id="h" name="h" />
  675.  
  676.                         <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>
  677.  
  678.                     <?php endif; ?>
  679.  
  680.                 <?php endif; ?>
  681.  
  682.             <?php endif; // completed-confirmation signup step ?>
  683.  
  684.             <?php do_action( 'bp_custom_signup_steps' ) ?>
  685.  
  686.             </form>
  687.  
  688.         </div>
  689.  
  690.         <?php do_action( 'bp_after_register_page' ) ?>
  691.  
  692.         </div><!-- .padder -->
  693.     </div><!-- #content -->
  694.  
  695.     <?php locate_template( array( 'sidebar.php' ), true ) ?>
  696.  
  697.     <?php do_action( 'bp_after_directory_activity_content' ) ?>
  698.  
  699.     <script type="text/javascript">
  700.         jQuery(document).ready( function() {
  701.             if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
  702.                 jQuery('div#blog-details').toggle();
  703.  
  704.             jQuery( 'input#signup_with_blog' ).click( function() {
  705.                 jQuery('div#blog-details').fadeOut().toggle();
  706.             });
  707.         });
  708.     </script>
  709.  
  710. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement