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: 25336

    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: 25336
    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: 25336

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi bonga,
    I am sorry for the inconvenience.

    Which theme are you using? Also, which template pack is enabled. Please let me know and I will assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: Automated Cover Images per Member Type #23870

    Thank you Mike. I will put a filter for the same.

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Brian,
    I am sorry. We will not be able to add user to user blocking functionality(like providing a block button) in this plugin as moderation/reporting and blocking are different things.

    If you are looking for blocking when a user reports other user and automating the process of blocking from message, unfriending etc then it is coming in future version.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: Branded login support #23868

    Hi Tosin,
    Branded login does not use ajax to handle login. You do not need to add a loading icon. That will not make any sense as the complete page is reloaded on click without any delay.

    If you still want to add the loading indicator, please feel free to use any loading icon and hide them by default. Use a javascript snippet to make them visible when the button is clicked.

    PS:- In future, Please start a new topic for new questions/support request. That helps us keep the support forums more organized(and searchable for others looking for the same thing).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Vivek,
    Hope you are doing well. Please upgrade to 1.2.3 and you can use the shortcode
    [bpmts_report_button] for adding a button.

    https://buddydev.com/plugins/buddypress-moderation-tools/

    By default, it ads the report button for the current post. You can use the following options to customize it.

    label:- Change the button label. Optional. default is ‘Report’.
    item_id:- numeric item id. Optional. Default is current post id.
    item_type:- registered item type. optional. Default is current post type.
    context:- Any meaningful context. Optional. default is current post type.
    context_id:- Any id to help make sense of the context. Optional. default is post id.

    Hope this help.
    Regards
    Brajesh

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