[buddypress-trac] [BuddyPress] #3500: Get correct avatar thumbnail size in single activity view

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Aug 20 13:05:25 UTC 2011


#3500: Get correct avatar thumbnail size in single activity view
----------------------+-----------------------------
 Reporter:  Jonnyauk  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Awaiting Review
Component:  Core      |    Version:
 Severity:  normal    |   Keywords:  has-patch
----------------------+-----------------------------
 When you are viewing a single activity item the size parameters are set
 correctly to fetch the avatar ($bp->avatar->full->height,
 $bp->avatar->full->width), but the actual image file fetched is the
 smaller thumbnail.

 '''FILE:''' bp-activity/bp-activity-template.php
 '''FUNCTION:''' bp_get_activity_avatar()
 In bp_get_activity_avatar() there is a check for this, but the $type
 variable is still set to 'thumb' from when it is called in bp-themes.bp-
 default/activity/entry.php

 Patch attached for bp_get_activity_avatar() function
 1) Double check it is a single activity view
 2) Stop $type variable being polluted, set to 'full' to pass onto
 bp_core_fetch_avatar()

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3500>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list