zikula-modules / Avatar

A Zikula module to organize users avatars, incl. support for Gravatar
https://zikula.de
13 stars 5 forks source link

external avatars #5

Open hvorragend opened 13 years ago

hvorragend commented 13 years ago

It's possible to think on this feature to the next version?

If i have an external avatar (i have it uploaded in other server), may be an external service (gravatar plugin exists, but there can be an integral avatar management?

Minimum to be able to define an external URL where my avatar is? can be? Change History comment:1 Changed 3 years ago by mateo

Type changed from defect to enhancement

comment:2 Changed 3 years ago by Landseer

Owner set to Landseer
Status changed from new to accepted
Version set to 2.0
Milestone set to 2.1

comment:3 Changed 3 years ago by Landseer

This one is not easy, although the idea is good.

The avatar that is usually stored in the DUD called _YOURAVATAR is a simple image. This plus a path needs to be used in an img-tag right now.

The gravatar url eg. is a full qualified url. This brings us into trouble in the usual templates where the path to the avatar image folder is prepended. It would be an option to store a gravatar (or any other url) as a special attribute to the users table (parallel to _YOURAVATAR as DUD), but in this case the templates for showing an avatar have to be adjusted in all modules to make use of it.

Would this be a way to go? If the answer is yes, the rest is quite easy ;-)