New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: facebook like activity stream #18067

    Hi David,

    1. Yes. You will need to enable it in the settings of the plugin though.
    2. Please use the following code.

    
    
    /**
     * Redirect user on login.
     *
     * @param string  $redirect_to_calculated the page where user is about to be redirected.
     * @param string  $redirect_url_specified actual specified redirect.
     * @param WP_User $user user.
     *
     * @return string
     */
    function buddydev_redirect_on_login( $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();
    	}
    
    	// Where do you want to redirect.
    	//  You can change it to anything.
    	$redirect_to = bp_core_get_user_domain( $user->ID );
    	
    	// for example, to redirect to user's group page, you will use
    	// $redirect_to = bp_core_get_user_domain( $user->ID ) . 'groups/';
    
    	return $redirect_to;
    }
    
    add_filter( 'login_redirect', 'buddydev_redirect_on_login', 101, 3 );
    
    

    The above code redirects to profile. You can change $redirect_to to point to anywhere.
    For example, To redirect to member directory, you can change it to.

    
    $redirect_to = bp_get_activity_directory_permalink();
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Carsten,
    I have looked into it. There is a bug in bp_member_profile_data and it does not passes the field id. Since the field id is not available, the custom fields plugin is unable to know whether age is required or date.

    There is a solution. Inside the members loop you can use

    
    <?php echo xprofile_get_field_data( 'Date Field Name', bp_get_member_user_id()  );?>
    
    

    That will give the correct data.
    For efficiency, you can replace the field name with id too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] Moderation tools support for posts? #18064

    Hi Richard,
    Hope you are doing well.

    We will be most probably releasing the posts support today or tomorrow. It is in testing phase and I am looking forward to release within next 24-48 hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Michael,
    I am sorry for the confusion.

    You don’t need to change anything in the code. It is not working as it is unable to find the labels[‘Recruiter’]

    Is your goal to limit the available visibilities to only certain member types(like only Recruiter is available as a visibility level?)

    The code in the blog post will automatically take the singular label for all member types.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: facebook like activity stream #18060

    Hi David ,
    Thank you for asking.

    The current version allows you to select which activities you want to convert into stream.

    – You can use sitewide activity directory as the friends/groups/users stream
    – You can add extra tab on profile for stream.

    Both are optional and you can chose any on or both.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Ravi,
    Thank you for the help here.


    @teeboy
    , I hope it works.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] Add icon to buddy circle #18051

    Thank you Edgar.
    All the Best.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Glad that you found it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Thorsten,
    is is resolved or do you still have issues?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] Allow user to upload images #18048

    Hi Saxena,
    I am sorry to hear about your fever. Please take rest.

    Yes, the release is available from WordPress.org report.

    Get well soon.

    Brajesh