Avatar Size

Permalink
Hi

Where can I set the default image size for the avatar?
I tried adding to the site config file but that didn't work and editing the userblogify.php file but couldn't find any other reference anywhere else.

Thanks, Matt

Matteld80
 
TheRealSean replied on at Permalink Reply
TheRealSean
within application config/generated_overrides/concrete.php/

The following did it for me.
'icons' => append_config(array(
        'user_avatar'          => array(
            'width'   => 120,
            'height'  => 120,
            'default' => ASSETS_URL_IMAGES . '/avatar_none.png'
        )
    ))
//The following should also work 
        Config::set('concrete.icons.user_avatar.width',120);
        Config::set('concrete.icons.user_avatar.height',120);
oimel replied on at Permalink Reply
oimel
The correct place for the file is

/application/config/concrete.php

If you change files in generated_overrides, your changes might be automatically overwritten by concrete5.