Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • Horoshiy
    Participant

    @horoshiy

    Thanks in advance…

    Horoshiy


    Horoshiy
    Participant

    @horoshiy

    furthermore, function bp_has_members(); returns no members!!!


    Horoshiy
    Participant

    @horoshiy

    ok, thank you for help! I’ll do it by grouping, it’ll be better…


    Horoshiy
    Participant

    @horoshiy

    Maybe I should be more concrete. My main task is to get profile fields structured inside the profile page. I need to place fields in 3 columns and in right order. So let’s imagine that we have 9 fields: Login, email, password, First Name, Last Name, Middle Name, Country, City, Address, Place of birth, Date of birth. I need to place Login, E-mail and Password in the first column in the page, First name, Last name and Middle name in the second column and Country, City, Address, Place of birth and Date of birth in the third column.
    So i have field id’s which i can place in my profile page.

    Should i do it like this?


    echo '

    ';
    $field = new BP_XProfile_Field( '1' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '

    ';

    $field = new BP_XProfile_Field( '2' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '

    ';

    $field = new BP_XProfile_Field( '3' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '';

    echo '

    ';
    /* and so on */

    am I right?


    Horoshiy
    Participant

    @horoshiy

    no-no-no… I think you didn’t understand me… I need to get field name by id but there is NO function

    “xprofile_get_field_NAME( $field_name_or_id [, optional $user_id] )”

    such as “xprofile_get_field_DATA( $field_name_or_id [, optional $user_id] )” which exists.

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar