Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Breadcrumbs #22228

    Hi Jessica,
    Thank you for sharing.

    No, There is no special benefit. I personally try to avoid monolithic plugins with too many features and keep single feature focused plugins. That helps when I need to change a plugin for some reason.

    There is no difference usability wise for WordPress.

    PS:- If you are using Breadcrumb trails, we enhance it by adding support for BuddyPress.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Delete all notifications #22227

    Hi Artyom,
    Thank you for using the plugin.

    Please use BuddyPress Notifications Widget. That will work for all your users as it does not need admin bar and it has the ability to let users clear notifications.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332

    Hi Rick,
    Thank you for the kind words and confirming that the code works.

    Since role can be passed as the parameter in add_user_to_blog(), it is doable when the need comes.

    I do not use the specific plugin for registration, so you can show my code to the author of the plugin and they can update it with the actual role from their form(It should be 1 line change).

    I used subscriber as a safe bate, the right thing would have been to use get_option(‘default_role’) which picks the default role for current blog.

    We do not need to worry about multiple roles, they should work as expected.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Hide Members directory in Groups #22225

    Hi Vivek,
    Thank you.

    Please use this snippet in your bp-custom.php

    
    /**
     * Hide Group members for everyone except Site Admin, Group admin and group mods.
     */
    function buddydev_custom_disable_group_members() {
    
    	if ( ! bp_is_group() ) {
    		return;
    	}
    	$group_id = bp_get_current_group_id();
    	$user_id  = get_current_user_id();
    
    	if ( is_super_admin() || groups_is_user_admin( $user_id, $group_id ) || groups_is_user_mod( $user_id, $group_id ) ) {
    		return;
    	}
    
    	bp_core_remove_subnav_item( groups_get_current_group()->slug, 'members' );
    }
    
    add_action( 'groups_setup_nav', 'buddydev_custom_disable_group_members' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Repeated & Duplicated fields #22224

    Hi Vivek,
    Thank you for clarifying.

    I am not sure of the right way to do it. It is possible to force BuddyPress to show a field in both group but the effort does not seem justified and will need a lot of testing.

    Creating 2 fields and syncing data from 1 to another is another possibility too. That way, since the values will be same, you can use search on any of these. It will still need filtering out field id on profile view.

    Another approach will be to create a basic tab with number/name etc and then use the other 2 tabs for specific things.

    If you want to go with second approach, Please do let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25332

    Hi Michaël,
    Please use Profile Visibility Manager and hide the user. This plugin works with profile visibility manager. If a profile is hidden, Their visit is not shown.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Breadcrumbs #22205

    Hi Jessica,
    If you activate Breadcrumb NavXT or Breadcrum Trail plugin , the breadcrumbs will be visible automatically.

    To disable, please put this in your child theme’s functions.php

    
    add_filter( 'cb_breadcrumb_enabled', '__return_false');
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Repeated & Duplicated fields #22204

    Hi Vivek,
    Thank you for clarifying.

    I think a better way will be to mar fields available to certain member types and let users select their member type on registration.

    That way, BuddyPress will only list fields applicable to user’s member type.

    If you use this approach, you can use a basic profile field group and another with all the relevant details for both the user types.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25332
    Brajesh Singh on in reply to: [Resolved] Hide Members directory in Groups #22203

    Hi Vivek,
    Thank you for the question. We can certainly do that.

    Question:- What will happen when a user clicks on “members” tab in group? should we remove the member tab completely there or hide the entries?

    Doing it per group will need me to add settings. For now, Let us keep it simple and we can add settings later.

    Regards
    Brajesh