Skip to:
Content
Pages
Categories
Search
Top
Bottom

how get profile image information from database?


  • dork7
    Participant

    @dork7

    Hey! i am developing a plugin for my client…
    i would need all the user’s avatars..currently site is saving image’s names in ‘wp_yz_media’ table (using youzers add on)… but there’s no information about the users….
    user’s information is in ‘wp_signups’ …

    i have tried using this
    global $bp;
    $the_user_id = $bp->loggedin_user->userdata->ID;

    but this gives me info about the current logged in user…

    is there any way of getting all the users info?

    or is there any other table in which buddypress stores all the info ?

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

  • Wens gordijnen
    Participant

    @wensgordijnen52

    I also tried to install my profile photo. But that didn’t just happen. You will be redirected to another website. Vouwgordijnen


    Carlen
    Participant

    @carlen

    You can use for logged in user:
    bp_displayed_user_avatar( ‘type=full’ );

    if calling within a group:
    bp_group_member_avatar();

    or in general (this is pulled for admin of a group, but can be set up in other ways):
    bp_core_fetch_avatar( array( ‘item_id’ => $admin->user_id, ’email’ => $admin->user_email, ‘type’ => ‘full’ ) )

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