This topic has 22 replies, 2 voices, and was last updated 10 years by hugblue.

  • Author
  • #9791
     hugblue
    Participant

    Here is a profile that is finished 100%.
    But there is no info shown.

    I needed to change the profile fields inside of buddypress.
    Because WPML cannot translate what is in the database.

    I did try to understand the : functions.php

    And i am not sure if this could be the reason.

    So why is the info not being shown ?

    Here is 1 pictures :
    http://www.flickr.com/photos/113910914@N05/11977523445/

    #9884
     Abe
    Keymaster

    Hello,
    Please see this topic https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image

    You need to change the group name with your new one

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9893
     hugblue
    Participant

    Thz ..

    I have seen this link you showed here.
    But i am not sure what should be altered.

    #9895
     hugblue
    Participant

    I just changed some of the text in functions.php
    But it gave no result and it is still the same.

    I cannot see the logic in how it should be done.

    #9979
     Abe
    Keymaster

    Well give me your group names as in Users – Profile fields that you want to show there and I will adapt the code to show you

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9988
     hugblue
    Participant

    Thanks alot Abe ..

    These are the group names.

    Лични данни (About me)
    Обобщение за мен (Myself Summary)
    Търся (Looking for)
    Стил на живот (Lifestyle)
    Физически данни (Physical)

    I renamed the groups to these because it couldnt not work with WPML.
    So i needed both language in the same string.

    #10007
     hugblue
    Participant

    Have you looked at it Abe ?
    I really need this help to fix it.

    Thz.

    #10089
     hugblue
    Participant

    Can someone guide me in how this works :

    These are the new names :

    Лични данни (About me)
    Обобщение за мен (Myself Summary)
    Търся (Looking for)
    Стил на живот (Lifestyle)
    Физически данни (Physical)

    This is my code right now :


    <?php

    /**
    * @package WordPress
    * @subpackage Sweetdate
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Sweetdate 1.0
    */
    /**
    * Sweetdate Child Theme Functions
    * Add extra code or replace existing functions
    */
    //customize profile tabs

    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' => __('Looking for', 'kleo_framework'),
    'group' => 'Търся (Looking for)',
    'class' => 'citetab');
    $bp_tabs['base'] = array(
    'type' => 'regular',
    'name' => __('About me', 'kleo_framework'),
    'group' => 'Base',
    'class' => 'regulartab');
    /* rtMedia tab - only if plugin installed */
    if (class_exists('RTMedia'))
    {
    $bp_tabs['rtmedia'] = array(
    'type' => 'rt_media',
    'name' => __('My work', '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');
    }
    }

    Thz

    #10090
     hugblue
    Participant

    I did try change some of the names.
    But nothing did happen.

    #10092
     hugblue
    Participant

    So after every message i post ..
    I would have to wait 48 hour +++ to get a answer ?

    Just asking.

    After all i did pay for this theme.

    It would be easier if you just told me if you had no time.. OR …

    #10093
     hugblue
    Participant

    But i will look at the guide again and see if i can figure it out :

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

    With a little luck. Maybe i could.

    #10100
     Abe
    Keymaster

    Hey, Sorry for the delay. I will get back right away with the code for you

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #10102
     hugblue
    Participant

    Thz alot Abe ..

    #10119
     Abe
    Keymaster

    Here is the code:

    COPY CODE
    
    //my changes to profile tabs
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
    		
        $bp_tabs = array();
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' =>  "Лични данни (About me)", //this is the showed tab name
                'group' => 'Лични данни (About me)', // this must be the same as the profile fields group name
                'class' => 'regulartab'
        );
     
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => "Обобщение за мен (Myself Summary)",
                'group' => "Обобщение за мен (Myself Summary)",
                'class' => 'regulartab'
        );
     
        $bp_tabs[] = array(
    				'type' => 'regular',
    				'name' => "Търся (Looking for)",
    				'group' => "Търся (Looking for)",
    				'class' => 'regulartab'
        );
    		
        $bp_tabs[] = array(
    				'type' => 'regular',
    				'name' => "Стил на живот (Lifestyle)",
    				'group' => "Стил на живот (Lifestyle)",
    				'class' => 'regulartab'
        );
        $bp_tabs[] = array(
    				'type' => 'regular',
    				'name' => "Физически данни (Physical)",
    				'group' => "Физически данни (Physical)",
    				'class' => 'regulartab'
        );
    		
    		
    		
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My work', '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'
            );
        }
    }
    

    For it to work the names added above in the “group” attribute must exactly match the profile fields Group as in Users – Profile fields(even a white space after the name)

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #10128
     hugblue
    Participant

    Hi abe ..

    I inserted the code and double checked for group names, that they were correct.

    But it gives no result.

    It is still the same. Sorry.

    #10131
     hugblue
    Participant

    Hmm

    I tried to remove the cyrillic characters. Then it worked perfectly.

    So Abe. Is there any way to make it accept toher types of characters ???

    And im so happy for the code from you.

    Just need this last thing to be ok..

    And super many thanks.

    #10132
     hugblue
    Participant

    I changed all to english characters except for :
    Физически данни (Physical)
    So you can see all is functioning except for this one.

    When the page is switched to Bulgarian.
    All text in cyrillic can be showed.

    So is there a way for it to accept cyrillic in the group names ?

    Is a little strange. That in some places it works perfect.
    And in some other areas it soesnt work.

    #10133
     hugblue
    Participant

    And another thing ..

    All the translations with WPML, when translated :
    Name, Birthday, Looking for a, I am a, Marital status, City. Country

    Everything can be taken from WPML when swithcing language.

    Just not the group names.

    #10160
     Abe
    Keymaster

    Hi, Try leaving your name of the groups in English. Then modify the below code to match your group names and add it to the main theme functions.php at the end just before the ending ?> line
    After that this strings should appear in WPML string translation
    You’ll notice I have wrapped the name attribute in a translation tag __() and leaved the group attribute in the english name just like it is added in buddypress users profile fields

    COPY CODE
    
    //my changes to profile tabs
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
            
        $bp_tabs = array();
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' =>  __("About me","kleo_framework"), //this is the showed tab name
                'group' => 'About me', // this must be the same as the profile fields group name
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => __("Myself Summary", "kleo_framework"),
                'group' => "Myself Summary",
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                    'type' => 'regular',
                    'name' => __("Looking for","kleo_framework"),
                    'group' => "Looking for",
                    'class' => 'regulartab'
        );
            
        $bp_tabs[] = array(
                    'type' => 'regular',
                    'name' => __("Lifestyle","kleo_framework"),
                    'group' => "Lifestyle",
                    'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                    'type' => 'regular',
                    'name' => __("Physical","kleo_framework"),
                    'group' => "Physical",
                    'class' => 'regulartab'
        );
            
            
            
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My work', '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'
            );
        }
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #10168
     hugblue
    Participant

    Wow .. I am amazed .. Works so beautifully.

    – – – – –

    Now .. just a little last thing in this area.

    For the members the text swith perfect with WPML.

    – – – – –

    But in buddypress under :
    profile / edit

    Here the text is still in english.
    And i cannot find these under WPML.

    So what is the solution here ?

    I have added a picture :
    http://www.flickr.com/photos/113910914@N05/12115458315/

    #10171
     hugblue
    Participant

    Or i mean.
    I couldnt dind extra strings for these.
    And in WPML they are translated.
    But do not show up translated to Bulgarian.
    As you can see in the picture.

    #10178
     Abe
    Keymaster

    WOW great 🙂

    Unfortunately those are generated by Buddypress. please refer to WPML forum and maybe they have a solution

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #10180
     hugblue
    Participant

    I will try that.

    But again. Thz alot.

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

The topic ‘No info is shown’ is closed to new replies.

Log in with your credentials

Forgot your details?