Replies
- Ravi on May 7, 2021 at 5:34 pm in reply to: [Resolved] Cannot Remove Profile Search Widget on Members Page #38541
Hello John,
Thank you for the acknowledgment. I am glad that I could help.
Regards
Ravi - Ravi on May 7, 2021 at 5:32 pm in reply to: [Resolved] Send email to user that has been inactive for 2 months #38540
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 - Ravi on May 7, 2021 at 4:48 pm in reply to: [Resolved] Counter Issues with Group Tabs & User Profile Tabs #38538
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 - Ravi on May 7, 2021 at 4:35 pm in reply to: [Resolved] Send email to all featured members when a site wide notice is published #38537
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 - Ravi on May 7, 2021 at 1:16 pm in reply to: [Resolved] Send email to all featured members when a site wide notice is published #38533
Hello,
Thank you for posting. Please try the following action:
messages_send_notice
It will be called when the notice successfully sent.
Regards
Ravi - Ravi on May 7, 2021 at 4:43 am in reply to: [Resolved] Cannot Remove Profile Search Widget on Members Page #38526
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 Hello Tosin,
I will look into it and Will update you on Wednesday.
Regards
- Ravi on May 3, 2021 at 1:35 pm in reply to: [Resolved] Button locations in BP Block users Settings have no effect? #38486
Hello Carsten,
Thank you for the acknowledgment. I am glad that the problem is resolved by you.
Regards
Ravi - Ravi on May 1, 2021 at 5:12 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38410
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 Hello Russell,
Thank you for the acknowledgment. I am glad that I could help.
Regards
Ravi