Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

  • Bit Boy
    Participant

    @bitboy

    To add my two cents, There is another plugin that allows file as well as image

    BuddyPress Xprofile Custom Field Types

    Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hi Artyom,
    If you need to fetch hidden groups, you can pass

    show_hidden=> true in bp_has_groups args. Like

    
    
    bp_has_groups(array( 'show_hidden'=> true ) )
    
    

    Hope it helps.

    Best
    B


    Bit Boy
    Participant

    @bitboy

    Hi,
    It is possible to make it so but in that case profile needs to be default component.

    Try adding

    
    define( 'BP_DEFAULT_COMPONENT', 'profile' );
    

    to your bp-custom.php and see if it suits your need.

    Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hi,
    There seems to be a solution available.

    You may use the BuddyPress addon from here

    Using two step Login Authentication with Google Authenticator and BuddyPress

    It needs the Google Authenticator plugin and enables the settings to the user(they can change from setting page).

    Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hello,
    You can use this plugin for showing the ID in the dashboard.

    Show IDs by 99 Robots

    and you may add following code to your theme’s functions.php to show the ID on user profile when the user is viewing his/her own profile or it is being viewed by the site admin.

    
    
    /**
     * Show User ID on a user's profile to the profile owner or Administrator.
     */
    function bidboy_show_displayed_user_id() {
    	if ( bp_is_my_profile() || is_super_admin() ) {
    		echo 'ID: ' . bp_displayed_user_id();
    	}
    }
    
    add_action( 'bp_before_member_header_meta', 'bidboy_show_displayed_user_id' );
    
    

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hi,
    BuddyPress works on top of WordPress to add community/social features. The integration is almost seamless.

    Now to answer your questions:-
    1. will my members have to login a second time to use BuddyPress?
    Is the login required by WordPress account? if yes, They will not need to login again.

    2. Will that they then have two accounts to deal with?
    No, It is only one account.

    Give it a try, BuddyPress should be simple enough to use.

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    You are welcome 🙂


    Bit Boy
    Participant

    @bitboy

    Hi Janaa,
    The best option here will be to disable the bioedit section.
    You can do it by visiting Dashboard->Appearance->Customize and clicking on “BuddyPress Nouveau” panel.
    Under this panel, you will see a lot of section. You will need to choose “Member Front Page” as shown here

    View post on imgur.com

    Once you are there, you will see 2 options to disable front page or the bio section like this

    View post on imgur.com

    Depending on your need, please feel free to disable them.

    PS:- To be honest, you don’t need bio field, you can manage user’s details from xprofiles.

    Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hi,
    You can use bp_is_my_profile() to check and display content as below

    
    
    if ( bp_is_my_profile() ) {
    	echo "The content for profile owner.";
    }
    

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    In that case, you can put it in your bp-custom.php or your theme/child theme’s functions.php

    
    /**
     * Start buffering the visibility template.
     */
    function bitboy_start_buffering_visibility_template() {
    	ob_start();
    }
    add_action( 'bp_custom_profile_edit_fields_pre_visibility', 'bitboy_start_buffering_visibility_template', -1 );
    
    /**
     * End buffer and discard.
     */
    function bitboy_end_buffering_visibility_template() {
    	ob_end_clean();
    }
    add_action( 'bp_custom_profile_edit_fields', 'bitboy_end_buffering_visibility_template', 1000 );
    
    

    It will remove the visibility options completely.

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    Btw, The above code disables the toggle option on profile edit too.
    To only change it on registration page, Please use the below code instead

    
    .register-page .signup-form .editfield .field-visibility-settings,
    #register-page .standard-form .field-visibility-settings-header {
        display:none;
    }
    

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    Hi,
    How did you disable the option? Are you using css to do it?

    There are two ways to do it
    1. Using css
    2. editing template file(register.php and keeping a copy in your theme’s buddypress/members directory)

    I will prefer the first approach as it will not be much work on a site admin’s part.

    
    .register-page .signup-form .editfield .field-visibility-settings,
    .buddypress-wrap .standard-form .field-visibility-settings-header {
        display:none;
    }
    
    

    Please visit Dashboard->Appearance->Customize menu then open “Additional Styles” and add those lines.

    Does that work?

    Best Regards
    B


    Bit Boy
    Participant

    @bitboy

    You are welcome.


    Bit Boy
    Participant

    @bitboy

    Hi,
    Here is another approach to solve the same issue.

    
    
    /**
     * Change the profile edit landing group tab.
     */
    function bitboy_change_landing_profile_group() {
    
    	// are we on edit profile?
    	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    
    	$group_id = 2;
    
    	// Make sure a group is set.
    	if ( ! bp_action_variable( 1 ) ) {
    		bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/'. $group_id ) );
    	}
    }
    
    add_action( 'bp_screens', 'bitboy_change_landing_profile_group', 2 );
    

    This does not requore any change in any template file.


    Bit Boy
    Participant

    @bitboy

    Hello,
    You can change that by defining a constant in your bp-custom.php

    
    define( 'BP_FRIENDS_SLUG', 'colleagues');
    

    And yes, you can change slug for most of the component without affecting the functionality.

    You may find the details at the bottom of this page for changing other slug.

    Changing Internal Configuration Settings

    Best Regards
    B

Viewing 15 replies - 1 through 15 (of 15 total)
Skip to toolbar