Skip to:
Content
Pages
Categories
Search
Top
Bottom

customizing members list


  • carosch
    Participant

    @carosch

    Hello,

    I’m tring to customize both members lists.
    The one which is global, and the one which is display in a group.

    I succed to change the link which is on the member name to get directly to the profile page.
    I succed to add the nicename.

    How can I do the same in the members list which is into the group?

    And I need to add other informations that comes from additional fields.
    How can I do that ?

    Carosch

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

  • carosch
    Participant

    @carosch

    I tried

    <?php if ( bp-tables-user_has_meta() ) : ?>
                            <p><?php echo profile-fields(field_3); ?></p>
    <?php endif; ?>

    but that doesn’t work, the members list just doesn’t display at all.


    carosch
    Participant

    @carosch

    Hi,

    please, is there someone who could help me ?

    Carosch


    clickallco
    Participant

    @clickallco

    In Legacy the code for the member list is something like this

    <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
      <li>
        <a href="<?php bp_group_member_domain(); ?>">
          <?php bp_group_member_avatar_thumb(); ?>
        </a>
        <?php bp_group_member_link(); ?>
      </li>
    <?php endwhile; ?>

    and to call the profile field data its

    <?php echo xprofile_get_field_data( 'name of profile field', $user_id; ?>

    Where $user_id would be whichever user you’re handling.

    These are just examples but maybe it could get you somewhere.


    carosch
    Participant

    @carosch

    Hi,

    thank you again!
    I answer you in the other thread I made, because I thought I wasn’t in the right one.

    Caroline


    Varun Dubey
    Participant

    @vapvarun

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar