Closed (fixed)
Project:
Gravatar integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 May 2009 at 16:45 UTC
Updated:
24 Jul 2012 at 22:23 UTC
From #334609: Users should still be able to upload a user picture and override Gravatar and #447130: Avatar priority? there have been feature requests to be able to disable the picture upload form. The best way to do this would to add a 'disable picture upload' permission. I prefer using a negative permission rather than a positive permission like ('user picture upload') since users should be able to use this by default, as that is the current behavior in core.
Comments
Comment #1
MentalFS commentedI've never seen a negative permission on drupal before, but I'm not sure if this is common in other modules. Personally, I don't like the idea of that.
So I'd rather vote for a 'user picture upload' permission or an additioal option on the gravatar configuration page.
Comment #2
dave reidI agree this should not be a negative permission, especially considering the apply-all approach in the admin role menu (and it's D7 core feature).
Comment #3
Cory Goodwin commentedWhat is the status on this feature request?
In the mean time you can prevent users from uploading a picture and overriding the avatar by following these two steps.
1. Change the maximum file size for an avatar to .01 kb.
2. Add the following to your theme
#edit-picture-upload-wrapper {display:none;}Comment #4
dave reidPlan to move forward on this is to marge the 'can disable own gravatar' permission into a 'change own user picture' permission that will be enabled for registered users by default (since that's the out-of-the-box functionality for core). If this permission is disabled but the user has the 'use gravatar' permission, they can no longer use the upload form and are forced to use gravatars.
Comment #5
dddbbb commentedWhat's the latest on this? Did Dave's plans back in October 2009 ever happen?
I've used the CSS method suggested above for now but would really like to see this become an official setting - I think it's much needed still.
Comment #6
dave reidThis is likely moving to my 'User picture API' module rather than being implemented as a one-off solution in Gravatar.module.
Comment #7
kidd1126 commentedHey, the official setting to disable drupal core user picture upload is:
1 goto admin/user/settings
2 goto the bottom of the page
3 check the 'Disabled' option radio box of Picture support
Comment #8
danoprey commentedThe problem is that this also disables gravatar. I think the OP, and myself, are looking for a solution to use Gravatar only, without the user being able to override it/edit it.
Comment #9
kidd1126 commentedSo user can only upload it?
Because user can not override it/edit it, so this field is required? or maybe have a default gravatar?
Ok, Let create a cck field for user to upload his gravatar and disable the permission for user to edit this field.
Comment #10
Ubunfu commentedYou can't completely remove the option for users to upload avatars or pictures in general without modifying theme code??