Skip to:
Content
Pages
Categories
Search
Top
Bottom

Solved – adding axtra profile fields in the members list into the group


  • carosch
    Participant

    @carosch

    Hello,

    – which is the file for the members list into a group?
    – how can I add, in this particular members list, profile fields that I have create?

    Carosch

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

  • clickallco
    Participant

    @clickallco

    Unless you have a theme or another custom plugin already overriding it somewhere else, here’s where you’ll find it inside the Buddypress plugin.

    Legacy
    buddypress > bp-templates > bp-legacy > buddypress > groups > single > members.php

    Nouveau
    buddypress > bp-templates > bp-nouveau >buddypress >groups > single > members-loop.php

    profile field
    <?php echo xprofile_get_field_data( 'profile field name', bp_get_member_user_id() ); ?>

    Remember to override the template with your own in your theme so plugin updates doesn’t override your changes.


    carosch
    Participant

    @carosch

    Hi,
    thank you for your answer.
    However, I found this solution :

    <p class="plist">Pour me tagguer dans un message, veuillez saisir : <strong>@<?php echo bp_member_user_nicename(); ?></strong><br />
    <strong>Je suis : </strong><?php echo bp_member_profile_data( 'field=Présentation personnelle' ); ?><br />
    <strong>Je représente :  </strong><?php echo bp_member_profile_data( 'field=Nom de la structure que je représente et ville pour les bibliothèques et les établissements scolaires' ); ?></p> 

    And I’ve put that in both members-loop.php from
    plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/members-loop.php
    and
    /plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php

    and that works just fine.

    thank you for your answer.
    I just wonder, I haven’t understand what xprofile is.

    Caroline

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