Replies
- Brajesh Singh on July 5, 2020 at 6:33 pm in reply to: [Resolved] Hide Logged In User Member Card #31476
Hi Steven,
Thank you for the question.
Please use the following code in your bp-custom.php
/** * Exclude Logged Users from BuddyPress Members List. * * @param array $args args. * * @return array */ function buddydev_exclude_logged_user( $args ) { // do not exclude if not logged in or in admin. if ( ! is_user_logged_in() || ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) { return $args; } $excluded = isset( $args['exclude'] ) ? $args['exclude'] : array(); if ( ! is_array( $excluded ) ) { $excluded = explode( ',', $excluded ); } $excluded[] = get_current_user_id(); $args['exclude'] = $excluded; return $args; } add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_logged_user' );Regards
Brajesh - Brajesh Singh on July 5, 2020 at 5:32 pm in reply to: [Resolved] Redirect users only for first login to a specific page #31474
Hi Tosin,
you are using the plugin for a 3rd party vendor. I will suggest asking them.Regards
Brajesh - This reply has been marked as private.
- Brajesh Singh on July 5, 2020 at 5:26 pm in reply to: [Resolved] Buddypress User Contact Form code suggestion #31471
Thank you.
Have already added it. will release sometimes in the morning tomorrow.
Regards
Brajesh Hi Ankit,
Did you search before asking?Here is how to find it.
https://lmgtfy.com/?q=buddypress+profile+searchWe will appreciate if you put some effort before creating topics here.
Thank you
Brajeshwhy? are you having trouble buying?
- Brajesh Singh on July 5, 2020 at 10:46 am in reply to: [Resolved] Buddypress User Contact Form code suggestion #31460
Hi JJ,
Thank you.1. I think the best middle ground for us to provide an option for enabling notice and let site admins control the content of that notice.
2. You can control who sees that form from the admin settings(visibility option).
Regards
Brajesh Hi Ankit,
Are you facing any issue purchasing the plugin?Regards
Brajesh- Brajesh Singh on July 5, 2020 at 3:26 am in reply to: [Resolved] Buddypress User Contact Form code suggestion #31456
Thank you.
But we should not show the same message to the profile owner and visitor( any user logged in or out).It will not feel natural to show me a message like
This is Brajesh's contact form or something similarRegards
Brajesh - Brajesh Singh on July 5, 2020 at 3:17 am in reply to: [Resolved] Buddypress User Contact Form code suggestion #31454
Hi JJ,
can you please clarify this message.Do you want to show the message to visitors of profile.
for example, a user visiting John’s profile will see
You are contacting John.Is that the case? or do you want to show the message to profile owner about who can contact them.
Please help me understand. I am planning the release tomorrow and will appreciate you feedback.
Regards
Brajesh