[buddypress-trac] [BuddyPress Trac] #5739: Standardization of the different parts of the sign-up form

buddypress-trac noreply at wordpress.org
Tue Jul 8 10:56:16 UTC 2014

#5739: Standardization of the different parts of the sign-up form
 Reporter:  WCUADD       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  XProfile     |    Version:
 Severity:  normal       |   Keywords:
 The sign up form is composed of several sections :
 * `#basic-details-section`
 * `#profile-details-section`
 * `#blog-details-section`

 Only the xprofile fields in `#profile-details-section` are clearly
 identified with a div and a parametrised class as follows (line 69 in
 `members/register.php` in the trunk version (not 2.0.1)

 <div<?php bp_field_css_class( 'editfield' ); ?>>

 Note that this is very important to give the possibility to add for
 example a "mandatory" class to the required xprofile fields, as follows
 for example :

 function add_mandatory_xprofile_field_class( $css_classes ) {
 global $profile_template;
 if ( bp_get_the_profile_field_is_required() ) $css_classes[] =
 return $css_classes;
 add_filter( ‘bp_field_css_classes’, ‘add_mandatory_xprofile_field_class’

 To render in a similar manner the different parts of the form, the other
 fields in the other sections should be caracterised equally each one with
 1. a div
 2. and please! with a parametrised class in order to let to the developper
 the possibility to add his own classes. For example to add a "mandatory"
 class as shown above but not only, there could be other CSS rendering

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5739>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list