Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can\'t get some parameters inside my Site Members Loop

  • Avatar of nicosFR
    nicosFR
    Participant

    @nicosfr

    Hi ! I’m new here so I hope I won’t ask too many stupid questions.

    I wrote a Site Members Loop based on the documentation that looks like that:

    <ul id="members-list" class="item-list">
    <?php while ( bp_site_members() ) : bp_the_site_member(); ?>

    <li>

    <a href="<?php bp_the_site_member_link() ?>">
    <?php echo bp_get_the_site_member_avatar() ?>
    </a>
    <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a> -
    <?php bp_the_site_member_last_active() ?><br />
    <?php bp_the_site_member_total_friend_count() ?> amis -
    <?php bp_the_site_member_add_friend_button() ?>
    </li>

    <?php endwhile; ?>
    </ul>

    I can retrieve the member’s avatar, name, link and activity juste fine, but can’t get the friend count or the add friend button…

    Did I get something wrong about those custom BP Loops and template tags ?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    This might sound silly, but make sure you have the friend component turned on.

    Otherwise, just looking at your code compared to the current trunk, it looks to me like it should work? Judges?

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Had a chance to read over this again… deleted what I wrote because I didn’t read the initial post properly.

    Avatar of nicosFR
    nicosFR
    Participant

    @nicosfr

    Friends component is on… I can access the button and friend count on the member page (via the default member theme)…

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

You must be logged in to reply to this topic.