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: 25472
    Brajesh Singh on in reply to: [Resolved] Activity Updates #14540

    Hi Keith,
    BuddyPress Activities can have only 2 privacy either visible to all or only visible to the poster(It may change if the Core developers decide to add ebtetr privacy in future).

    For MediaPress, if an item is accessible to all(including non logged), Its activity is set public otherwise it is set as private.

    What you are seeing is the correct listing for a logged in users only gallery.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: Buddypress Activity spam link #14539

    Hi Tosin,
    I won’t be able to look into it and assist as we have a moderation plugin coming this week and I am investing my time on that. Once the plugin is available and you still feel you need to use this code, Please feel free to post back and I or one of our team members will help.

    At the moment, I am just trying to avoid any duplicate effort.

    Thank you
    Brajesh

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

    Please use the following code to hide the button

    
    
    /**
     * @param array $args button args.
     * @param int   $leader_id leader to be followed.
     * @param int   $follower_id follower id.
     *
     * @return mixed
     */
    function buddydev_hide_unfollow_button_for_users( $args, $leader_id, $follower_id ) {
    
    	if ( 'following' !== $args['id'] ) {
    		return $args;
    	}
    
    	// user ids who can not be unfollowed.
    	$special_user_ids = array( 1,2,3,67 );
    
    	if ( in_array( $leader_id, $special_user_ids ) ) {
    		$args['id'] = '';
    	}
    
    	return $args;
    
    }
    add_filter( 'bp_follow_get_add_follow_button', 'buddydev_hide_unfollow_button_for_users', 10, 3 );
    

    It only hides the button but does not do anything else to stop unfollowing.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: [Resolved] "Links xprofile" & NEW PLUGIN #14533

    Hi Julia,
    That was expected. Specially on the edit page. BuddyPress doe snot give any specific error on the profile edit page. That’s why I asked you to put a message in the description.

    The better and accessible way will need too much code for a simple task like this.

    2. sure, You can use any of the available javascript plugins to do that. I don’t have enough time to find a library and post the code. I will leave it upto you to find and use it.

    Regards
    Brajesh

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

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    HI Julia,
    If it is not there, please Contact your theme developers. That is the most common place to have these.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Julia,
    I am not sure what your questions are. Can you please help me understand them better.

    A few things that I understood, I will answer here:-

    Profile Tabs:- The navigation is managed by your theme or BuddyPress template pack. It can be vertical or horizontal based on which theme you are using. There is not much that we can do on our part.

    Reload too many time:- I am not sure what do you mean by this? Why will that be an seo issue? Is it about BuddyPress or one of our plugins?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: Types of Friends #14527

    Hi David,
    Welcome to BuddyDev.

    A. What is the criteria for redirecting users from profile to author page?
    1) A logged in user should be able to visit their own profile?
    2) Other visiting a user’s profile get redirected to author page for the displayed user?

    B. There is no such plugin available. You are looking for something like google circle. We do have a similar plugin but it is unfinished. We did it by creating custom tables for labelling Friend groups. The Labels are specific to Users.

    C. That will be very easy. If you can get the point B working, a simple pre_get_posts filter like above will do it.

    Also, BP profile Visibility or Blog Categories for Groups won’t be much help with this.

    Best Regards
    Brajesh