Replies
- Ravi on January 6, 2021 at 12:38 pm in reply to: Own user's profile – Activity tab, Other users profile – Profile tab #35264
Hello Martin,
Thank you for posting here. Please let me know are you using BuddyPress or BuddyBoss Plateform.
Please have look here:
// For BuddyPress
https://buddydev.com/support/forums/topic/default-tab-for-connected-members/#post-35229// For BuddyBoss
https://buddydev.com/support/forums/topic/default-tab-for-connected-members/#post-35253Let me know if it works or not.
Regards
Ravi - Ravi on January 6, 2021 at 12:33 pm in reply to: [Resolved] User can report their own comment – Buddypress Moderation Tool #35262
Hello Muzammil,
Thank you for posting. Please try the following code.
/** * Modify report button args. * * @param array $args Array. * * @return array */ function buddydev_modify_report_button_args( $args ) { if ( 'bp_acomment' != $args['item_type'] ) { return $args; } if ( bp_loggedin_user_id() == bp_get_activity_comment_user_id() ) { return array(); } return $args; } add_filter( 'bpmts_report_button_args', 'buddydev_modify_report_button_args' );
Regards
Ravi - Ravi on January 6, 2021 at 12:24 pm in reply to: Not working with Gravity Form registration form #35261
Hello Mical,
We are looking into it. We will update you in 24 hrs.
Regards
Ravi - Ravi on January 6, 2021 at 12:23 pm in reply to: [Resolved] Default Tab for Connected Members #35260
Hello Matthew,
Please remove all the custom code and use above mentioned code. Please copy code from here and then check.
Regards
Ravi - Ravi on January 6, 2021 at 12:21 pm in reply to: [Resolved] Reply to comment button not working in buddypress stream activities #35259
- Ravi on January 6, 2021 at 12:20 pm in reply to: [Resolved] Reply to comment activity not working #35258
Hello Audiomonk,
It seems you are overriding the template. Please take a look here:
https://wp.me/pLVLj-TNRegards
Ravi Hello Mathew,
It seems you are using BuddyBoss. What they are doing is overriding default component with nouveau option. Try the following code it will override default tab in nouveau settings.
/** * Modify default tab. */ function buddydev_modify_default_tab( $tab ) { if ( ! is_user_logged_in() || bp_is_my_profile() || ! bp_is_active( 'friends' ) ) { return $tab; } // If both are friends set default tab to profile otherwise activity. if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { return 'friends'; } return 'profile'; } add_filter( 'bp_member_default_component', 'buddydev_modify_default_tab' );
Regards
RaviHello Matthew,
Thank you for posting. Please try the following code and modify as per your requirement.
/** * Modify default tab. */ function buddydev_modify_default_tab() { if ( ! is_user_logged_in() || bp_is_my_profile() || ! bp_is_active( 'friends' ) ) { return; } // If both are friends set default tab to profile otherwise activity. if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { define( 'BP_DEFAULT_COMPONENT', 'profile' ); } else { define( 'BP_DEFAULT_COMPONENT', 'activity' ); } } add_action( 'bp_setup_globals', 'buddydev_modify_default_tab', 15 );
Please let me know if it works or not.
Regards
Ravi- Ravi on January 4, 2021 at 4:29 pm in reply to: Not working with Gravity Form registration form #35227This reply has been marked as private.
Hello Mathew,
Sorry for the inconvenience. Please use the following URL:
Please let me know if you need further assistance.
Regards
Ravi