Replies
- Brajesh Singh on September 28, 2018 at 4:42 pm in reply to: [Resolved] Tab not moving / default sub nav not changing #17721
Hi Andi,
Thank you.
1. Here is a slightly cleaned code. The actual change is only one line(adding bp_is_user())
/** * Filter Members list. * * @param string|array $qs query string. * @param string $object object type. * * @return bool|string */ function bpdev_exclude_users( $qs = '', $object = '' ) { // list of users to exclude. if ( $object != 'members' || bp_is_user() ) { // hide for members only in the directory. return $qs; } $excluded_user = join( ',', bpdev_get_customer_user_ids() );//comma separated ids of users whom you want to exclude $args = wp_parse_args( $qs ); // check if we are are listing friends?, do not exclude in this case. if ( ! empty( $args['user_id'] ) ) { return $qs; } // check if we are searching?, do not exclude in this case. if ( ! empty( $args['search_terms'] ) ) { return $qs; } if ( ! empty( $args['exclude'] ) ) { $args['exclude'] = $args['exclude'] . ',' . $excluded_user; } else { $args['exclude'] = $excluded_user; } $qs = build_query( $args ); return $qs; } add_action( 'bp_ajax_querystring', 'bpdev_exclude_users', 20, 2 ); function bpdev_get_customer_user_ids() { $customers = get_users( array( 'role' => 'customer', 'fields' => 'ID' ) ); return $customers; }2. Are you using invite anyone? It is coming from that plugin most probably.
Regards
Brajesh - This reply has been marked as private.
- Brajesh Singh on September 28, 2018 at 3:54 pm in reply to: [Resolved] Group Tabs Creator Pro – Unique Content for Each Group #17719
Hi Miles,
Thank you.I just created the guide too.
Regards
Brajesh - Brajesh Singh on September 28, 2018 at 8:24 am in reply to: [Resolved] Group Tabs Creator Pro – Unique Content for Each Group #17712
Hi Miles,
The plugin is working for me. Most probably the types tab is hidden for you.Can you please click on “Screen Options” and see if “Types” Is checked in boxes. Please do it on Group Tabs-> Tab Contents-> Add/Edit content page.
I am also posting a detailed guideline in an hour.
Regards
Brajesh - Brajesh Singh on September 28, 2018 at 6:43 am in reply to: [Resolved] paiement with featured Member #17710
Hi Herve,
I will be looking at your code this weekend and updating you.Thank you
Brajesh - Brajesh Singh on September 28, 2018 at 6:42 am in reply to: [Resolved] BP Ajax registration – Ajax Login #17709
Hi David,
Thank you.1. I will update the nonce to use unique ids.
2. Thank you for catching it. It’s a mistake.The signup avatar won’t work with it but there is another plugin by a 3rd party developer(ajax upload avatar) which I am planning to look into and update. That should work with it.
The update will be available by early tomorrow.
Regards
Brajesh - Brajesh Singh on September 28, 2018 at 6:40 am in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17708
Thank you.
Hi Chris,
You can usehttp://example.com/members/admin/groups/
Replace example.com with your site and it will redirect to logged in user’s groups page.
Regards
BrajeshYou are welcome.
Regards
Brajesh- Brajesh Singh on September 28, 2018 at 6:32 am in reply to: [Resolved] Group Tabs Creator Pro – Unique Content for Each Group #17704
Hi Miles,
Welcome to BuddyDev forums.We do have a plugin to allwow creating unique tabs/sub tabs per group.
Please download it from here.
We don’t have proper documentation for it but it is exactly same as Dynamic Profile tab
https://buddydev.com/create-dynamic-user-profile-tabs-for-buddypress/For now, Please follow the Profile tab guide and let me know if you are able to use it.
Regards
Brajesh