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

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Mar 7 22:56:41 UTC 2010

#2152: no way to retrieve group avatar from ID
Reporter:  mikepratt    |       Owner:     
    Type:  enhancement  |      Status:  new
Priority:  major        |   Milestone:     
Keywords:               |  
 bp_group_avatar does not return the group avatar when fed a group ID.

 If it was not meant to, then there is no way to return a group avatar via
 a group ID.

 The following works, to some degree, as a workaround:

 $bp->groups->current_group = new BP_Groups_Group( $group_id );

 bp_group_avatar() returns the group thumb even if 'type' is set to 'full'

 This is basically a request for the exposing of all group related fields
 (name, desc, avatar, etc) for a given ID.

 Otherwise it forces the use of a loop or object instantiation just to
 return some data

Ticket URL: <http://trac.buddypress.org/ticket/2152>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list