BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello John,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Lefteris,

    Try using the following code and let me know if it works or not.

    
    
    function buddydev_get_last_days_active_users() {
    
    	global $wpdb;
    	$bp = buddypress();
    
    	$user_ids = $wpdb->get_col(
    		$wpdb->prepare(
    			"SELECT user_id FROM {$bp->members->table_name_last_activity} 
    			WHERE component = %s AND type = 'last_activity' AND 
    			date_recorded > current_date - interval 7 day",
    			$bp->members->id,
    		)
    	);
    
    	// No user found.
    	if ( empty( $user_ids ) ) {
    		return;
    	}
    
    	$users = array();
    	foreach ( $user_ids as $user_id ) {
    
    		$user = get_user_by( 'id', $user_id );
    
    		if ( $user && array_intersect( $user->roles, array( 'contributor', 'administrator' ) ) ) {
    			$users[] = $user;
    		}
    	}
    
    	return $users;
    }
    
    

    Modify it as you need.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Tiffany,

    Thank you for posting. As you are using third-party shortcodes for tab content, there is no way to know the count by the group and profile tabs creator plugin. It can only render content in the tab but can not show the count due to this. We are unable to help much with it.

    We do plan to allow inserting shortcode in the tab title in the future to allow using counts if the 3rd party plugin offers shortcode for it.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello,

    Please try the following code:

    
    
    /**
     * Notify featured members
     *
     * @param string $subject Notice Subject.
     * @param string $message Notice Message.
     */
    function buddydev_notify_featured_members( $subject, $message ) {
    	// Send email here.
    }
    
    add_action( 'messages_send_notice', 'buddydev_notify_featured_members', 10, 2 );
    
    

    Please let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello,

    Thank you for posting. Please try the following action:

    
    messages_send_notice
    

    It will be called when the notice successfully sent.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello John,

    Thank you for posting. To disable Member search from member’s directory go to backend BuddyBoss > Settings > Profile > Profile Search and make it unchecked. It will remove from the directory page.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Branded login requests #38524

    Hello Tosin,

    I will look into it and Will update you on Wednesday.

    Regards

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Carsten,

    Thank you for the acknowledgment. I am glad that the problem is resolved by you.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Tosin,

    Sorry for the delayed reply. I had a discussion with Brajesh sir and he will be taking care this by monday.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Image Border #38394

    Hello Russell,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi