Advertisement
Guest User

paulgibbs

a guest
Jul 4th, 2010
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  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. .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement