This topic has 15 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #2008
     Harvinder
    Participant

    Hi,

    How do I get the profile to display personal information and images next to the avatar like the demo?

    Thanks
    Harvinder

    #1679
     drweyant
    Participant

    Hi,
    The profile field info shown to the right of your profile images is not showing on our install. Any ideas?
    Thanks in advance.

    See pics below:

    Mine: http://untci.org/wp-content/uploads/2013/08/mine-938×582.jpg

    Yours: http://untci.org/wp-content/uploads/2013/08/yours-938×614.jpg

    #1709
     SQadmin
    Keymaster

    Hi,
    I see you have changed the name of the profile field groups. You need to change what groups should display in that tabs. Please check this topic to see how you can change the displayed tabs: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image

    Cheers

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

    I have fixed this now using information from:

    https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image

    The problem was i had changed the profile field names and therefore needed to change them in the child themes “fucntions.php” file.

    Thanks
    Harvinder

    #2027
     SQadmin
    Keymaster

    Yes exactly. Good job

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

    Can you please post *exactly* what you are changing in the code provided at the link above & where you are getting the info from? I’m replacing the info with what I think is the right info (field name and group name) but NOTHING is happening.

    Thank you in advance for any assistance. I am so frustrated.

    #2079
     Harvinder
    Participant

    @drweyant what are you trying to achieve?

    #2080
     drweyant
    Participant

    I also changed the names of some of the profile field information and cannot get it to display next to the user avatar on the profile pages. I’m curious what you changed in the original code provided at the thread link you referenced above to get yours to show. Clearly I am missing something 🙂 Thanks!

    #2081
     Harvinder
    Participant

    You need to change it in the child themes functions.php.

    Use the code below to show the information next to the avatar. But change “Personal Info” to whatever your profile field groups are called.

    $bp_tabs[‘Personal Info’] = array(
    ‘type’ => ‘regular’,
    ‘name’ => apply_filters(‘kleo_extra_tab1’, __(‘Personal Info’, ‘kleo_framework’)),
    ‘group’ => apply_filters(‘kleo_extra_tab1’, ‘Personal Info’),
    ‘class’ => ‘regulartab’
    );

    Hope that helps.

    #2083
     drweyant
    Participant

    Thanks!

    do the ‘name’ & ‘group’ “Personal Info” fields have to match? Am I calling the field name in one and the group name in the other? I think that’s where I’m getting confused.

    #2084
     Harvinder
    Participant

    Yes both name & group must match, that code is for one whole field group.

    #2085
     drweyant
    Participant

    Awesome, thanks so much for taking the time to help!

    #2087
     drweyant
    Participant

    Thanks for the response. I’ve tried to follow what is provided in the thread above, as well as this thread: https://archived.seventhqueen.com/forums/topic/help-profile-info#reply-2084

    Nothing works, and when I make the changes supplied in the latter thread, my site returns a server error.

    I’m very frustrated and very lost. Please help me get this going.

    #2095
     SQadmin
    Keymaster

    Hi,
    ‘name’ it is the name you want to appear on the tab name
    ‘group’ => is the group name you want to show profile fields from

    Thanks @Harvinder

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

    Still nothing. I copied the code exactly as above, changed the data to match my group name and still nothing is showing.

    #2103
     SQadmin
    Keymaster

    Hi,
    So to add the “Personal Info” tab this is the complete code like in the link I first sent:

    COPY CODE
    
    
    add_action('after_setup_theme','kleo_my_tab');
    function kleo_my_tab()
    {
        global $bp_tabs;
        $bp_tabs[] = array(
            'type' => 'regular',
            'name' => __('Personal Info', 'kleo_framework'),
    'group' => __('Personal Info', 'kleo_framework'),
            'class' => 'regulartab'
        );
     
    }
    

    PS: The name and group are case sensitive.
    Make sure you have the child-theme activated
    Make sure the user has filled data in that group

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 16 posts - 1 through 16 (of 16 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?