I was working on a political buddypress social network site and couldn’t find how to resize an avatar like I wanted. After searching around for a bit and not finding a quick solution on how to modify a BuddyPress avatar size, I decided I’d post the solution. What I was trying to do was modify the default BuddyPress members plugin so I could output larger vcards that looked similar to Polaroids with a members name and BuddyPress custom profile field dubbed ‘affiliation’. Here is the example where I was trying this but should be able to use this anywhere in a buddypress install where you need an avatar sized:
Open /wp-content/plugins/buddypress/bp-core/bp-core-widgets.php and look for the LI class “vcard” around line 60. Then find the php tag which outputs the avatar:
and add ‘type=full&width=125&height=125′ including the ticks.
This will output a standard 35×35 avatar by default unless you changed the default somewhere else in the install. By researching the accepted parameters, found that I could set the type, height, and width. The reason I set type also was I didn’t want it using the default ‘thumb’ type of 35×35 and resizing up to 125×125 as it would look terrible.
I set the type as full so I could resize the 150×150 ‘Full’ image and not have a terrible looking picture.
Each parameter needs to be separated with a ‘&’. That is it, change the 125 in height and width to size to your needs.
Now my political supporters look great.