BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37468

    Hey Brajesh,

    thanks for your answer. i have posted your code to the buddyboss support. don´t know if they will fix this.
    hope so.
    we don´t have a possibility to fix this with a custom function in the functions.php?

    cheers

  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37432

    Hey there,

    Ok i see. I can give this to the buddyboss team.

    Do you have any suggestions how such a simple filter has/could to look like?
    Therefore the development could be speed up in the buddyboss team.

    Cheers

  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37402

    Hey Brajesh,

    i found the problem with the missing button. it is the same problem:

    <?php if( bp_is_user_profile_edit() || bp_is_user_change_avatar() || bp_is_user_change_cover_image() ) { ?>
    	<header class="profile-header flex align-items-center">
    		<h1 class="entry-title bb-profile-title"><?php esc_attr_e( 'Edit Profile', 'buddyboss-theme' ); ?></h1>
    		<a href="<?php echo $profile_link; ?>" class="push-right button outline small"><i class="bb-icon-user-small"></i> <?php esc_attr_e( 'View My Profile', 'buddyboss-theme' ); ?></a>
    	</header>
    <?php } ?>

    when i change this <?php if( bp_is_user_profile_edit() || bp_is_user_change_avatar() || bp_is_user_change_cover_image() ) { ?>
    to this
    <?php if( ! bp_is_current_action( 'public' ) ) { ?>
    the button is shown.
    But the profile section above is still shown. i have no clue why it is showing the profile section above only on custom tab with your plugin?

    cheers

  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37399

    hey Brajesh,

    thanks for your help. the sidebar is showing. but it does not use the same layout.
    the content of the original tabs are showing with no profile section and a button (view profile) in the upper right corner.

    the content of custom tabs with your plugin is shown with the profile header section and no button in the upper right corner.

    when you check the account settings page and add a custom nav from your plugin everything looks great. this is the behavior i was looking for.
    this is the code from the settings.php
    maybe this helps you finding the problem:

    <div class="bp-settings-container">
    	<?php if ( bp_core_can_edit_settings() ) : ?>
    		<?php bp_get_template_part( 'members/single/parts/item-subnav' ); ?>
    	<?php endif; ?>
    
    	<div class="bb-bp-settings-content">
    		<?php
    		switch ( bp_current_action() ) :
    			case 'notifications':
    				bp_get_template_part( 'members/single/settings/notifications' );
    				break;
    			case 'capabilities':
    				bp_get_template_part( 'members/single/settings/capabilities' );
    				break;
    			case 'delete-account':
    				bp_get_template_part( 'members/single/settings/delete-account' );
    				break;
    			case 'general':
    				bp_get_template_part( 'members/single/settings/general' );
    				break;
    			case 'profile':
    				bp_get_template_part( 'members/single/settings/profile' );
    				break;
    			case 'invites':
    				bp_get_template_part( 'members/single/settings/group-invites' );
    				break;
    			case 'export':
    				bp_get_template_part( 'members/single/settings/export-data' );
    				break;
    			case 'reported-content':
    			case 'blocked-members':
    				bp_get_template_part( 'members/single/settings/moderation' );
    				break;
    			default:
    				bp_get_template_part( 'members/single/plugins' );
    				break;
    		endswitch;
    		?>
    	</div>
    </div>
    
  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37396

    Hey there,

    Thanks for your reply. Could you tell me where i can find the right place to add/ change this?

  • Participant
    Level: Initiated
    Posts: 8
    Steffen Metzka on #37360

    Hey Brajesh,

    Thanks for your help. Yes i am comfortable with modifying the template. You can tell me what to do? At the same time i am in contact with the buddyboss support. (Nothing heard from them till now)

    Maybe they are also interested in fixing this in future updates.
    Therefore i am looking to hear from you.
    Cheers

Subscribe