14 pointsStarting to get into this DEV thingI'm new here
fertilepress
Member
—
20th July 2010
How do I change the size of the large avatar on the single group detail page. I have tried uploading a smaller image, but it still resizes it to 150x150 pixels.
How do I change the size of the large avatar on the single group detail page. I have tried uploading a smaller image, but it still resizes it to 150x150 pixels.
Sure thing! If you don't want to modify bp-core-avatars.php, you can add the following to plugins > bp-custom.php.
<?php</p>
<p>if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
define( 'BP_AVATAR_THUMB_WIDTH', 50 );
//change this with your desired thumb width</p>
<p>if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
define( 'BP_AVATAR_THUMB_HEIGHT', 50 );
//change this with your desired thumb height</p>
<p>if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
define( 'BP_AVATAR_FULL_WIDTH', 80 );
//change this with your desired full size,weel I changed it to 260 <img src="http://buddydev.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley"> </p>
<p>if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
define( 'BP_AVATAR_FULL_HEIGHT', 80 );
//change this to default height for full avatar</p>
<p>?>
Responses (3)
Member — 20th July 2010 #
Resolved: Found it in bp-core-avatars.php.
Founder & CEO — 20th July 2010 #
Cool, thanks for sharing the fix too - it'll help other people searching for this kind of thing.
Member — 20th July 2010 #
Sure thing! If you don't want to modify bp-core-avatars.php, you can add the following to plugins > bp-custom.php.
<?php</p><p>if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
define( 'BP_AVATAR_THUMB_WIDTH', 50 );
//change this with your desired thumb width</p>
<p>if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
define( 'BP_AVATAR_THUMB_HEIGHT', 50 );
//change this with your desired thumb height</p>
<p>if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
define( 'BP_AVATAR_FULL_WIDTH', 80 );
//change this with your desired full size,weel I changed it to 260 <img src="http://buddydev.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley"> </p>
<p>if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
define( 'BP_AVATAR_FULL_HEIGHT', 80 );
//change this to default height for full avatar</p>
<p>?>
Become a member