This topic has 3 replies, 2 voices, and was last updated 10 years by Catalin.

  • Author
  • #31463
     sermsak
    Participant

    Hello.

    From this topic

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

    1. I “Add New Filed Group” name “My photos”
    2. In Filed Group name “My photos” , i “Add New Filed” name “My photos”
    3. I already ACTIVATE Child Theme.
    4. Modified in sweetdate-child/functions.php with your code below:

    add_action(‘after_setup_theme’,’kleo_my_actions’);

    function kleo_my_actions()
    {
    global $bp_tabs;
    $bp_tabs = array();

    $bp_tabs[‘base’] = array(
    ‘type’ => ‘regular’,
    ‘name’ => apply_filters(‘kleo_extra_tab2’,__(‘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 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’ => __(‘My photos’, ‘kleo_framework’),
    ‘class’ => ‘mySlider’
    );
    }

    $bp_tabs[‘looking-for’] = array(
    ‘type’ => ‘cite’,
    ‘name’ => apply_filters(‘kleo_extra_tab1’, __(‘Looking for’, ‘kleo_framework’)),
    ‘group’ => apply_filters(‘kleo_extra_tab1’, ‘Looking for’),
    ‘class’ => ‘citetab’
    );

    }
    ——————————–

    The result is-
    It show only “About me” and “Looking for”
    But “My photos” disappear.

    Please help
    Thank You

    #31528
     Catalin
    Moderator

    do you have rt-media plugin installed?

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

    Yes.

    #32131
     Catalin
    Moderator

    You don’t need to add a group My photos, nor a field. That tab will automatically appear if you have rtmedia installed and the user you are viewing added pictures from the Media tab

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

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

Log in with your credentials

Forgot your details?