Replies
- Ravi on August 27, 2020 at 3:19 pm in reply to: [Resolved] Member Types Pro – validation of group registrations #32762
Hello Olivier,
Thank you for the reply. Please allow me to push an update early next week. I will share a snippet after that to enable this behaviour.
Regards
Ravi - Ravi on August 27, 2020 at 3:13 pm in reply to: [Resolved] Hiding User ONLY when it has ONE role on BuddyPress-based site #32761
Hello Hastibe,
Thank you for the kind words. I am glad that I could help.
Regards
Ravi - Ravi on August 27, 2020 at 4:46 am in reply to: [Resolved] Hiding User ONLY when it has ONE role on BuddyPress-based site #32750
Hello Hastibe,
Thank you for posting. Try the following it will include only users with subscriber role.
/** * Exclude Users from BuddyPress Members List by WordPress role. * * @param array $args args. * * @return array */ function buddydev_include_users_by_role( $args ) { // do not exclude in admin. if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $included = isset( $args['include'] ) ? $args['include'] : array(); if ( ! is_array( $included ) ) { $included = explode( ',', $included ); } $role = 'subscriber';// change to the role to be include. $user_ids = get_users( array( 'role' => $role, 'fields' => 'ID', ) ); $included = array_merge( $included, $user_ids ); $args['include'] = $included; return $args; } add_filter( 'bp_after_has_members_parse_args', 'buddydev_include_users_by_role' );
Please let me know if is works or not.
Regrads
Ravi - Ravi on August 27, 2020 at 4:31 am in reply to: [Resolved] Member Types Pro – validation of group registrations #32748
Hello Olivier,
Thank you for posting. Please let me know what kind of group status you are dealing with. BuddyPress does not have any validate feature by default. But one thing we can with private groups in place of directly adding to groups we can send membership request sothat group admin can add them.
Regards
Ravi - Ravi on August 26, 2020 at 11:47 am in reply to: [Resolved] Is it possible to place text on top of the profile avatar? #32742
Hello Carsten,
Sorry i was on wrong side. Please try the following code.
add_action( 'bp_before_member_header_meta', function () { echo sprintf( '<a href="%s">%s</a>', bp_displayed_user_domain(), __( 'View' ) ); } );
it will add a view link inside header content which is inside ‘div#item-header’
Regards
Ravi - Ravi on August 26, 2020 at 9:43 am in reply to: [Resolved] Is it possible to place text on top of the profile avatar? #32740
Hello Carsten,
Thank you for posting. It will be better if you can provide a screenshot with details where you want to place the text. Please do let me know.
Regards
Ravi Hello Rami,
Redirect url setting added to join blog widget now. Please update the plugin and have a look.
Regards
Ravi- Ravi on August 20, 2020 at 5:58 am in reply to: Change BuddyPress Force Profile Photo plugin redirection #32601
Hello Tosin,
Thank you for acknowledgement.
Regards
Ravi - Ravi on August 19, 2020 at 12:20 pm in reply to: Change BuddyPress Force Profile Photo plugin redirection #32591
Hello Tosin,
I have added compatibility for leira-letter-avatar plugin. Right now it is redircting to avatar uploading screen. Please download the latest code from github repo and check is it working or not.
https://github.com/buddydev/bp-profile-completion
Regards
Ravi