Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How would I make this happen?
Any help would be greatly appreciated. Thank you ahead of time.
Comments
Comment #1
Taxoman CreditAttribution: Taxoman commentedSome thoughts:
a) Drupal core has custom fields for the user account page. See under Configure -> User Account -> Manage Fields. You might achieve this by disabling the default user picture functionality and adding your own custom field to be used with this module. That may have other undesired side effects, though.
b) Potentially(?): also see this module: http://drupal.org/project/profile2
c) The Display Suite 7.x-2.x branch contains field permissions.
Its 7.x-1.x branch needs THIS module to support field permissions.
From the top of my currently tired mind, I am not sure if that is enough to provide roles-based access control to the core user picture field, though.
Check out http://drupal.org/project/ds
d) ctools' Page Manager has related roles-based access functionality for variants to override the user profile page, without dependency on other modules.
See: http://drupal.org/project/ctools
Comment #2
kziv CreditAttribution: kziv commentedI solved it in a custom module as follows:
Comment #3
rooby CreditAttribution: rooby commentedClosing as this is old and has a solution.
It is also not really relevant to this module as the profile field is not a proper field that this module can control.
I would also recommend sticking with the drupal core profile pic field as it integrates with a lot of other modules.
Although if you want to use a custom field you can override the user picture display to use your field by overriding the themeing of user picture: https://api.drupal.org/api/drupal/modules!user!user-picture.tpl.php/7