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: 25358
    Brajesh Singh on in reply to: [Resolved] Hide Logged In User Member Card #31476

    Hi Steven,

    Thank you for the question.

    Please use the following code in your bp-custom.php

    
    
    /**
     * Exclude Logged Users from BuddyPress Members List.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_exclude_logged_user( $args ) {
    	// do not exclude if not logged in or in admin.
    	if ( ! is_user_logged_in() || ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) {
    		return $args;
    	}
    
    	$excluded = isset( $args['exclude'] ) ? $args['exclude'] : array();
    
    	if ( ! is_array( $excluded ) ) {
    		$excluded = explode( ',', $excluded );
    	}
    
    	$excluded[]      = get_current_user_id();
    	$args['exclude'] = $excluded;
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_logged_user' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Tosin,
    you are using the plugin for a 3rd party vendor. I will suggest asking them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358
    Brajesh Singh on in reply to: [Resolved] plugin #31472
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Thank you.

    Have already added it. will release sometimes in the morning tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358
    Brajesh Singh on in reply to: [Resolved] Profile #31470

    Hi Ankit,
    Did you search before asking?

    Here is how to find it.
    https://lmgtfy.com/?q=buddypress+profile+search

    We will appreciate if you put some effort before creating topics here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358
    Brajesh Singh on in reply to: [Resolved] plugin #31462

    why? are you having trouble buying?

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi JJ,
    Thank you.

    1. I think the best middle ground for us to provide an option for enabling notice and let site admins control the content of that notice.

    2. You can control who sees that form from the admin settings(visibility option).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358
    Brajesh Singh on in reply to: [Resolved] plugin #31459

    Hi Ankit,
    Are you facing any issue purchasing the plugin?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Thank you.
    But we should not show the same message to the profile owner and visitor( any user logged in or out).

    It will not feel natural to show me a message like

    
    
    This is Brajesh's contact form or something similar
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi JJ,
    can you please clarify this message.

    Do you want to show the message to visitors of profile.

    for example, a user visiting John’s profile will see

    
    You are contacting John.
    
    

    Is that the case? or do you want to show the message to profile owner about who can contact them.

    Please help me understand. I am planning the release tomorrow and will appreciate you feedback.

    Regards
    Brajesh