2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
294 stars 141 forks source link

Provide user avatar upload feature #19

Open tonydspaniard opened 7 years ago

tonydspaniard commented 7 years ago
tonydspaniard commented 7 years ago

will integrate with https://github.com/2amigos/yii2-croppie-widget

faenir commented 7 years ago

When it will be ready?

tonydspaniard commented 7 years ago

@faenir I am currently working on the Two Factor authentication feature. I believe I will be able to do it after.

tonydspaniard commented 6 years ago

This is going to fill library with js assets and that is something I really do not want. I have to work with the croppie extension itself. Moving this feature to Mileston 1.3.0

kartik-v commented 6 years ago

Few suggestions I have is on the image displayed in user profile display views... the user picture (avatar) displayed on the profile page can be rendered using the following rules:

  1. if the user picture has been uploaded by user then this will be displayed
  2. if no user picture has been detected as in STEP 1, then the gravatar image will be displayed
  3. if no gravatar image available as in STEP 2 (e.g. user has not set a valid gravatar email), then a default image as set in Da\User\Module::defaultUserImage should be displayed.
  4. suggest Da\User\Module::defaultUserImage can default to something like:
<span class="glyphicon glyphicon-user" style="font-size:60px"></span>

FINALLY:

An avatar display widget e.g. Da\User\Widgets\AvatarWidget with all the relevant properties, CSS styling options, etc... can also be created using above rules for reuse both by this module as well as the developer

tonydspaniard commented 6 years ago

@kartik-v thank you.

The flow is easy to do, the issue I am having is by integrating: https://github.com/2amigos/yii2-croppie-widget so users would be able to see how to work with that library and provide super cool upload avatar features: http://foliotek.github.io/Croppie/

In order to make it work I have to:

So, I rather update croppie widget itself instead of this library. I'll update whenever possible.

Eseperio commented 6 years ago

@tonydspaniard i need this option in a nearest project. How far is it? Have you started writing some code or is only a concept?

Sonit90 commented 5 years ago

Any news on this?