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

paulgibbs

By: a guest on Jul 4th, 2010  |  syntax: PHP  |  size: 1.14 KB  |  views: 280  |  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 while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  2. <div class="editfield">
  3. <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  4. <label for="<?php bp_the_profile_field_input_name() ?>"><?php _e( 'bp_the_profile_field_name()', 'buddypress' ) ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  5. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  6. <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() ?>" />
  7. <?php endif; ?>
  8. ....
  9.  
  10. with your fields like :
  11.  
  12. <div class="editfield"><label for="field_1"><?php _e( 'Name', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  13. <?php do_action( 'bp_field_1_errors' ) ?>
  14. <input type="text" name="field_1" id="field_1" value="" />
  15.  
  16. <label for="field_2"><?php _e( 'About me', 'buddypress' ) ?></label>
  17. <?php do_action( 'bp_field_2_errors' ) ?>
  18. <textarea rows="5" cols="40" name="field_2" id="field_2"><?php bp_the_profile_field_edit_value() ?></textarea>
  19.  
  20. .....
clone this paste RAW Paste Data