Replies
- Matthew Ling on January 6, 2021 at 1:39 pm in reply to: [Resolved] Default Tab for Connected Members #35277Ok I see the issue, THANK YOU SO MUCH FOR YOUR HELP AND PATIENCE!!! I really appreciate it!! 
- Matthew Ling on January 6, 2021 at 1:38 pm in reply to: [Resolved] Default Tab for Connected Members #35276Ok I see the issue, THANK YOU SO MUCH FOR YOUR HELP AND PATIENCE!!! 
- Matthew Ling on January 6, 2021 at 1:26 pm in reply to: [Resolved] Default Tab for Connected Members #35272This reply has been marked as private.
- Matthew Ling on January 6, 2021 at 1:08 pm in reply to: [Resolved] Default Tab for Connected Members #35270Yes, when I click on a user Im connected with it goes to 404 page, even though the url populates as https://youryous.com/members/username/. With the first code provided /** * 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', 'survey' ); } else { define( 'BP_DEFAULT_COMPONENT', ‘profile’ ); } } add_action( 'bp_setup_globals', 'buddydev_modify_default_tab', 15 );It directed to profile correctly but I want it to direct to a specific tab on their profile. 
- Matthew Ling on January 6, 2021 at 12:51 pm in reply to: [Resolved] Default Tab for Connected Members #35267This reply has been marked as private.
- Matthew Ling on January 6, 2021 at 12:38 pm in reply to: [Resolved] Default Tab for Connected Members #35263Hello, when I use the code as provided and go to the profile of someone I am connected with, I get a 404 error. 
- Matthew Ling on January 6, 2021 at 10:10 am in reply to: [Resolved] Default Tab for Connected Members #35257I still cant seem to get this to work. Should I be replacing $tabwith something else? here is what I pasted in php file.`/** 
 * 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 ‘my-survey’; 
 }add_filter( ‘bp_member_default_component’, ‘buddydev_modify_default_tab’ ); Sorry for all the confusion, I’m not great at php. 
- Matthew Ling on January 6, 2021 at 9:59 am in reply to: [Resolved] Default Tab for Connected Members #35256Disregard the msg about the error. Still working on the issue. 
- Matthew Ling on January 6, 2021 at 9:48 am in reply to: [Resolved] Default Tab for Connected Members #35255Actually that code gave me the following error. Parse error: syntax error, unexpected ‘ ‘ (T_STRING) in /home/customer/www/youryous.com/public_html/wp-content/plugins/bp-custom.php on line 10 
- Matthew Ling on January 6, 2021 at 9:44 am in reply to: [Resolved] Default Tab for Connected Members #35254Ok, so should this replace the previous code or be in addition to the previous code?