This topic has 13 replies, 4 voices, and was last updated 10 years by frien337.

  • Author
  • #6267
     frien337
    Participant

    Hello Everyone,

    I need some help with the profile fields/tabs that display next to the profile picture. I have managed to add a custom tab to the profile page. My custom tab shows perfectly fine when viewing the default wall page of the profile, however, if I view the profile page, all of the About Me tabs are pulled in and displayed next to the profile image.

    Can you tell me how I can stop this from happening? I only want my custom tab to show when viewing the profile page.

    Thanks,
    Ryan

    #6294
     Douweboschma
    Participant

    Hi, just an idea. I am not a pro but it is a suggestion. Did you try to set “Per-Member Visibility” of all the options in the base tab to “Nobody”? It might make the label disappear.

    #6296
     adam
    Participant

    this or something like it is in your functions.php, right?

    COPY CODE
    
    function kleo_my_custom_tab()
    {  
        global $bp_tabs;
        
        $bp_tabs['base'] = array(
            'type' => 'regular',
            'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')),
            'group' => 'About Me',
            'class' => 'regulartab'
        );
    
      /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                'type' => 'rt_media',
                'name' => __('Our photos', 'kleo_framework'),
                'class' => 'mySlider'
            );
        }
      /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init') AND sq_option('bp_album', 1) == 1)
        {
            $bp_tabs['bp-album'] = array(
                'type' => 'bp_album',
                'name' => __('Our Photos', 'kleo_framework'),
                'class' => 'mySlider'
            );
        }
    

    just delete this part:

    COPY CODE
    
     $bp_tabs['base'] = array(
            'type' => 'regular',
            'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')),
            'group' => 'About Me',
            'class' => 'regulartab'
        );
    
    #6297
     adam
    Participant

    Wait, I think you’re talking about the Profile View under Profile on the nav. If so, not sure. Sorry 🙂

    #6316
     SQadmin
    Keymaster

    Hi @frien337,
    Since we all understood different thing, try to exemplify with some screen-shots

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6402
     frien337
    Participant

    Hello Everyone,

    Thanks for all of your suggestions. Please have a look at what I am trying to do by refering to these screenshots.


    @Douweboschma
    : I had a look at doing that but I can’t set the display option to “nobody” for some fields, like the username.

    @adam
    : I gave that a try too but it also did not work for me.

    Everything works fine when I view the wall tab and only when I click on the profile tab do the additional profile fields show. If there is no way to turn off specific fields, would you be able to tell me how I can disable all of them from showing? If I can disable all of them, then I should be able to manually add in the required fields using “bp_member_profile_data( ‘field=About Me’ );”
    I did look at the member-header.php file and all that I can see is the avatar, title and matchmaking code. unless I am missing something…

    Thanks and look forward to your responses.
    Ryan

    #6482
     frien337
    Participant

    Any ideas?

    #6488
     adam
    Participant

    it looks like your About Me fields are showing up like if it was the Looking For section. Have a look at this:
    https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
    my guess is that the About Me tab you created was set up with ‘type’ => ‘cite’, when it should be ‘type’ => ‘regular’, and ‘class’ => ‘citetab’ when it should be ‘class’ => ‘regulartab’.

    #6492
     frien337
    Participant

    Thanks Adam! However, that has not worked for me. Let me maybe explain this a bet better. I have added the following code to my child theme’s functions.php file:

    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
    global $bp_tabs;
    $bp_tabs = array();
    $bp_tabs['looking-for'] = array(
    'type' => 'cite',
    'name' => __('About Me', 'kleo_framework'),
    'group' => 'About Me',
    'class' => 'citetab'
    );

    }

    I left the cite and citetab in because I prefer the way in which it displays the field on the front end – regular seems to remove the styling and rather leaves it with a standard look. Anyway, the above code works perfectly when I view the profiles activity page (e.g.: http://www.website.com/members/user/activity/) and it pulls in the “About Me” field group just fine.

    However, when I click on profile (http://www.website.com/members/user/profile/) it shows the “About Me” field group as well as EVERY field from other field groups (username, country, borthdate, etc, etc.). The screenshots</a from before highlight this issue.

    So, how can I stop all of these fields being pulled into my profile page (http://www.website.com/members/user/profile/) and only display one field group?

    Thanks,
    Ryan

    #6497
     SQadmin
    Keymaster

    It doesn’t matter on what page you are on a profile page, the tabs will show the same thing. You can control what profile group to show using this topic https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image

    Please provide a link to your site to better understand your issue.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6563
     frien337
    Participant

    Hi Sqadmin,

    Unfortunately that doesn’t work for me 🙁 I have sent you an emailw ith my FTP details.

    Thanks,
    Ryan

    #6764
     frien337
    Participant

    Hello, I thought I’d let everyone know that this issue was caused by a plugin conflict and works fine once the plugin was deactivated 🙂

    #6767
     adam
    Participant

    let us know which plugin if you can because we might want to avoid it. thanks.

    #6845
     frien337
    Participant

    Sure 🙂 The plugin is “BP XProfile WordPress User Sync“. With that enable, it pulled through every field and added them to my profile header – it did not to the same for the activity wall, messages and friend pages.

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Remove About Me Fields from Profile View’ is closed to new replies.

Log in with your credentials

Forgot your details?