Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't get some parameters inside my Site Members Loop


  • 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"><br />
    <?php while ( bp_site_members() ) : bp_the_site_member(); ?><br />
    <br />
    <li><br />
    <br />
    <a href="<?php bp_the_site_member_link() ?>"><br />
    <?php echo bp_get_the_site_member_avatar() ?><br />
    </a><br />
    <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a> -<br />
    <?php bp_the_site_member_last_active() ?><br /><br />
    <?php bp_the_site_member_total_friend_count() ?> amis -<br />
    <?php bp_the_site_member_add_friend_button() ?><br />
    </li><br />
    <br />
    <?php endwhile; ?><br />
    </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)

  • 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?


    r-a-y
    Keymaster

    @r-a-y

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


    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)
  • The topic ‘Can't get some parameters inside my Site Members Loop’ is closed to new replies.
Skip to toolbar