Want more features on Pastebin? Sign Up, it's FREE!
Guest

Buddypress Registration try

By: a guest on Aug 24th, 2010  |  syntax: PHP  |  size: 1.91 KB  |  views: 290  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php /***** Extra Profile Details ******/ ?>
  2. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  3. <?php do_action( 'bp_before_signup_profile_fields' ) ?>
  4.         <div class="register-section" id="profile-details-section">
  5.                 <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
  6.                                 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  7.                                 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  8.                                 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  9.                                         <div class="editfield">"
  10.  
  11. (all the various profile field options here)
  12.  
  13.                                         </div>
  14.                                 <?php endwhile; ?>
  15.                                 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
  16.                                 <?php endwhile; endif; endif; ?>
  17.         </div><!-- #profile-details-section -->
  18.        
  19. (followed by my next profile field group)
  20.  
  21. <?php /***** Extra Profile Details ******/ ?>
  22. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  23. <?php do_action( 'bp_before_signup_profile_fields' ) ?>
  24.         <div class="register-section" id="profile-details-section">
  25.                 <h4><?php _e( 'Students', 'buddypress' ) ?></h4>
  26.                                 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  27.                                 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=3' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  28.                                 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  29.                                         <div class="editfield">
  30.  
  31. (all the various profile field options here)
  32.  
  33.                                         </div>
  34.                                 <?php endwhile; ?>
  35.                                 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
  36.                                 <?php endwhile; endif; endif; ?>
  37.         </div><!-- #profile-details-section -->
  38.  
  39. (and so on...)
clone this paste RAW Paste Data