Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 26 through 50 (of 5,698 total)
  • Author
    Search Results
  • #331455
    w-prog
    Participant

    Hi,
    I created a new custom field in Buddy Press : classement
    I would order my list member on this custom field
    I understood that I can add a new order type with :

    function custom_add_members_directory_order_options() {
    	?>
    	<option value="rang"><?php _e( 'Par rang', 'willy-bp-custom' ); ?></option>
    	<?php
    }
    add_action( 'bp_members_directory_order_options', 'custom_add_members_directory_order_options' );
    

    And ordering with this :

    
    add_action( 'bp_pre_user_query', 'custom_pre_user_query', 10, 1 );
    function custom_pre_user_query( $user_query = null ) {
    	global $wpdb;
    $user_query->uid_clauses['orderby'] = 'ORDER BY classement'; // Here is my new fields
    	$user_query->uid_clauses['order']   = 'DESC';
    }
    

    But I’m not sur hat the order instruction is correct because the fields’ name isn’t classement is database (cf tables bp_xprofile_date and bp_xprofile_field)
    Have you a solution for that please?
    Best regards

    #331306

    I’d like to get some of the xprofile fields in the initial WP new user form (for avoidance of doubt that’s this one: example.com/wp-admin/user-new.php)

    The reason is that my admins never complete the new user signup properly, even though they’re redirected to the extended profile page once the new account has been created!

    Is it possible?

    Thanks

    Peter

    #331183
    puzzld1
    Participant

    I have a members loop where I am trying to filter by an xprofile field. The codex shows the example that will return members that filled out the xprofile field ‘dogs’ and selected the value ‘poodles’:

    <?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>

    How would I write something that would give me members that filled out the xprofile field ‘dogs’ and selected ‘poodles’ OR ‘terriers’?

    #331105
    infodale
    Participant

    Hello:
    When I make modifications in the Profile fields of the Main Panel, the Information entered is not saved immediately, I must wait a few minutes or leave my page (end session) and enter again, just there I see the changes made, this is the same for any information you enter, including photographs. Could someone explain to me what the problem is? I imagine it will be a problem with the Database.

    #331077
    sunil1988lits
    Participant

    Hi,
    I have created a file upload type field for the user profile. Please see this screenshot here https://prnt.sc/o6u2KKYNiWxS
    But we also need some features as below:-
    1. Multi file upload.
    2. Max File Upload Size (2 MB)

    Can we do it with custom code or hook? Or do we need any paid extension?

    Thanks

    #331064
    sunil1988lits
    Participant

    Hi,
    I have created a file upload type field for the user profile. Please see this screenshot here https://prnt.sc/o6u2KKYNiWxS
    But we also need some features as below:-
    1. Multi file upload.
    2. Max File Upload Size (2 MB)

    Can we do it with custom code or hook? Or do we need any paid extension?

    Thanks

    #330514

    Topic: vCard

    derickc
    Participant

    Hi,

    Is it possible to allow users to download a vCard of their own and other user’s profiles?

    I have seen additional plugins that support this functionality but you can’t have custom fields in them.

    Thanks

    eluyawi
    Participant

    Hello everyone!!!
    I have installed BBPress and BuddyPress.

    When I only had BBPress, I was able to modify many fields in the BBpress profile, such as.
    – First name
    – Last name
    – Nickname
    – Bio
    @username
    – Username.

    Now, I have installed BBPress and BuddyPress, and I can’t find where these fields are to edit them so I can change their values. How can I put these BBPress fields in BuddyPress? Do I need a plugin?

    Thanks

    jb20147
    Participant

    The default Account Detail fields on the Registration page are not displaying properly. Any idea on how to fix this so they format the same way as the Profile Details section? You can see the issue on this page: https://staging.shoalmate.life/register/

    lbnn
    Participant

    Hello,

    I modified the profile-loop.php file some time ago to hide profile fields that are empty but my code doesn’t work anymore, has any change been done to the code some updates ago ?

    Here is what I modified :

    <h2 class="screen-heading view-profile-screen"><?php esc_html_e( 'View Profile', 'buddypress' ); ?></h2>
    
    <?php bp_nouveau_xprofile_hook( 'before', 'loop_content' ); ?>
    
    <?php if ( bp_has_profile('hide_empty_fields=0') ) : ?>
    
    	<?php
    	while ( bp_profile_groups() ) :
    		bp_the_profile_group();
    	?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
    
    			<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    
    				<h3 class="screen-heading profile-group-title">
    					<?php bp_the_profile_group_name(); ?>
    				</h3>
    
    				<table class="profile-fields bp-tables-user">
    
    					<?php
    					while ( bp_profile_fields() ) :
    						bp_the_profile_field('hide_empty_fields=0');
    					?>
    
    						<?php if ( bp_field_has_data() ) : ?>
    
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php elseif ( !bp_field_has_data() ) : ?>
    						
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php endif; ?>
    
    						<?php bp_nouveau_xprofile_hook( '', 'field_item' ); ?>
    
    					<?php endwhile; ?>
    
    				</table>
    			</div>
    
    			<?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    
    	<?php bp_nouveau_xprofile_hook( '', 'field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php
    bp_nouveau_xprofile_hook( 'after', 'loop_content' );
    

    Can someone help me to hode those fields again please 🙂

    #328315
    Paul Ryan
    Participant

    If anyone wants a filter to fix the case where a given user hasn’t edited their profile yet (and thus doesn’t have the bp_xprofile_visibility_levels user meta), resulting in all of their fields being visible:

    // Fix for BuddyPress not respecting the default xProfile field visibility
    // if a user has not yet edited their profile (and thus saving the user meta
    // <code>bp_xprofile_visibility_levels</code> for that user).
    // See: https://buddypress.org/support/topic/only-me-extended-profile-field-visible-to-all-users/
    // See: https://buddypress.trac.wordpress.org/ticket/8093
    add_filter( 'bp_xprofile_get_hidden_fields_for_user', function ( $hidden_fields, $displayed_user_id, $current_user_id ) {
    	if ( empty( $hidden_fields ) ) {
    		// Get the visibilities that should be hidden for the current user pair.
    		$hidden_field_types_for_user = bp_xprofile_get_hidden_field_types_for_user( $displayed_user_id, $current_user_id );
    		// Get the visibility defaults for all xProfile fields.
    		$default_visibility_levels = \BP_XProfile_Group::fetch_default_visibility_levels();
    		// Create the list of field IDs that should be hidden.
    		$hidden_fields = array_keys( array_filter(
    			$default_visibility_levels,
    			function ( $default_visibility_level ) use ( $hidden_field_types_for_user ) {
    				return empty( $default_visibility_level['default'] ) || in_array( $default_visibility_level['default'], $hidden_field_types_for_user, true );
    			}
    		) );
    	}
    
    	return $hidden_fields;
    }, PHP_INT_MAX, 3 );
    #328194

    Hi christy359,

    Thanks for this, we already have this installed. We also wanted to know if there was a way of adding two fields on the registration form where it doesn’t come up on the users profile as the client wants to log as their response was fraudulent or they didn’t attend.

    #328174

    In reply to: remove group privacy

    edensan
    Participant

    okay here is the php code for every privacy set to public:

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input checked type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    greetz Edwin

    #328170

    In reply to: remove group privacy

    edensan
    Participant

    okay i find this setting in:
    \bp-nouveau\buddypress\groups\single\admin\group-settings.php

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    so i commented everything out what i dont want.
    only thing is how can i select by default the last option?
    mabe someone can help me point in right direction?

    greetz Edwin

    #328155
    wackao
    Participant

    Heads up ! BP is currently not compatible with PHP 8.2

    Deprecated: Creation of dynamic property BP_Members_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_invitations is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_last_activity is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_optouts is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_signups is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$nav is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 213
    
    Deprecated: Creation of dynamic property BP_Members_Component::$invitations is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 232
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_data is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_groups is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_fields is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name_members is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name_groupmeta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_notices is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_messages is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_recipients is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Settings_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Course_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$actions is deprecated in wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 350
    
    Deprecated: Creation of dynamic property MemberTypes_Custom_Field::$bp_get_member_type_tax_name is deprecated in wp-content/plugins/vibebp/includes/class.membertypes.from.fields.php on line 29
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$capability is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 109
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$user_profile is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 115
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$current_user_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 118
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$user_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 121
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$is_self_profile is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 124
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$screen_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 127
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$stats_metabox is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 130
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_profile_args is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 133
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_profile_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 134
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 135
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 138
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$signups_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 139
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 140
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_screen is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 141
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$members_invites_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 143
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$subsite_activated is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 146
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$tools_parent is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 160
    
    Deprecated: Creation of dynamic property BP_Members_Component::$admin is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 78
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$admin is deprecated in wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-user-admin.php on line 38
    inderatech
    Participant

    I have a wp site with buddypress registration, and on the registration page the form has the ‘Account Details’ section, with the username, email, password & confirm password. Then it also has the buddypress profile section, with the fields name, birthday, etc etc. I don’t want the persons Name to be visible to the public. I can manage all the other profile fields visibility except for the default Name field and it is driving me crazy! Not sure if anyone has has this problem. please let me know.

    inderatech
    Participant

    On the registration page for my wp site, the registration form has the ‘Account Details’ section, with the username, email, password & confirm password. Then it also has the buddypress profile section, with the fields name, birthday, etc etc.

    I don’t want the persons name to be visible to the public, I want it to only be visible to the admins. I tried to go into Users->Profile Fields and change the ‘Name’, but it doesn’t give any options as I guess that’s the base / built in field? Not sure how to fix this, but it is super annoying!

    Could someone share advice on how to fix?

    #327803
    Pynet
    Participant

    Hello again,
    My customer now wants to filter members by zones, so I have created two different profile fields: for suppliers Zone1, for customers Zone2.
    Suppliers may have one or more zones, customers only one (that’s why creating two different profiles).
    I have tried to combine the code here https://buddydev.com/show-only-users-of-opposite-genders-on-buddypress-site/ with this other https://buddydev.com/support/forums/topic/filter-the-buddypress-members-in-the-list-of-members/, but I can’t find the way to make it work, neither including it inside the class nor from outside.
    Any idea?
    Thank you very much.
    Greetings and happy holidays!

    lblblb
    Participant

    We are using memberpress to create a membership site. We want to create a directory of members. When you click on the member’s name, it goes to their profile with all the information they entered at sign up displayed (things like their social media links, company they work for, etc). All of this information is collected and is stored under “membership information” in the profile section of WordPress. However, the buddypress generated profile page only shows the user’s name and photo if they have one.

    How can I customize the buddypress profile page to include all of these membership information fields?

    #327329
    wpbok
    Participant

    Hallo!
    I have started using Buddypress with a site that is English and German (via plugin qtranslate-xt). The language switching works fine on the frontend but does not for the backend.
    For example, the bp taxonomies (member type and group type) do not register on the backend with qtranslate-xt, so that I cannot easily switch between languages.
    Similarly, the profile fields have to be edited “raw” using language tags ([:en]English word[:de]German word[:]). I managed to get it working for some input fields via a i18n-config.json configuration file but dropdown options do not work yet.
    I was wondering if anything in the BuddyPress basic setup prevents backend language switching — it is especially strange for the taxonomies, which should work.
    If anyone has used qtranslate-xt and Buddypress, I would appreciate any help!

    honoluluman
    Participant

    Hello,

    I am using the xprofile_updated_profile hook to pass an action but i would like to know if it is possible to pass the action only when fields from one field group are getting updated.

    Somethink like:

    add_action( 'xprofile_updated_profile', 'my_action' ); 
    function my_action {
    if ( group of fields with id || group of fields with id ) {
    //do action
    } 

    I dont want to trigger my action when any of all fields is getting updated.

    Thank you for your help.

    #327311
    scottmotion
    Participant

    Full hijack the authentication flow (Login/Logout/Register/Forgot/Wrong/All Other): End user should never land on a WP login page. I have a mix of BP, bbp, and WP login pages depending on how the user interacts.

    reCAPTCHA during Registration: Should be core. Had to get the plugin from WBCom Designs

    Extended Profile Fields: Should be core. Had to get the plugin from BuddyDev

    User Menu: Username and Avatar. Conditional menu items. I had to use the “User Menus” plugin by Code Atlantic

    Use the username as display name: Had to code this myself.

    Disable Full Name field: Custom code again.

    Set default notification preferences: More code.

    Remove specific accounts from public member list: Really want to hide the admin! More code.

    Remove tabs from user profile: More code.

    Redirect WP Author to BP Profile: teh codez.

    #327223
    uniharufes
    Participant

    Hi,

    Can I get a warning if the name in the Profile Fields is the same as someone else’s?

    #327219
    lpb93
    Participant

    Hello! How do I exclude specific member profile fields (that are viewable by everyone) from the standard search function?

    I am using bp version 10.6.0

    #327193
    venurebbala
    Participant

    Hello,

    I am new to WordPress and Buddypress.

    I have installed a metafans theme into WordPress v6.1 with BuddyPress v 10.6.0 plugin.

    I have added extended profile fields using the tool. However, I am not able to see any of these fields in View Profile section but can see the same in Edit section.

Viewing 25 results - 26 through 50 (of 5,698 total)
Skip to toolbar