[buddypress-trac] [BuddyPress] #2152: no way to retrieve group avatar from ID

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Apr 11 19:24:18 UTC 2011

#2152: no way to retrieve group avatar from ID
  Reporter:  mikepratt    |      Owner:  calvin_42
      Type:  enhancement  |     Status:  accepted
  Priority:  major        |  Milestone:
 Component:  Groups       |    Version:  1.3
Resolution:               |   Keywords:

Comment (by cnorris23):

 The other component avatar functions don't accept ids as parameters. The
 reason for this is because they are being used within their respective
 loops, which is why it wasn't done like this in the first place. As
 mikepratt stated earlier bp_core_fetch_avatar works just fine for this.
 The bp_get_*_avatar() functions are just a wrapper for
 bp_core_fetch_avatar() to be used inside the component's loop. That being
 said, if it were to be done, you'd need to update the other functions like
 bp_get_member_avatar(), bp_displayed_user_avatar(),
 bp_loggedin_user_avatar(), and bp_get_blog_avatar(). The patch should also
 be created against trunk rather than the 1.2 branch.

Ticket URL: <https://trac.buddypress.org/ticket/2152#comment:4>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list