Changeset 2583
- Timestamp:
- 02/04/2010 12:10:32 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r2576 r2583 53 53 $bp->signup->email = $_POST['signup_email']; 54 54 55 /* Now we've checked account details, we can check profile information */ 56 $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); 57 58 /* Loop through the posted fields formatting any datebox values then validate the field */ 59 foreach ( (array) $profile_field_ids as $field_id ) { 60 if ( !isset( $_POST['field_' . $field_id] ) ) { 61 if ( isset( $_POST['field_' . $field_id . '_day'] ) ) 62 $_POST['field_' . $field_id] = strtotime( $_POST['field_' . $field_id . '_day'] . $_POST['field_' . $field_id . '_month'] . $_POST['field_' . $field_id . '_year'] ); 63 } 64 65 if ( xprofile_check_is_required_field( $field_id ) && empty( $_POST['field_' . $field_id] ) ) 66 $bp->signup->errors['field_' . $field_id] = __( 'This is a required field', 'buddypress' ); 55 if ( !empty( $_POST['signup_profile_field_ids'] ) && function_exists( 'xprofile_check_is_required_field' ) ) { 56 /* Now we've checked account details, we can check profile information */ 57 $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); 58 59 /* Loop through the posted fields formatting any datebox values then validate the field */ 60 foreach ( (array) $profile_field_ids as $field_id ) { 61 if ( !isset( $_POST['field_' . $field_id] ) ) { 62 if ( isset( $_POST['field_' . $field_id . '_day'] ) ) 63 $_POST['field_' . $field_id] = strtotime( $_POST['field_' . $field_id . '_day'] . $_POST['field_' . $field_id . '_month'] . $_POST['field_' . $field_id . '_year'] ); 64 } 65 66 if ( xprofile_check_is_required_field( $field_id ) && empty( $_POST['field_' . $field_id] ) ) 67 $bp->signup->errors['field_' . $field_id] = __( 'This is a required field', 'buddypress' ); 68 } 67 69 } 68 70 -
trunk/bp-themes/bp-default/members/index.php
r2488 r2583 30 30 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option> 31 31 <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option> 32 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 32 33 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 34 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 35 <?php endif; ?> 33 36 34 37 <?php do_action( 'bp_members_directory_order_options' ) ?> -
trunk/bp-themes/bp-default/registration/register.php
r2464 r2583 42 42 <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" /> 43 43 44 </div> 44 </div><!-- #basic-details-section --> 45 45 46 46 <?php do_action( 'bp_after_account_details_fields' ) ?> … … 51 51 <?php /***** Extra Profile Details ******/ ?> 52 52 53 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 53 54 <div class="register-section" id="profile-details-section"> 54 55 … … 155 156 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 156 157 157 </div> 158 159 <?php endwhile; endif; endif; ?> 158 <?php endwhile; endif; endif; ?> 159 160 </div><!-- #profile-details-section --> 161 <?php endif; ?> 160 162 161 163 <?php do_action( 'bp_after_signup_profile_fields' ) ?> … … 196 198 </div> 197 199 198 </div> 200 </div><!-- #blog-details-section --> 199 201 200 202 <?php do_action( 'bp_after_blog_details_fields' ) ?> … … 205 207 206 208 <div class="submit"> 207 <input type="submit" 209 <input type="submit"name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ) ?> →" /> 208 210 </div> 209 211 … … 226 228 <?php endif; ?> 227 229 228 <?php if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?>230 <?php if ( bp_is_active( 'xprofile' ) && !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?> 229 231 230 232 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.