This topic has 3 replies, 1 voice, and was last updated 10 years by hugblue.

  • Author
  • #13343
     hugblue
    Participant

    Hi Abe ..

    I need your help ..

    I had to reinstall the whole site duo to errors and duo to learning.

    When i reinstalled wp and everything.

    At that time no info was shown in the profiles pages ..

    This is the old link :
    https://archived.seventhqueen.com/forums/topic/no-info-is-shown

    Now when i reinstalled it all. Then the functions.php in child is almost empty.
    And the $bp_tabs is not there. I copied the child from the last update.

    Now when i replace the functions.php text from the last post.
    Then it show nothing. Both in english and Bulgarian.

    So i need to know if the things have changed or why it is not showing anything.

    Thz.

    #13474
     hugblue
    Participant

    When i open my child functions.php .. Then it looks like this :

    <?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
    */
    ?>

    Then i add this :

    //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’
    );
    }
    }

    But then it shows nothing in the user profile fields :
    About me and so on ..

    Have something changed in the latest update or do i need to activate something ?

    And when i do not add this code then it workd . In english.
    But it shows nothing in the translated language.

    #13478
     hugblue
    Participant

    And when i redownload the sweet date files :

    Then in the child functions.php it looks like this :

    <?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
    */
    ?>

    #13506
     hugblue
    Participant

    I got it sorted ..

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

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

Log in with your credentials

Forgot your details?