This topic has 9 replies, 2 voices, and was last updated 11 years by Laura.

  • Author
  • #39285
     sealagency
    Participant

    hello,

    I ask you to help with a problem I can not solve,

    We added and modify user profile fields and categories. As you can see from the attached file.
    I would like to
    – Change the name of the category “base” and that it always appears in the top face of the avatar, now if i change the name category “base” to “profile” for example, it disappears in front of the avatar.
    – Change the display order always in front of the current avatar: At the present moment “Base – photo”, to “Apropos de moi, Profil (change from base), Photos”

    Thanks for help

    #39306
     Laura
    Moderator

    Hello, you can share with me your ftp and wp-admin, also what tabs you want to show next to profile photo? please say the name as you want it. Order and any other tip for me to help you fix it 🙂

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

    Thank you for your quick response.

    my sftp:
    user : pat
    pw : wFs4e74_m

    admin wp:
    id : admin
    pw : cGklbU8R6f3V

    in Utilisateurs->champs de profil i have the categories :
    – Base (Primaire)
    – A propos de moi
    – Acteur – comédien – figurant
    – …….

    i want have:
    Profil (Primaire)
    – A propos de moi
    – Acteur – comédien – figurant
    – …….

    And in my profil page i want see in front of the current avatar the button diplay the data of :
    – A propos de moi -> open by default
    – Profil
    – photos

    I hope is clear … I am not Anglophone!
    Called me how you made that I may understand
    Thank you

    #39400
     Laura
    Moderator

    Hello, i need your website link in order to add it for you, i will share the code and tell you how to do it 🙂
    Go to sweetdate child theme functions.php and add the following:

    COPY CODE
    
    //Profile tabs
     
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
        global $bp_tabs;
        $bp_tabs = array();
    /* This is the code you need to use as a base for each profile tab, the display changes if you use 
    Regular type or Cite tab, cite is a quote, bigger style for a lot of text, while regular is small
    When wanting to change the style, change it at type and class , citetab , regulartab 
    You can start to copy the custom code from here */
        $bp_tabs['CUSTOMGROUP'] = array(
                'type' => 'regular',
                'name' => __('Profil', 'kleo_framework'),
                'group' => 'Profil',
                'class' => 'regulartab'
        );
    /* To here, the above code is what you need to copy and paste to make new tabs.
    The order of the tabs changes as it is in the code. */
                 $bp_tabs['A-propos-de-moi'] = array(
                'type' => 'regular',
                'name' => __('A propos de moi', 'kleo_framework'),
                'group' => 'A propos de moi',
                'class' => 'regulartab'
        );
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('Photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }    
        
    } 
    

    Acteur – comédien – figurant are separated groups? or 1? I suggest to not use special symbols as names like –
    This code explains how to do it, also check:
    https://archived.seventhqueen.com/forums/topic/how-to-add-tabs-next-to-profile-image-extended

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

    YES !
    it’s work perfectly with this code

    COPY CODE
      .....
       $bp_tabs['A propos de moi'] = array(
                 $bp_tabs['A propos de moi'] = array(
                'type' => 'cite',
                'name' => __('A propos de moi', 'kleo_framework'),
                'group' => 'A propos de moi',
                'class' => 'citetab'
        );
    
        $bp_tabs['Profil'] = array(
                'type' => 'regular',
                'name' => __('Profil', 'kleo_framework'),
                'group' => 'Profil',
                'class' => 'regulartab'
        );
    
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('Photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }

    Very big thanks
    If I could I would do you a kiss!

    Acteur – comédien – figurant are separated groups? or 1? I suggest to not use special symbols as names like –
    This code explains how to do it, also check:

    Yes is one group, but this group is not use in custom tabs. It’s annoying to use “-” anyway?
    I can use “,” but I prefer “-” …

    #39693
     Laura
    Moderator

    Hello, so its solved or need something else?

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

    Hello,

    In the same vein, some members send videos via rtmedia in their albums, is it possible to add a tab “videos” and display thumbnail or something. Because now there is no indication that a profile has video!

    Thanks

    #43063
     Laura
    Moderator

    Hello, i know rtmedia pro adds some features like playlists tab, you can check it out here: https://rtcamp.com/products/rtmedia-pro/

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

    Hello Laura,

    Yes rtmedia pro adds some features, but i do not think the value for money is very profitable …

    #43361
     Laura
    Moderator

    Hello, you can try looking for a plugin that does that in https://buddypress.org/extend/plugins/

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

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

Log in with your credentials

Forgot your details?