Hi,

i use content profile for user-profiles.

One content-profile is for all roles (the edit-field-visibility for different roles i manage over permissions). Then i use "imagefield-avatar" - this override the core user-picture with one imagefield from content-profile.

But this user-picture-imagefield (from content-profile) is for all roles. I have 3 roles - one role is for girls, one role for mens and one role is for groups. I set for this imagefield a "default image" but this apply for all roles. I need different "default images" for every role one own.

Is there a way to request what role the user is and show him a own default image (when he have not upload an image)?

The problem is - privatemsg (and other modules) use the imagecache-version from this user-picture. If role "girls" has and man-default-image or role "mens" have a "girls"-default-image - this is not pretty.

Has anyone an idea to fix this problem?

(Sorry for my bad english - i hope you understand my problem)

Regards Matthias

Comments

quicksketch’s picture

You can override theme_user_picture() to set a default based on the user's roles and not use ImageField's default image at all, since it's not capable of multiple defaults like you're wanting.

quicksketch’s picture

Status: Active » Closed (fixed)