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: 25494
    Brajesh Singh on in reply to: MS Thread #23898
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Brian,

    No issues at all. No offence taken.

    I am glad the above link helped.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Brian,
    No issues.

    Please see this

    https://www.philopress.com/products/buddyblock/

    It might be useful for you as it allows blocking users.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Btw, If you are looking for blocking users, There is a plugin from someone else called BuddyBlock.

    That should help you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    I am sorry but I disagree with you. I hope you understand the difference between moderation and blocking.

    Moderation/report abuse is not a tool for blocking user to user. It is for reporting. As a consequence of reporting if sideadmins want to block interaction between user, that is coming in future.
    The features may be useless but we have 100+ site owners happily using this currently.

    It all depends on your need. Since it does not match your need that does not make it useless or absurd.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Chis,
    Glad to know that you resolved it 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Profile Cover Page Confirmation #23883

    Hi Mocha,
    You are welcome.

    Is there a chance that you are using any custom theme?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Mocha,
    This is not a bug in BuddyPress. Most probably your theme(custom theme?) or some plugin is causing it. Solution is to disable plugins/change theme and check for the same to find the source.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] buddypress 'following' #23874

    Hi,
    Thank you for using the plugin.

    Please disable it and use the following code(in plugins/bp-custom.php or your theme’s functions.php)

    
    
    /**
     * Redirect user to their profile if they are not admin.
     *
     * @param string $redirect_to_calculated calculated redirect.
     * @param string $redirect_url_specified specified redirect.
     * @param WP_User $user user.
     *
     * @return string
     */
    function bpdev_custom_redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ) {
    	if ( ! $user || is_wp_error( $user ) ) {
    		return $redirect_to_calculated;
    	}
    	// If the redirect is not specified, assume it to be dashboard.
    	if ( empty( $redirect_to_calculated ) ) {
    		$redirect_to_calculated = admin_url();
    	}
    	// if the user is not site admin, redirect to his/her profile.
    	if ( function_exists( 'bp_core_get_user_domain' ) && ! is_super_admin( $user->ID ) ) {
    		return bp_core_get_user_domain( $user->ID ) . bp_get_activity_slug() . '/following/';
    	}
    
    	// if site admin or not logged in, do not do anything much.
    	return $redirect_to_calculated;
    }
    
    add_filter( 'login_redirect', 'bpdev_custom_redirect_to_profile', 101, 3 );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Jared,

    Thank you for the topic. It seems, we may achieve it using switch_to_blog and restore restore_current_blog.

    Please allow us to test it as a proof of concept next week and get back to you.

    Thank you
    Brajesh