Replies
Hello RES,
Thank you for the acknowledgment. I am glad that I could help.
Regards
RaviHello CleanGist,
Try the following code:
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );
Regards
Ravi- Ravi on September 1, 2021 at 7:56 am in reply to: Receive BuddyPress Notifications on our Mobile Phones #40339
Hello CleanGist,
Thank you for the acknowledgment and for raising the ticket on BuddyPress.org.
Regards
Ravi Hello Omar,
Thank you for the acknowledgment.
Cause now I notice that if I don’t add the group type into the code, that group type won’t show any member roles.
Please post your code for this.
What should I do if I want to actually show all member roles for a specific group type?
if ( in_array( 'A', $types ) ) { $exclude = array_merge( $admin_ids, $mod_ids ); } elseif ( in_array( 'B', $types ) ) { $exclude = array_merge( $admin_ids, $members_ids ); } // Reset excluded array if group of specfic type. if ( in_array( 'C', $types ) ) { $exclude = array(); }
Regards
RaviHello,
Sorry for the inconvenience. Please do let me know if this issue occurring on the BuddyPress Registration page or you are using other forms for registration. Please share which version of plugins you are using.
Regards
RaviHello CleanGist,
Thank you for the details. But the confirm box you are looking for is not supported by the plugin “BP Confirm Actions”. It works with the “BP Legacy” template pack only and shows confirm box on the following action if enabled:
1. Cancel friendship button
2. Cancel friendship request button
3. Leave group button
4. Unfollow button
5. Delete activity buttonRegards
RaviHello CleanGist,
It shows the new notifications to the user in real-time. You can say an advanced version of notification in which users do not need to navigate to the notification tab to check the notification.
Regards
Ravi- Ravi on August 30, 2021 at 9:03 am in reply to: Receive BuddyPress Notifications on our Mobile Phones #40306
Hello CleanGist,
Thank you for asking. The current version of BuddyPress does not allow to send of push notifications yet. But in the future, BuddyPress might offer such kind of feature.
Regards
Ravi Hello CleanGist,
Thank you for posting. BuddyPress does not allow to upload of any kind of media in activities. But there are plugins that can allow users to post media with activity e.q. MediaPress and rtMedia. For check-in, you can give a shot to a plugin name “Check-ins for BuddyPress Activity” for any other feature you need premium theme or plugin.
For tag:
In BuddyPress, Tagging means mentioning. It will only work with Activity and you can see the mentions list by typing ‘@’ in the activity post form.Regards
Ravi- This reply was modified 3 years, 11 months ago by
Ravi.
- This reply was modified 3 years, 11 months ago by
Hello Omar,
Try the following solution:
/** * Get group moderator ids. * * @param BP_Groups_Group $group Group object. * * @return array */ function buddydev_get_group_member_ids( $group ) { global $wpdb; $table = buddypress()->groups->table_name_members; $query = $wpdb->prepare( "SELECT user_id FROM {$table} WHERE group_id = %d AND is_admin = 0 AND is_mod = 0 AND is_confirmed = 1", $group->id ); return $wpdb->get_col( $query ); } add_filter( 'bp_after_group_has_members_parse_args', function ( $args ) { $group = groups_get_current_group(); $types = bp_groups_get_group_type( $group->id, false ); if ( ! $types ) { return $args; } $admin_ids = bp_group_admin_ids( $group, 'array' ); $mod_ids = bp_group_has_moderators( $group ) ? bp_group_mod_ids( $group, 'array' ) : array(); $members_ids = buddydev_get_group_member_ids( $group ); $exclude = array(); if ( in_array( 'A', $types ) ) { $exclude = array_merge( $admin_ids, $mod_ids ); } elseif ( in_array( 'B', $types ) ) { $exclude = array_merge( $admin_ids, $members_ids ); } $args['exclude'] = empty( $args['exclude'] ) ? $exclude : array_merge( (array) $args['exclude'], $exclude ); return $args; } );
Regards
Ravi