Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,101 through 1,125 (of 5,755 total)
  • Author
    Search Results
  • #260277
    danbp
    Participant

    It relate to this filter bp_get_profile_field_data

    This example will hide tabs and fields to all except admin

    function bpfr_hide_profile_field_group( $retval ) {
    	if ( bp_is_active( 'xprofile' ) ) :	
    	
    	// hide profile group/field to all except admin	
    	if ( !is_super_admin() ) {		
    		//exlude fields, separated by comma
    		$retval['exclude_fields'] = '1';  
    		//exlude groups, separated by comma
    		$retval['exclude_groups'] = '3'; 			
    	} 
    	return $retval;		
    	
    	endif;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );

    These tricks hide the tab content, not the tab itself. (it seems that it doesn’t work for groups at the moment…i asked devs for information) Use CSS display:none to hide the tab or consider this plugin.

    bazingauser
    Participant

    Hi guys,

    I would like to ask how to enlarge the text which appears on all of the buttons in profile fields and in the registration form. /especially the description underneath of each field (this one is absolutely tiny)Since originally it is quite small and anyone having difficulties with the vision will struggle.
    Please advise. Thanks

    #260243
    danbp
    Participant

    Sorry for the outdated trick.
    bp_is_profile_edit is deprecated in favor of bp_is_user_profile_edit.

    Check for the outdated fn in the plugin mentionned in the error msg.
    In case of, here a tutorial with more options.

    #260210
    danbp
    Participant

    – Single profile page. From show tab and from EDIT tab (see snippet)

    – From dashboard profile edit page: not possible – normally BP users shouldn’t have access to profile dashboard. They can manage their profile from front-end.

    – From custom profile fields. (see snippet)
    – From tabs every where. (see snippet)

    Almost any described areas, as example

    function bpfr_hide_profile_edit( $retval ) {	
    	// remove field from edit tab
    	if(  bp_is_profile_edit() ) {		
    		$retval['exclude_fields'] = '54'; // ID's separated by comma
    	}	
    	// allow field on register page
    	if ( bp_is_register_page() ) {
    		$retval['include_fields'] = '54'; // ID's separated by comma
    		}		
    	
    	// hide the field on profile view tab
    	if ( $data = bp_get_profile_field_data( 'field=54' ) ) : 
    		$retval['exclude_fields'] = '54'; // ID's separated by comma	
    	endif;	
    	
    	return $retval;	
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_edit' );
    #260209
    Jek-fdrv
    Participant

    wp v4.6.1
    bp v2.7.0
    Theme: Twenty Sixteen
    Cant provide link, it is on my local.
    I am web developer.

    Hello, I would like to ask you about xprofile fields for users.
    I have add 2 profile fields groups, with fields.
    Right now I am wondering if it is possible to hide them from:
    Single profile page. From show tab and from EDIT tab.
    From dashboard profile edit page.
    From custom profile fields.
    From tabs every where.

    I have tried to use this code:
    function bpfr_hide_profile_field_group( $retval ) {
    $retval[‘exclude_groups’] = ‘0,1,2’;
    return $retval;
    }
    It hide fields only from show on single profile page but not from edit.
    Thank you very much.
    Very appreciate your help.

    #260207
    metalhead
    Participant

    This issue is resolved.

    The problem was with Buddydev’s Conditional Profile Fields plugin. For me, to fix the problem, I figured out that I had to set all conditional fields to unconditional, then make any necessary changes to the profile fields, then when satisfied, go back and set the conditional statements, then the problem of not being able to save was gone.

    #260175
    Jason
    Participant

    @bramdehaan, if you go to Users > Profile Fields, then click Edit next to the date field you want to fix, you can select one of the two options in Range and fill in the values you want (this is for the years that will be displayed).

    #260140
    bid9jafd
    Participant

    @danbp

    Thanks again.

    I’d missed the second example, but, unfortunately, it doesn’t solve the issue.

    If not enough, you use CSS display:none; for the BASE markup on profile edit tab.

    I attempted to do this but I’m unable to target the BASE group without also affecting the USER INFO group

    I noticed, too, that the “hide fields or field group to members, but not to site admin” code was preventing user registrations from going through, for some reason. It was quickly redirecting users to the home page, rather than a success or failure message page, when they clicked on the “complete sign up” button.

    I think what I’ll have to do is put all fields in the BASE group & go with what @shanebp suggested in the thread I linked in my first post. & hope that potential subscribers aren’t put off by the registration form.

    #260127
    Jason
    Participant

    Looks like the update introduced some bugs with Extended Profile fields, visibility defaults, and registration page that were previously working. Either that, or something did not update correctly.

    I was just showing my neighbor the new site for our community, and the registration page was working fine. Then, I was showing her plugins when I noticed there was an update available for Buddypress (I just installed it a few days ago). So, I hit update. New version says 2.7.0. BUT, we go back to registration page so she can try it out… several problems now exist.

    1) yellow buttons to “Change” field visibility are all gone on registration page. Default value allows users to make changes to the visibility. Visitors cannot change visibility on registration page anymore after update.

    2) Date field got reset somehow with only 2016 and no other years. I was able to reset it by picking year range, but it should not get reset when updating plugin.

    3) Extended profile fields do not respect master default value. For instance, I have “Only Me” set by default for many fields, but once a new user registers these profile fields are publicly viewable by everyone. User is able to go in and change them, but they should respect the default setting as before.

    Website: cathollowcondos.com

    #260074
    joeaj111
    Participant

    I’m new to buddypress. I went through every step setting up buddypress made sure the allow register box was checked, made my pages, went to user -? profile fields. i click on view beside register in bp settings and it displays my homepage. if i type in the url does same thing. how do i get it to show?

    #260069
    bid9jafd
    Participant

    Hi @danbp,

    Thanks for your reply.

    I tried that & the outcome was the same, ie the fields are hidden but the ‘Base’ profile group field is the same, like this

    I guess a solution would be to put all fields in the ‘Base’ group & delete the “User Info” group, but this would mean that all fields would show up on registration (albeit, not all ‘required’). This is something I wanted to avoid, as I want to make it as quick & easy as possible for visitors to sign up – I don’t want to overwhelm them on sight of the registration form.

    romanzy
    Participant

    I’m creating with Extended Profile Fields a multiple field select box (checkbox or radiobuttons). But seems that the text input is limited to 150 characters for each offered selection phrase. Is there a way to lift or extend this limitation via a snippet in bp-custom.php?

    Thanks for the help.

    #260016
    ggagnerivard
    Participant

    Hello.
    I created two customs register-form.php that show different field groups. I want to change to user role to s2member_level1 after the activation if they used the second register-form. I have tried some other example on this site with no luck.

    here is the php of the register-form :<form action=”<?php echo bp_get_signup_page();?>” name=”signup_form” id=”signup_form” class=”standard-form” method=”post” enctype=”multipart/form-data”>

    <?php if ( ‘registration-disabled’ == bp_get_current_signup_step() ) : ?>
    <?php do_action( ‘template_notices’ ); ?>
    <?php do_action( ‘bp_before_registration_disabled’ ); ?>

    <p><?php _e( ‘User registration is currently not allowed.’, ‘buddypress’ ); ?></p>

    <?php do_action( ‘bp_after_registration_disabled’ ); ?>
    <?php endif; // registration-disabled signup step ?>

    <?php if ( ‘request-details’ == bp_get_current_signup_step() ) : ?>

    <?php do_action( ‘template_notices’ ); ?>

    <p><?php _e( ‘Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.’, ‘buddypress’ ); ?></p>

    <?php do_action( ‘bp_before_account_details_fields’ ); ?>

    <div class=”register-section” id=”basic-details-section”>

    <?php /***** Basic Account Details ******/ ?>

    <h4><?php _e( ‘Account Details’, ‘buddypress’ ); ?></h4>

    <div class=”newline”><label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_username_errors’ ); ?>
    <input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” <?php bp_form_field_attributes( ‘username’ ); ?>/>
    </div>

    <div class=”newline”><label for=”signup_email”><?php _e( “Adresse courriel (votre nom d’usager) :”, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_email_errors’ ); ?>
    <input type=”email” name=”signup_email” id=”signup_email” value=”<?php bp_signup_email_value(); ?>” <?php bp_form_field_attributes( ’email’ ); ?>/>
    </div>

    <div class=”newline”><label for=”signup_password”><?php _e( ‘Créez un mot de passe (6 à 8 caractères) :’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_errors’ ); ?>
    <input type=”password” name=”signup_password” id=”signup_password” value=”” class=”password-entry” <?php bp_form_field_attributes( ‘password’ ); ?>/>
    <div id=”pass-strength-result”></div>
    </div>

    <div class=”newline”><label for=”signup_password_confirm”><?php _e( ‘Confirmation du mot de passe :’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_confirm_errors’ ); ?>
    <input type=”password” name=”signup_password_confirm” id=”signup_password_confirm” value=”” class=”password-entry-confirm” <?php bp_form_field_attributes( ‘password’ ); ?>/>
    </div>

    <input type=”hidden” name=”user_type” id=”user_type” value=”your_role” />

    <?php do_action( ‘bp_account_details_fields’ ); ?>

    </div><!– #basic-details-section –>

    <?php do_action( ‘bp_after_account_details_fields’ ); ?>

    <?php /***** Extra Profile Details ******/ ?>

    <?php if ( bp_is_active( ‘xprofile’ ) ) : ?>

    <?php do_action( ‘bp_before_signup_profile_fields’ ); ?>

    <div class=”register-section” id=”permanent-details-section”>

    <?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
    <?php if ( function_exists( ‘bp_has_profile’ ) ) : if ( bp_has_profile( ‘profile_group_id=1’ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”></span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <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() ?>” />
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘textarea’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <textarea rows=”5″ cols=”40″ name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_edit_value() ?></textarea>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘selectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘multiselectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” multiple=”multiple”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘radio’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”radio”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    <span class=”clear-link”>‘ );”><?php _e( ‘Clear’, ‘buddypress’ ) ?></span>
    <?php endif; ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘checkbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”checkbox”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘datebox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <!–<div class=”datebox”>–>
    <label for=”<?php bp_the_profile_field_input_name() ?>_day”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>_day” id=”<?php bp_the_profile_field_input_name() ?>_day”>
    <?php bp_the_profile_field_options( ‘type=day’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_month” id=”<?php bp_the_profile_field_input_name() ?>_month”>
    <?php bp_the_profile_field_options( ‘type=month’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_year” id=”<?php bp_the_profile_field_input_name() ?>_year”>
    <?php bp_the_profile_field_options( ‘type=year’ ) ?>
    </select>
    <!–</div>–>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
    <?php endwhile; endif; endif; ?>
    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
    <input type=”hidden” name=”user_type” id=”user_type” value=”your_role” />
    </div>

    <div class=”register-section” id=”candidats-details-section”>

    <?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
    <?php if ( function_exists( ‘bp_has_profile’ ) ) : if ( bp_has_profile( ‘profile_group_id=2’ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”></span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <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() ?>” />
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘textarea’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <textarea rows=”5″ cols=”40″ name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_edit_value() ?></textarea>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘selectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘multiselectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” multiple=”multiple”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘radio’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”radio”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    <span class=”clear-link”>‘ );”><?php _e( ‘Clear’, ‘buddypress’ ) ?></span>
    <?php endif; ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘checkbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”checkbox”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘datebox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <!–<div class=”datebox”>–>
    <label for=”<?php bp_the_profile_field_input_name() ?>_day”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>_day” id=”<?php bp_the_profile_field_input_name() ?>_day”>
    <?php bp_the_profile_field_options( ‘type=day’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_month” id=”<?php bp_the_profile_field_input_name() ?>_month”>
    <?php bp_the_profile_field_options( ‘type=month’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_year” id=”<?php bp_the_profile_field_input_name() ?>_year”>
    <?php bp_the_profile_field_options( ‘type=year’ ) ?>
    </select>
    <!–</div>–>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
    <?php endwhile; endif; endif; ?>
    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
    </div>

    <?php do_action( ‘bp_after_signup_profile_fields’ ); ?>

    <?php endif; ?>

    <?php if ( bp_get_blog_signup_allowed() ) : ?>

    <?php do_action( ‘bp_before_blog_details_fields’ ); ?>

    <?php /***** Blog Creation Details ******/ ?>

    <div class=”register-section” id=”blog-details-section”>

    <h4><?php _e( ‘Blog Details’, ‘buddypress’ ); ?></h4>

    <p><input type=”checkbox” name=”signup_with_blog” id=”signup_with_blog” value=”1″<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes, I\’d like to create a new site’, ‘buddypress’ ); ?></p>

    <div id=”blog-details”<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class=”show”<?php endif; ?>>

    <label for=”signup_blog_url”><?php _e( ‘Blog URL’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_blog_url_errors’ ); ?>

    <?php if ( is_subdomain_install() ) : ?>
    http:// <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” /> .<?php bp_signup_subdomain_base(); ?>
    <?php else : ?>
    <?php echo home_url( ‘/’ ); ?> <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” />
    <?php endif; ?>

    <label for=”signup_blog_title”><?php _e( ‘Site Title’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_blog_title_errors’ ); ?>
    <input type=”text” name=”signup_blog_title” id=”signup_blog_title” value=”<?php bp_signup_blog_title_value(); ?>” />

    <span class=”label”><?php _e( ‘I would like my site to appear in search engines, and in public listings around this network.’, ‘buddypress’ ); ?></span>
    <?php do_action( ‘bp_signup_blog_privacy_errors’ ); ?>

    <label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_public” value=”public”<?php if ( ‘public’ == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes’, ‘buddypress’ ); ?></label>
    <label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_private” value=”private”<?php if ( ‘private’ == bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘No’, ‘buddypress’ ); ?></label>

    <?php do_action( ‘bp_blog_details_fields’ ); ?>

    </div>

    </div><!– #blog-details-section –>

    <?php do_action( ‘bp_after_blog_details_fields’ ); ?>

    <?php endif; ?>

    <?php do_action( ‘bp_before_registration_submit_buttons’ ); ?>

    <div class=”submit”>
    <input type=”submit” name=”signup_submit” id=”signup_submit” value=”<?php esc_attr_e( ‘Sauvegarder mes infos’, ‘buddypress’ ); ?>” />
    </div>

    <?php do_action( ‘bp_after_registration_submit_buttons’ ); ?>

    <?php wp_nonce_field( ‘bp_new_signup’ ); ?>

    <?php endif; // request-details signup step ?>

    <?php if ( ‘completed-confirmation’ == bp_get_current_signup_step() ) : ?>

    <?php do_action( ‘template_notices’ ); ?>
    <?php do_action( ‘bp_before_registration_confirmed’ ); ?>

    <?php if ( bp_registration_needs_activation() ) : ?>
    <p><?php _e( ‘You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.’, ‘buddypress’ ); ?></p>
    <?php else : ?>
    <p><?php _e( ‘You have successfully created your account! Please log in using the username and password you have just created.’, ‘buddypress’ ); ?></p>
    <?php endif; ?>

    <?php do_action( ‘bp_after_registration_confirmed’ ); ?>

    <?php endif; // completed-confirmation signup step ?>

    <?php do_action( ‘bp_custom_signup_steps’ ); ?>

    </form>

    Any ideas? Also I don’t want to use another pluggins and I don’t want to give the user the option of choosing his user role. Thank you in advance.

    #259983
    bid9jafd
    Participant

    Hi,

    I want to hide the entire Base Profile Field Group on my site.

    I have followed the steps outlined by @shanebp in this topic &, while the Base Profile Fields have been hidden, the tab for the Group is still visible.

    I have posted a screenshot of the issue here.

    I want just the profile group ‘user info’ to be visible & editable.

    I’m using the Kleo theme – version 4.1.5, WordPress 4.6.1.

    I’d greatly appreciate some help.

    alexlii
    Participant

    Hello,

    I am using Mycred in my Buddypress sites, and grant BP members more points to encourage them to share their referring links, but which is a hidden link to any other users including a visitor by default although the balance of members are visible to visitor by default, which is not mobile friendly since buddypress member always share the pages and it is not possible to ask them copy and paste the referring link like PC mode.

    So I try to change the roles capability and custom that mycred referring link to be visible to everyone whoever is login or not, but I failed.

    Any ways to custom fields in profile? comments would be greatly appreciated, thanks.

    Alex

    #259959
    livingflame
    Participant

    I know that Buddypress is a good growing project, but, needs very Important Native (by Default) features.

    1) Buddypress Block User (allow users to block other users –– really allow to hide your info, activities, etc. for a specific @user-1 e.g, auto-unfriend, no more messages from the blocked. This feature integrated with rtMedia too).
    OR FOR NOW: Buddypress Report User (with Custom Motives, p. ej. “@user-1 is sending me hateful messages”, “@user-2 published an annoying activity”). So, Admin can to impose a Sanction for @user-1, e. eg. 7 days without Post, 15 days without Sending Messages… or Community Expulsion -–> Block, Delete, Banned Email). Admin can too, to Sent a Message (previously edited for auto ms saying: @user-1 you are banned for…. 30 days. Sincerely the Admins).

    * Buddypress CONFIRM Account immediately after Sign Up.

    A Social or Community without this Function is Nothing. PLEASE!!

    2) Buddypress Chat (too, Message Template, to read Messages in a specific page).

    3) Buddypress Message with Attachments.

    4) Buddypress Global Search.

    5) Buddypress Custom Menu with Account Alerts (e. g. https://goo.gl/reojsE ). Yes. I know, if you go to WP Menus, you can add to your Navbar or Menu – Profile, Activity, Notifications, etc. BUT WITHOUT Bubbles or Account Alerts… That is very very Impractical.

    6) Buddypress Media (yes I know, we have rtMedia, but its add-ons are very expensive. The complete pack = US$500 more or less).

    7) Buddypress Follow/er Native.

    8) Buddypress Share (from activity).

    9) Buddypress Autocomplete Fields (for a specific text area, e. g. City: New York, Fruits: Apple, etc.), Range Fields (e. g. I’m searching friends from 20 to 21). Buddypress Birthdate normal, but, with an option to show only the Age! 10) Buddypress Advance Search. With this you can create an advance Form with Fields for Show on Members Page or in a Widget.

    11) Buddypress with Ads Area (inside Activity, Groups, Members and Forums). (Optional from Buddypress Option Panel)

    12) Buddypress More Customizable. >> A button over Cover Profile for Easy Photo Change (yes, like Facebook has)… The CPanel with MORE Options… MORE Options for: Profile / Settings / Profile Visibility and PRIVACY!!

    For now is all. Thanks!

    @johnjamesjacoby
    @djpaul
    @boonebgorges
    @imath
    @mercime
    @hnla
    @tw2113

    #259937
    Antipole
    Participant

    On my site I have a members directory tab. Users can enter a search term in the Search Members… field to find those members with the search term.

    However, I am seeing occasional false positives, i.e. a member is being returned who does not have the search term. For example, if you search on south, the last user listed Paul does not have south anywhere in his profile.

    I have tried switching to a standard theme Twenty Sixteen – no different. I have removed all plugins except BuddyPress and still the same. I have combed the errant profile using the backend and cannot find the string anywhere.

    NB1 Some of the extended profile fields on this site are not publicly visible. I know that the search finds profiles regardless of permissions but it then displays the profile without the private information. But, in the instances I am seeing, the found term does not exist at all – at least I cannot find it as admin looking in the user’s profile in the backend.

    Any suggestions, anyone?

    NB2. My test site has several plugins that might cause this issue, but I have demonstrated it to be present with only BuddyPress active.

    WordPress 4.6.1; BuddyPress 2.6.2; bbPress 2.5.10

    metalhead
    Participant

    Hello awesome Buddypress people,

    I need help finding a way to make all the field text boxes in the Buddypress registration process a uniform size. I want to do this simply to make the registration form look great.

    Currently, the “Username,” “Password,” and “Confirm Password” boxes are all the same size, and are an adequate size, however, the “Email Address” box is shorter than the rest, which isn’t ideal, because email addresses tend to be longer than usernames & passwords, and it just doesn’t look right this way.

    Here’s a link to my registration page.

    I’m assuming that the email box can be adjusted to match the size of the other boxes with some simple css, but I just don’t know enough about CSS yet to implement this on my own.

    As for the other profile field boxes, they are all products of the BP Xprofile Custom Fields plugin, and I will ask the developers of that plugin for help matching those boxes up as well, but I wanted to ask for help with the email box here first, because maybe I can use your advice to tackle the other boxes as well.

    I’m using WP v4.6.1, BP v2.6.2, I’ve got WP installed in my root directory. I’m using BP Xprofile Custom Fields, Conditional Profile Fields for BP, BP xProfile Location, and Graphene Theme. (Just to give you some background on what’s involved here.)

    Thanks in advance for any suggestions.

    #259824
    bcanr2d2
    Participant

    My install has stopped sending any emails out for new user activation.
    I can receive emails sent by WordPress after a user is manually activated, and can receive any email from Postman SMTP, as these test emails work.

    I don’t use any other activity markers, but emails were not received when messages were sent either.

    I have tried all of the listed troubleshooting steps that others have gone through before.

    I have a custom function that creates a post for the user during the registration process. I have removed all custom functions and tried registering a user, and it still will not send any emails.

    As BuddyPress uses it’s own PHP Mailer, I am not able to log them via any WP Mail logging tools, and want to see what might be going on here.
    The problem reared its head around the time I upgraded to 2.6 (although the custom function during registration was also added at this time) as well

    I have reset the emails multiple times, and I have not made any changes to them.

    Could someone please provide assistance, or given me a suggestion on how to run the BP Email Debug code to get an email of any issues

    Host is Bluehost

    Here is my install, and plugin list

    WordPress 4.5.4
    BuddyPress 2.6.2
    Advanced Custom Fields 4.4.10
    Akismet 3.1.11 (inactive)
    BackWPuP 3.3.4
    BP Force Profile Photo 1.0.5
    BP Member Type Manager 1.0.1 (inactive)
    BP xProfile Location 1.2
    BP XProfile WordPress User Sync 0.6.4
    Broken Link Checker 1.11.2
    Buddy Progress Bar 1.0.2
    BuddyPress Conditional Field Groups 0.1.0
    Buddypress Conditional Profile Field 2.0
    Buddypress Geodirectory Integration 1.0.0 (inactive)
    BuddyPress Member Type Generator 1.0.2
    BuddyPress Profile Tabs 1.6.1
    BuddyPress Security Check 2.1.2
    BuddyPress Simple Terms And Conditions 1.3
    BuddyPress Xprofile Custom Fields Type 2.5
    BuddyPress Xprofile Member Type Field 1.0.4
    Cherry Parallax Plugin 1.0.0 (for my theme)
    Cherry Plugin 1.2.8.1 (for my theme)
    Conditional Profile Fields for BuddyPress 1.1.9
    Contact Form 7 4.5
    Contact Form 7 – Dynamic Text Extension 2.0.1
    Custom Hooks 1.0 (All my custom functions are in this plugin)
    Custom Login 3.2.5
    Custom Post Template By Templatic 1.0
    Custom Post Type UI 1.4.1
    Disable Comments 1.5.2
    Display Posts Shortcode 2.7.0
    Easy Parallax Slider 2.1.1
    FacetWP 2.6.4
    GEO my WP 2.6.6.1
    GeoDirectory 1.6.5 (inactive)
    Hello Dolly .1.6 (inactive)
    MOJO Marketplace 1.0.1 (inactive)
    MotoPress Content Editor Lite 1.6.5 (inactive)
    Quick and Easy FAQs 1.0.3
    SuitePlugins – Advanced XProfile Fields for BuddyPress 1.0.3
    Super Socializer 7.8.1
    WP Private Content Plus 1.11
    WPFront User Role Editor 2.12.4
    Yoast SEO 3.5

    #259730
    grexi126
    Participant

    Hey there! 🙂

    If a user registeres on my site I would like an email containing all the profile fields the user filled out to be sent out to a specific email adress. The Person receiving this mail can then check the information and activate the account.

    The User should not receive an activation mail – or at least not the activation link.

    Can you guys help me?

    Cheers

    #259727
    metalhead
    Participant

    I’m using a plugin called Buddypress Xprofile Custom Fields Type.

    If I edit a profile field, Buddypress begins to malfunction by not letting a new user save his info entered into the register.php form.

    So if I delete all my profile fields, and then re-create them, Buddypress will begin to function properly again, but, then I create custom profile search widgets with a plugin called “Buddypress Profile Search,” and then the problem starts again. (User can’t save the data he entered. Registration page just refreshes.)

    #259689
    lesanis
    Participant

    Hello danbp,

    I have tried all the following but no luck…

    function value_field_remove_html_filter() {
    	remove_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'value_field_remove_html_filter' );
    
    function edit_value_field_remove_html_filter() {
    	remove_filter ( 'bp_get_the_profile_field_edit_value',      'wp_filter_kses',       1 );
    }
    add_action( 'bp_init', 'edit_value_field_remove_html_filter' );
    
    function data_field_remove_html_filter() {
    	remove_filter ( 'xprofile_get_field_data',                  'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'data_field_remove_html_filter' );
    
    function data_value_before_save_remove_html_filter() {
    	remove_filter( 'xprofile_data_value_before_save',          'xprofile_sanitize_data_value_before_save', 1, 4 );
    }
    add_action( 'bp_init', 'data_value_before_save_remove_html_filter' );
    
    function value_2_field_remove_html_filter() {
    	remove_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'value_2__field_remove_html_filter' );
    
    function options_before_save_field_remove_html_filter() {
    	remove_filter( 'xprofile_field_options_before_save', 'bp_xprofile_sanitize_field_options' );
    }
    add_action( 'bp_init', 'options_before_save_field_remove_html_filter' );
    
    function default_before_save_field_remove_html_filter() {
    	remove_filter( 'xprofile_field_default_before_save', 'bp_xprofile_sanitize_field_default' );
    }
    add_action( 'bp_init', 'default_before_save_field_remove_html_filter' );
    

    I have managed to remove the html filter for Name and Description but I am not able to do the same for Xprofile fields what is that I need. Do you have any suggestions?

    #259673
    lesanis
    Participant

    Hello,

    I need to create a dropdown checkbox list in xprofile fields where each checkbox will be html link. How could I do that? I have found this function but unfortunately does not work

    function stuff_i_want_triggered_after_bp_loads(){
    
    remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 );
    
    }
    
    add_action('wp', 'stuff_i_want_triggered_after_bp_loads'); 

    Could you please help me?

    Thank you!

    #259651
    BGRATED
    Participant

    Hi guys… I know this is a bit old.
    I would LOVE to have it as this.
    name – gender – age – city | MyWebsite.com

    I use the extended profile fields (gender) <- drop down pick only one., (Birthday) as primary and (city) text box.

    All are primary and required. I had something like this before (not buddypress) and I found the search results awesome.

    Thank you if anyone could help.
    The above code works like a charm.

    kida18
    Participant

    Hello!

    I would like to restrict the registration on my site to only a specific email domain, and only if the member type is X.
    My registration form includes the basic name/email/password fields as well as the buddypress base group fields, where the user can choose the member type (set up with plugin BuddyPress Xprofile Member Type Field).

    Browsing around I found the following code to validate the email domain:

       function is_valid_email_domain($login, $email, $errors ){
     $valid_email_domains = array("gmail.com","yahoo.com");// whitelist email domain lists
     $valid = false;
     foreach( $valid_email_domains as $d ){
     $d_length = strlen( $d );
     $current_email_domain = strtolower( substr( $email, -($d_length), $d_length));
     if( $current_email_domain == strtolower($d) ){
     $valid = true;
     break;
     }
     }
     // if invalid, return error message
     if( $valid === false ){
     $errors->add('domain_whitelist_error',__( '<strong>ERROR</strong>: you can only register using @gmail.com or @yahoo.com emails' ));
     }
    }
    add_action('register_post', 'is_valid_email_domain',10,3 );

    1) I tried replacing $valid_email_domains = array("gmail.com","yahoo.com"); with $valid_email_domains = (".edu"); but it didn’t work – I guess I should add a variable before it, to precise anything.edu as a valid domain? In a function, what would be the way to pass the “anything” argument? (I apologize if I don’t use the proper terms)
    Would it be “” ?

    2) I’ve tried checking how I could add one more validation argument, but I’m a bit lost.
    After checking around and in the register.php, I guess I should use something like :

    $membertype = $_POST ( 'type' => 'recruiter' )
     foreach( $membertype as $membertype ) {

    So, perhaps something like

    function is_valid_email_domain($login, $email, $membertype, $errors ){
     $membertype = $_POST ( 'type' => 'recruiter' )
     foreach( $membertype as $membertype ) {
    I don't know what to put here - how to link both arguments "if member type is "recruiter" and if email domain belong to the whitelist then proceed, if not give an error message"
        $valid_email_domains = (""".edu");// whitelist
        $valid = false;
        foreach( $valid_email_domains as $d ){
    	    $d_length = strlen( $d );
            $current_email_domain = strtolower( substr( $email, -($d_length), $d_length));
            if( $current_email_domain == strtolower($d) ){
                $valid = true;
                break;
            }
        }
        // if invalid, return error
        if( $valid === false ){
            $errors->add('domain_whitelist_error',__( '<strong>ERROR</strong>: you can only register using your .edu email address' ));
        }
    }
    
    add_action('register_post', 'is_valid_email_domain',10,3 );

    I’m probably completely wrong, I don’t know how to code, I’ve just tried putting several things I found together..but if someone has an idea on how I could make it work I would be very grateful

Viewing 25 results - 1,101 through 1,125 (of 5,755 total)
Skip to toolbar