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

    Hi Tosin,
    I am glad it worked. @ravisharma deserves the credit for the assistance. Thank you Ravi.

    This code can certainly be extrapolated for friendship but a Friendship is a bidirectional connection. What should we count? The friends and the friendship request sent by the logged in member?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: Display sitewide activity for followers only #14429

    Hi Tosin,
    Please feel free to restore your old template file.

    The problem lied with my code. I mistook for members directory. Have updated the code to

    
    /**
     * Filter sitewide activity to list following user's activity.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_custom_list_activities_filter( $args ) {
    	if ( ! is_user_logged_in() || ! bp_is_activity_directory() ) {
    		return $args;
    	}
    
    	// for logged in user, change scope to following.
    	$args['scope'] = 'follow';
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_custom_list_activities_filter' );
    
    

    Also, this code should go to your theme’s functions.php or the bp-custom.php in plugins directory and not in template file.

    PS:- You can also just conditionally hide the All members tab by using a condition like. That will be a nice enhancement in addition to the above code.

    
    <?php if( ! is_user_logged_in() ) :?>
    ......link for showing the all members tab
    <?php endif;?>
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: BuddyPress Moderation – Report Users/Groups #14428

    Thank you Tiziano.

    It’s coming up as expected and will be available by the end of next week.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: How to make someone become featured members? #14427

    Hi,
    At the moment, You can do it from the members directory too. Yes, we will add a context link in the admin in the future for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: How to make someone become featured members? #14426

    Please visit your members directory and mark users as featured. You can also mark users as featured from their profile.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Paolo,
    My apologies for the delayed reply.

    This problem can be broken into a few steps.

    1. Uploading the video
    2. Crunching the video to extract cover and converting to playable file format
    3. Using the converted video and cover and MediaPress video entry.

    Since your upload strategy is very different from what we have in MediaPress, you will most probably need to handle the first 2 part yourself.

    Here is how we save an uploaded file as MediaPress entry
    https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L363

    The mpp_add_media() is used to add the media to a gallery.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: [Resolved] Ajax registor form customization #14402

    Hi Daniel

    That is happening since theme is applying that on the mobile. I had updated the css earlier. Will add it to the additional css again to fix it. Please allow me to update on the site today.

    Also, It is possible that the theme’s css override has higher priority. I will check and update you again today for the other fields.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: Ajax registration – form has gone whacky #14401
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Herve,
    You are welcome.

    yes, The above hook fires when a user activates their account.

    For editing the profile, I will suggest sticking to ‘xprofile_updated_profile’ hook as the ‘xprofile_data_before_save’ fires each time an individual xprofile field is updated.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: Ajax registration – form has gone whacky #14398

    Hi Diana,
    Please do grant me temporary admin access and I will update the css.

    About loading css/js on the login page. The scripts loaded on the hook ‘wp_enqueue_Scripts’ will not be loaded.

    In order to load css/js on the login page, we need to hook to ‘login_enqueue_scripts’ action.

    Regards
    Brajesh