This lines can be added in the protected/config/main.php
in the module section add
'avatar'=>
array(
'defaultController' =>'avatar', //default no need to add this
'enableGravatar' =>true,
// enable gravatar automatically for new registered users?
'enableGravatarDefault' => true,
// override this with your custom layout, if available
'adminLayout' => 'application.modules.user.views.layouts.yum', //Default
'layout' => 'application.modules.user.views.layouts.yum', //Default
'avatarPath' => 'images', //Default , change it to 'images/users/'
// Set avatarMaxWidth to a value other than 0 to enable image size check
'avatarMaxWidth' => 0,
'avatarThumbnailWidth' => 50, // For display in user browse, friend list
'avatarDisplayWidth' =>200,
),
Ingen kommentarer:
Send en kommentar