Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

Difference between bp_loggedin_* and bp_displayed_* functions (2 posts)

Started 5 months ago by: shatter_

  • Profile picture of shatter_ Nicolas Crocfer said 5 months ago:

    Hello everyone,

    I am currently working on a project related to BuddyPress (by the way thank you for this excellent plugin) and I asked myself a question :
    In one of the pages of my theme I created a hook. Then in my plugin I created a function (related to the hook) to display the avatar of the user.

    I used the following function :
    bp_displayed_user_avatar( 'type=full' );

    But nothing was displayed. When looking around I noticed the bp_loggedin_user_avatar() function which fully displayed my avatar.
    I do not understand why the first function is not displayed as it used to other places in the code, for example in /members/single/member-header.php.

    And this problem is the same for the other functions of the family bp_displayed_ *. Do you have any idea please?

    Thank you, shatter

  • Profile picture of modemlooper modemlooper said 5 months ago:

    If it’s a members page use bp_core_fetch_avatar()