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

MentalFS’s picture

I'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.

dave reid’s picture

I 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).

Cory Goodwin’s picture

What 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;}

dave reid’s picture

Plan 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.

dddbbb’s picture

What'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.

dave reid’s picture

Status: Active » Closed (won't fix)

This is likely moving to my 'User picture API' module rather than being implemented as a one-off solution in Gravatar.module.

kidd1126’s picture

Status: Closed (won't fix) » Closed (fixed)

Hey, 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

danoprey’s picture

The 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.

kidd1126’s picture

So 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.

Ubunfu’s picture

You can't completely remove the option for users to upload avatars or pictures in general without modifying theme code??