Changeset 1977
- Timestamp:
- 09/28/2009 07:42:55 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r1952 r1977 7 7 return false; 8 8 9 /* If the user is logged in, and is not a site admin,redirect away from here */10 if ( is_user_logged_in() && !is_site_admin())9 /* If the user is logged in, redirect away from here */ 10 if ( is_user_logged_in() ) 11 11 bp_core_redirect( $bp->root_domain ); 12 12 … … 210 210 if ( false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php') ) 211 211 return false; 212 212 213 213 if ( '' != locate_template( array( 'registration/register.php' ), false ) || '' != locate_template( array( 'register.php' ), false ) ) 214 214 die; -
trunk/bp-xprofile.php
r1960 r1977 883 883 if ( !$user_id ) 884 884 $user_id = $bp->displayed_user->id; 885 886 if ( !$user_id ) 887 return false; 885 888 886 889 if ( is_numeric( $field ) ) … … 891 894 if ( !$field_id ) 892 895 return false; 893 896 894 897 return apply_filters( 'xprofile_get_field_data', BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) ); 895 898 } -
trunk/bp-xprofile/admin/js/admin.js
r1798 r1977 28 28 29 29 isDefault.setAttribute('value', theId); 30 30 31 31 var label1 = document.createElement('label'); 32 32 var txt1 = document.createTextNode(" Default Value "); -
trunk/bp-xprofile/bp-xprofile-classes.php
r1960 r1977 503 503 504 504 <p><?php _e('Option', 'buddypress') ?> 1: <input type="text" name="<?php echo $type ?>_option[1]" id="<?php echo $type ?>_option1" /> 505 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $default_input == 'radio' ) {?> checked="checked"<?php } ?>"value="1" /> <?php _e( 'Default Value', 'buddypress' ) ?>505 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" value="1" /> <?php _e( 'Default Value', 'buddypress' ) ?> 506 506 <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="2" /> 507 507 -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1973 r1977 471 471 472 472 case 'datebox': 473 473 474 474 if ( $field->data->value != '' ) { 475 475 $day = date("j", $field->data->value); … … 477 477 $year = date("Y", $field->data->value); 478 478 $default_select = ' selected="selected"'; 479 480 /* Check for updated posted values, but errors preventing them from being saved first time */481 if ( isset( $_POST['field_' . $field->id . '_day'] ) && $day != $_POST['field_' . $field->id . '_day'] ) {482 if ( !empty( $_POST['field_' . $field->id . '_day'] ) )483 $day = $_POST['field_' . $field->id . '_day'];484 }485 486 if ( isset( $_POST['field_' . $field->id . '_month'] ) && $month != $_POST['field_' . $field->id . '_month'] ) {487 if ( !empty( $_POST['field_' . $field->id . '_month'] ) )488 $month = $_POST['field_' . $field->id . '_month'];489 }490 491 if ( isset( $_POST['field_' . $field->id . '_year'] ) && $year != date("j", $_POST['field_' . $field->id . '_year'] ) ) {492 if ( !empty( $_POST['field_' . $field->id . '_year'] ) )493 $year = $_POST['field_' . $field->id . '_year'];494 }479 } 480 481 /* Check for updated posted values, but errors preventing them from being saved first time */ 482 if ( isset( $_POST['field_' . $field->id . '_day'] ) && $day != $_POST['field_' . $field->id . '_day'] ) { 483 if ( !empty( $_POST['field_' . $field->id . '_day'] ) ) 484 $day = $_POST['field_' . $field->id . '_day']; 485 } 486 487 if ( isset( $_POST['field_' . $field->id . '_month'] ) && $month != $_POST['field_' . $field->id . '_month'] ) { 488 if ( !empty( $_POST['field_' . $field->id . '_month'] ) ) 489 $month = $_POST['field_' . $field->id . '_month']; 490 } 491 492 if ( isset( $_POST['field_' . $field->id . '_year'] ) && $year != date("j", $_POST['field_' . $field->id . '_year'] ) ) { 493 if ( !empty( $_POST['field_' . $field->id . '_year'] ) ) 494 $year = $_POST['field_' . $field->id . '_year']; 495 495 } 496 496
Note: See TracChangeset
for help on using the changeset viewer.