BuddyDev

Search

Profile User tab in the Buddyboss theme problem

  • 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

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #37454

    Hi Steffen,
    Please allow me to post on Monday with my suggestions.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #37464

    Hi Steffen,
    Thank you for the patience.

    here is an example.

    The should change this(from all the places they have used similar code)

    
    <?php if ( ! bp_is_user_messages() && ! bp_is_user_settings() && ! bp_is_user_notifications()&& ! bp_is_user_profile_edit() && ! bp_is_user_change_avatar() && ! bp_is_user_change_cover_image() ) : ?>
    
    

    to

    
    $show_profile_header =  ! bp_is_user_messages() && ! bp_is_user_settings() && ! bp_is_user_notifications() && ! bp_is_user_profile_edit() && ! bp_is_user_change_avatar() && ! bp_is_user_change_cover_image() ;
    
     if ( apply_filters('buddyboss_theme_show_user_profile_header', $show_profile_header ) ) : ?>
    
    

    Even better, they can put part of this code in a function like buddyboss_theme_is_user_profile_header_visible()`
    and use that at all the places they want to toggle the header.

    Now, we can control the header visibility via custom code easily.

    Regards
    Brajesh

  • 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

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #37495

    Hi Steffen,
    I am sorry for the issue.

    The only other solution is to override at least 3 files(member-header.php, cover-image-header.php and profile.php ). All these 3 files have same code for hiding/showing the header.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved