Replies
- Brajesh Singh on July 7, 2020 at 8:08 am in reply to: [Resolved] Auto Friendship Pro (will one of these rules work – and implement backwards)? #31513
Hi Chris,
Yes. It is your choice. Whichever you prefer(email domain based or member type based), Please let me know and I will post the code.Regards
Brajesh - Brajesh Singh on July 7, 2020 at 8:05 am in reply to: Excluding a role from all BuddyPress listings #31511
Hi Jemima,
That will work. It will apply to all members loops though.Also, Here is a minor enhancement(the above code did not respect already excluded users)
add_action( 'bp_pre_user_query_construct', 'wd_build_exclude_args', 20, 1 ); function wd_build_exclude_args( $args ) { $excluded = isset( $args->query_vars['exclude'] ) ? $args->query_vars['exclude'] : array(); $user_ids = get_users( array( 'role__in' => [ 'subscriber' ], 'fields' => 'ID' ) ); $excluded = array_merge( $excluded, $user_ids ); $args->query_vars['exclude'] = $excluded; return $args; }Regards
Brajesh Hi Bill,
Thank you.The plugin works with BuddyBoss theme. By menu, do you mean the left side menu or the account dropdown?
Please let me know and I will check.
Regards
Brajesh- Brajesh Singh on July 7, 2020 at 7:39 am in reply to: [Resolved] Community Builder Pro Child pagination issues in friends-members page #31508
Hi Sotiris,
Thank you for the patience and helping with the links for seeing issue.I can see it. Please allow me 24 hours to push an update to fix it.
I will write back after the update.
Regards
Brajesh - Brajesh Singh on July 7, 2020 at 7:32 am in reply to: [Resolved] Community Builder Pro Child pagination issues in friends-members page #31507
Hi Sotiris ,
I am sorry for the issue.Please allow me to check and get back to you.
Regards
Brajesh - Brajesh Singh on July 7, 2020 at 7:31 am in reply to: [Resolved] Auto Friendship Pro (will one of these rules work – and implement backwards)? #31506
Hi Chris,
Thank you for joining our membership.The BuddyPress Auto Friendship Pro addd the new User to a list of predefined users. In other words, the list of users who will be added is preset.
What you are looking for is finding a match between the users and add them as friend. The plugin does not do that.
Yes, It is doable with some code(will that work for you?). If I put the custom code, It will only apply to new users.
If you need it for existing users, it will need searching all users and managing a queue for adding friendship relationship(which will be ajax based to avoid timeouts). This will be beyond the scope and will need custom service.
Regards
Brajesh - Brajesh Singh on July 6, 2020 at 11:45 am in reply to: Hide a member type in Profile Search Forms #31498
Hi Ramon,
Sure. I will share the activity code in next 1-2 days.The code for form was shared by @ravisharma and I am going to ask him to support you with that.
Regards
Brajesh - Brajesh Singh on July 6, 2020 at 11:39 am in reply to: [Resolved] BP Ajax Registration – Wrong Redirection Link #31495
Hi Alya,
Thank you for the update. It is good to know.Regards
Brajesh - Brajesh Singh on July 6, 2020 at 11:38 am in reply to: [Resolved] Hide Logged In User Member Card #31494
Hi Steven,
I am sorry for the inconvenience.Did you put it in your bp-custom.php.
if yes, did that file started with
<?php
tag.If possible, Please share the complete code from that file on pastebin.com and link me.
Regards
Brajesh - Brajesh Singh on July 6, 2020 at 11:36 am in reply to: Hide a member type in Profile Search Forms #31493
Hi Ramon,
I am referring to the code for hiding activity.Hiding from the form should be simple.