Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 51 through 75 (of 4,112 total)
  • Author
    Search Results
  • #332855
    Varun Dubey
    Participant

    You can add new profile fields from the backend settings for user profiles like age, location, and bio https://codex.buddypress.org/administrator-guide/extended-profiles/

    For media support, you can use https://wordpress.org/plugins/bp-attachments/ plugin.

    #332532
    philsalt123
    Participant

    Certainly! If you’re looking to optimize member profiles on a BuddyPress-powered website for search engines (SEO), you might want to consider the following response:

    Hello there,

    Optimizing member profiles on BuddyPress for SEO is a crucial step to enhance visibility on search engines. Here are some tips to ensure your member profiles are search engine friendly:

    Complete and Relevant Profile Information:
    Encourage members to fill out their profiles thoroughly. Include key information, such as a brief bio, interests, and any relevant links. Search engines often prioritize pages with comprehensive content.

    SEO-Friendly Usernames and Display Names:
    Suggest to members that they choose usernames and display names that are relevant to their identity or interests. This can contribute to better search engine visibility.

    Enable SEO-friendly Permalinks:
    Check your BuddyPress settings and ensure that your permalinks are set up in a way that includes relevant keywords. This helps search engines understand the content of the profile pages.

    Utilize BuddyPress Custom Fields:
    BuddyPress allows you to add custom fields to member profiles. Use these fields to gather additional information that might be relevant for search engine optimization. This could include skills, locations, or any other pertinent details.

    Encourage User-Generated Content:
    User-generated content, such as forum posts or activity updates, can contribute to the overall SEO of the website. Encourage members to engage with the community and share valuable content.

    Implement OpenGraph and Twitter Card Tags:
    Add OpenGraph and Twitter Card meta tags to member profile pages. This enhances how the profile appears when shared on social media platforms, indirectly impacting SEO.

    Mobile Optimization:
    Ensure that member profiles are optimized for mobile devices. Google considers mobile-friendliness as a ranking factor, and a responsive design is crucial for SEO.

    Regularly Update BuddyPress:
    Keep your BuddyPress installation up-to-date. Updates often include improvements and bug fixes that can indirectly impact SEO.

    Remember, SEO is an ongoing process, and monitoring analytics can provide insights into what is working and what can be improved.

    #332504
    rajibjoshi
    Participant

    Hi,
    I’ve built a custom user profile page using JetEngine. Is there a way to redirect visitors who click the “Profile” button on a BuddyPress profile page to my custom page, displaying their profile information?

    or please guide me as to how I can access buddypress all Meta_fields from Elementor ? Because i want to design my own profile page layout.

    Thanks in Advance

    Rajib

    #332449

    In reply to: Viewing other profiles

    alexhales123
    Participant

    To enable users to view other profiles on BuddyPress:

    1. **Install and Activate BuddyPress:**
    Make sure you have installed and activated the BuddyPress plugin on your WordPress site.

    2. **Check Privacy Settings:**
    Ensure that users’ profile privacy settings allow their profiles to be viewed by others. Users can control this setting in their profile settings.

    3. **Activate Extended Profiles:**
    Enable the “Extended Profiles” component in the BuddyPress settings to allow additional fields and information on user profiles.

    4. **Verify Theme Compatibility:**
    Confirm that your WordPress theme is compatible with BuddyPress to ensure proper display of profile information.

    5. **Check User Roles:**
    Verify that users attempting to view profiles have the necessary capabilities. By default, registered users should be able to view other registered users’ profiles.

    6. **Use BuddyPress Widgets/Shortcodes:**
    Utilize BuddyPress widgets and shortcodes to display member directories and user lists. Refer to the BuddyPress documentation for guidance on implementing these features.

    7. **Review BuddyPress Documentation:**
    Consult the official BuddyPress documentation for any specific settings or features related to profile viewing.

    By following these steps, you should enable users to view other profiles seamlessly on your BuddyPress-enabled WordPress site.

    #332238
    bastibln
    Participant

    Hey,

    there seems to be something not working properly, independent from the theme I am using and with having no plugins activated at all:

    When I enter my First and Last Name in the usual User -> Profile Dashboard from WordPress, ervything is fine. Let’s assume I choose a Nickname as well:

    First Name: Tom
    Last Name: Train
    Nickname: Tommy

    In the Public Name dropdown, I choose ‘Tommy’.
    Save it.

    Now I already have created some additional profile fields, like the gender.
    If I change my data there now, from option 1 to option 2, and I save it, and I go back to the first “Profile” tab within the WordPress Dashboard, all my name declarations are gone, except Tommy.

    Is this a known problem for someone?

    vasilkovsky
    Participant

    Hello guys.
    I’m working on creating users based on data from API response and everything is working fine, but I noticed database errors in debug.log, investigated and found it was related to wp_create_user() and bp_core_map_user_registration() conflict. bp_core_map_user_registration() hooked into user_register and is working with xprofile fields and leads to Warning: Undefined property: BP_XProfile_Component::$table_name_data and WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘.
    Commenting this action resolved issue.
    Any ideas how to fix this? Because 4 WordPress database error for 1 user creation is too much, and one API cycle is creating 100 users on my website..

    #331934
    lucasfpaixao
    Participant

    UPDATE

    After a lot of time trying to thoubleshoot this problem, I noticed a new error message after hit Update Profile:

    “Invalid ‘name of the field’ Please enter a valid URL”

    So, I went to that field and cleared. Now I can edit any other fields.

    But, the update process is very slow. There is a LOT of delay after hitting the Update Profile button.
    It fells like the database is having some issues I cannot identify.

    What can I do to improve the mySQL database? I have a felling it is very big due past activity and leftovers trying other plugins.

    #331933
    lucasfpaixao
    Participant

    Hi, I need help to find out why “Extended Profile” fields cannot be editted (I think you guys call it “xprofile”).

    I can type on the fields normally, but it does not actually save the data after hitting “Update Profile” button.

    I’m dealing with this for two days. I already searched online but I cannot find anything useful for this case. I’m afraid I’m out of ideas.

    Here’s what I already tried:

    The system uses an external mySQL on a VPS server and the WordPress files are hosted in another web server.
    I was dealing with lots of “Got an error writing communication packets” found in the error.log of the mysql server. The website seems to work fine despite of that and the lack of extended profile update abillity. This problem seems to be solved after increasing buffer sizes of the mysql server. But I still cannot edit Extended Profile data. It does not work as admin nor as the user.

    I already disabled every single plugin to check if there is some plugin conflicts.
    I already clear the all the caches using LiteSpeed Cache Plugin.
    I already increased buffer size on the mysql server and restarted it.

    The wordpress database seems to be very big and I have a felling that something is wrong with it.

    There’s some information on the Chrome Developer Console on the “extended profile” backend:

    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
    load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks,utils,moxiejs,plupload,jcrop&ver=6.4.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
    hello.min.js?ver=2.4.50:1 Uncaught TypeError: Cannot read properties of null (reading ‘classList’)
    at HTMLDocument.e (hello.min.js?ver=2.4.50:1:157)
    57superpwa-sw.js?2.2.20:80 SuperPWA: Current request is excluded from cache.

    PS: SuperPWA is already disabled and deleted from this system.

    #331844
    bentamin
    Participant

    Hi, I have managed to get a xprofile field (checkbox with three options) to be displayed with a count as tabs next to the “all members” tabs. It’s similar to what @danbp hast done and is working in this Post: 2.2 Member Types – Setting user member types during registration (xProfile)

    Now I am stuck with the filtering of the members-list according to the Tabs when I click on one of the tabs.

    Maybe someone can help me out here.

    Here is the code for creating the tabs so far:

    Function for getting the child values of my checkbox for each Member

    function get_xprofile_child_fields($parent_field_id) {
        global $wpdb;
    
        $child_fields = $wpdb->get_results(
            $wpdb->prepare(
                "SELECT * FROM {$wpdb->prefix}bp_xprofile_fields WHERE parent_id = %d",
                $parent_field_id
            )
        );
    
        return $child_fields;
    }
    

    Function to count how many members have the individual options set

    function get_xprofile_field_member_count($field_id, $field_value) {
        global $wpdb;
    
        $count = $wpdb->get_var(
            $wpdb->prepare(
                "SELECT COUNT(*) FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = %d AND value LIKE %s",
                $field_id,
                '%' . $field_value . '%'
            )
        );
    
        return $count;
    }
    

    Create the tabs with a counter

    function custom_xprofile_child_field_directory_tabs() {
        $parent_field_id = 28; // Replace with your parent xProfile field ID
        
        $child_fields = get_xprofile_child_fields($parent_field_id);
    
        $tab_values = array(); // Store unique field values
    
        if (!empty($child_fields)) {
            foreach ($child_fields as $child_field) {
                $field_id = $child_field->parent_id;
                $field_value = $child_field->name;
    
                // Check if the field value is unique
                if (!in_array($field_value, $tab_values)) {
                    $tab_values[] = $field_value;
    
                    $child_count = get_xprofile_field_member_count($field_id, $field_value);
    
                    // Use a combination of field_id and field_value as the id
                    $tab_id = 'members-' . esc_attr('field_' . sanitize_title($field_value));
    
                    ?>
                    <li id="<?php echo $tab_id; ?>">
                        <a href="<?php echo bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', esc_html($field_value), $child_count); ?>
                    </a>
                    </li>
                    <?php
                }
            }
        }
    }
    
    add_action('bp_members_directory_member_types','custom_xprofile_child_field_directory_tabs');

    Thanks for any help on this 🙂

    #331678
    lemiran
    Participant

    Hi there
    I have a wordpress v6.3.2 with
    > BuddyPress v11.3.2
    > ProfileBuilder v3.10.1 (in order to have custom fields during registration)
    > Elementor Pro

    I have 2 weird behaviour.
    1- Non admin users, can see the admin bar with… MY account when they logged in.
    Fortunately, they cannot go in my account.
    To avoid that, for the moment i installed a plugin : Hide Admin Bar Based on User Roles

    2- The non admin accounts go directly in the backoffice when they log in (with the connexion button widget of elementor)

    Could you please help me?

    Best regards

    #331495
    harrissa158
    Participant

    Hello, I would like to know how to consult the files and photos sent by members during their registration which I must approve or not, because in the “registration management” category I see all the profile fields filled except that there are no There are no attached files or images that I can open. How to do ? and where is this stored ?

    WP version : 6.3.1
    PHP version : 8.0
    BP version : 11.3.1
    Website : couning.fr

    #331487
    twig
    Participant

    I need to access some of the Buddypress custom profile fields for display on another screen. I can get the field data using xprofile_get_field_data but I want to honour the visibility settings.

    Is there a Buddypress function which will determine if a user is allowed to see the profile field of the displayed user?

    Thanks

    #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

Viewing 25 results - 51 through 75 (of 4,112 total)
Skip to toolbar