👻 Halloween Treat: Our biggest-ever 25% OFF memberships — use SPOOKYSOCIAL before Nov 3! 🎃

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    Hi Jasmin,
    Thank you for posting. I am glad the second issue is fixed.

    The first one is the default behavior. This plugin only shows the recent visitors to the user if they are visiting their own profile. For Example, User A can not see the visitors of User B.

    Can you please post me a screenshot to show if t is not doing that?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25200
    Brajesh Singh on in reply to: [Resolved] member type on registration #2782

    Hi Blade,
    Thank you for the kind words 🙂

    Please upgrade to 1.0.2 from here

    https://buddydev.com/plugins/bp-xprofile-member-type-field/

    and put this code in your bp-custom.php

    
    add_filter( 'bd_xprofile_field_type_membertype_as_radio', '__return_true');
    
    

    That will make it work as radio.
    Hope that helps. Please do let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    No problem.
    You are most welcome.
    Happy coding 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25200
  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    Hi Emmanuel,
    Here are some example code to show hiding the buttons for specific oles

    
    
    add_filter( 'bp_get_group_join_button', 'custom_hide_joingroup_button');
    function custom_hide_joingroup_button( $btn) {
    
    	if ( ! current_user_can('manage_options' ) ) {
    		unset( $btn['id'] );//unsetting id will fore BP_Button to not generate any content
    	}
    
    	return $btn;
    }
    
    add_filter( 'bp_get_add_friend_button', 'custom_hide_addfriend_button' );
    function custom_hide_addfriend_button( $btn ) {
    	if ( ! current_user_can('manage_options' ) ) {
    		unset( $btn['id'] );//unsetting id will fore BP_Button to not generate any content
    	}
    
    	return $btn;
    }
    

    Please take a look at this table to see which capability you may use.

    Hope that it helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    Hi Emmanuel,
    Welcome to BuddyDev forums.

    It is doable and there can be multiple ways to do it. Are you comfortable with php code? If yes, I can guide in the right direction.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25200
    Brajesh Singh on in reply to: [Resolved] member type on registration #2772

    Hi Blade,
    Welcome to BuddyDev.

    Thank you for asking this.
    We will have it available in next 4-5 hours and I will post an update here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    Hi Devin,
    The only reason it is not following WordPress permalink can be somehow this filter is enabled

    
    buddyblog_show_posts_on_profile
    

    Either there is some remaining code filtering on it or somehow the admin settings for BuddyBlog to show posts on profile is still enabled.

    Please give the settings/code another check and if you don’t find anything/it does not work, Please grant me temporary access to the site. I can debug and find the problem.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25200

    Hi Jasmin,
    Welcome to BuddyDev forums.

    1. Isn’t Recent visitors visible to the logged in user only. This is the default behaviour.

    For avatar, Please put the following code in your bp-custom.php

    
    function devb_custom_settings_for_recent_visitors ( $settings ) {
    
    	$settings['default_avatar_size'] = 64;//64 px
    
    	return $settings;
    }
    add_filter( 'bp_visitors_settings', 'devb_custom_settings_for_recent_visitors' );
    

    Is it changing the avatar size? If not, It may be some css issue and you can point me to the site. That will allow me to provide you some css too.

  • Keymaster
    (BuddyDev Team)
    Posts: 25200
    Brajesh Singh on in reply to: [Resolved] Delete image redirect #2762

    Hi Jem,
    Thank you for confirming.

    I am sorry about the lightbox. It skipped me otherwise we might have added the support in the shortcode. It is still possible to enable it via code. I will experiment a little and post back today if that can be done via code until we add he support in shortcodes.

    Thank you
    Brajesh