This topic has 1 reply, 1 voice, and was last updated 10 years by egabillat.

  • Author
  • #7999
     egabillat
    Participant

    Hi
    I have read this topic :
    https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display
    But it work half !
    In the profil configuration I have a Tab named ‘Profil (initial) with the fields “Je suis” and “Je recherche” I want to display.
    I have another Tab named “Presentation” with only a Multi-line Text Box field named “Présentez-vous”.
    I wan to display “Je suis”/”Je recherche” : this work
    and under I want to display the text field “Presentation” : this don’t work !!!
    This is the code I used :
    <?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
    */

    add_action(‘after_setup_theme’,’kleo_my_custom_tabs’);
    function kleo_my_custom_tabs()
    {
    global $bp_tabs;
    $bp_tabs = array();

    $bp_tabs[‘base’] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘Profil’, ‘kleo_framework’),
    ‘group’ => ‘Profil’,
    ‘class’ => ‘regulartab’
    );
    $bp_tabs[] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘Presentation’, ‘kleo_framework’),
    ‘group’ => ‘Presentation’,
    ‘class’ => ‘regulartab’
    );
    /* rtMedia tab – only if plugin installed */
    if (class_exists(‘RTMedia’))
    {
    $bp_tabs[‘rtmedia’] = array(
    ‘type’ => ‘rt_media’,
    ‘name’ => __(‘Mes 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’
    );
    }
    }

    add_action(‘after_setup_theme’,’kleo_my_member_data’);
    function kleo_my_member_data()
    {
    global $kleo_config;
    //this is the details field, right now it take the “About me” field content
    $kleo_config[‘bp_members_details_field’] = ‘Profil’;
    //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    $kleo_config[‘bp_members_loop_meta’] = array(
    ‘Je suis’,
    ‘Je recherche’,
    ‘Présentez-vous’
    );

    }

    ?>

    Do you have an idea ?
    And, if possible, I don’t want the age field to appear !

    Thank You.

    #8077
     egabillat
    Participant

    Resolved !
    Thank you… 😉

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

The topic ‘Member text does not display’ is closed to new replies.

Log in with your credentials

Forgot your details?