Needs review
Project:
Register with Picture
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
23 Nov 2011 at 19:37 UTC
Updated:
21 Mar 2019 at 14:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
BParticle commentedI'm looking for that option too, any answers?
Comment #2
avelens commentedAt: /admin/config/people/accounts you can find the option to choose picture or not.
Comment #3
skizzo commentedIn Avatar Selection 7.x-1.0 I see the "Force users to select an avatar image on user registration" checkbox in admin/config/people/avatar_selection, and it's working for me (please make sure that "access avatars" is checked for Anonymous User in admin/people/permissions, and that few avatars have been loaded in admin/config/people/avatar_selection/upload. @pieter_degraeuwe: could you please confirm that the same still applies for 7.x-1.x-dev?
Comment #4
vali hutchison commentedHi Skizzo,
Looks like you're posting to the wrong issue list here - this is the issue list for the register with picture module - looks like this needs to be in the avatar selection module issue list - http://drupal.org/project/issues/avatar_selection ?
Comment #5
skizzo commentedyou are absolutely right! Sorry...
I was "following" a wrong issue.
Thank you.
Comment #6
dlinhle commentedI can see the option to enable pictures on registration at /admin/config/people/accounts ... but I can't see the option to make it a required input for registration. Does this exist and, if so, where is it?
Comment #7
barnettech commentedYes I have the same problem. I looked through the code and don't see any mention of the word 'required'
I just added '#required' => 1, to line 55 of reg_with_pic.module and this made the field required.
Would you mind adding this to you code? I could make an official patch if you like, but it's only one line.
To be clear this is what it needs to look like:
Comment #8
barnettech commentedhmm seems this code I listed above stops the form from being submitted, just keeps saying user picture required. I will dig a bit to see whats wrong.
Comment #9
deggertsen commentedConfirming this. There is currently no option in the Drupal 7 version to make the picture field required on registration.
Comment #10
infines commentedAlso marked #1676186: How can I make the user picture required? as a duplicate.
Comment #11
Road Kill commentedHi Barnettech did you ever find a solution for this.
Comment #12
barnettech commentedSorry I didn't.
Comment #13
Road Kill commentedOkay thaanks going to see if I can put something together will post here if I get it working.
Comment #14
barnabas.kecskes commentedHere is how the .module file should look like after the required changes. I have added the extra option, and also the required modifications in order to get it working. Furthermore, I've changed the weights for the options to make more sense...
NOTE: I was not able to commit a patch – lack of experience. Please feel free to convert use the code to upgrade the module as you will.
Comment #15
BParticle commentedThis works, great!!I have been following this issue for a long time hoping someone would tackle it. Thanks, barnabas.kecskesI confirm #16 and #8. While checking out the form, I didn't actually submit it, so I missed this behavior.
Comment #16
Road Kill commentedUnfortunately barnabas.kecskes your solution still presents the same problem as before in #8.
Comment #17
fineartist99 commentedSo is there no module or setting to make a user picture required in Drupal 7?
Comment #18
deggertsen commented@fineartist99 Not that I know of at this point. What we ended up using is the pcp module to simply encourage people to upload their picture. It works for us, but obviously doesn't fix making it an option of that it required.
Comment #19
vm commentedIt seems to me that one could bypass the core user picture functionality and add a core imagefield to the user entity and mark the field as required which would it to the registration page? Of course this would also mean one would have to manually print the field in the .tpl.php file or utilize the displaysuite module to handle display
profile2.module may also come in handy
Comment #20
fineartist99 commentedI was reading about editing the core here https://drupal.org/node/190815 still do not understand how I can make this happen. If I were to use the profile2.module that would work, but the image field that I added doesn't take the profile pictures place. I established an image field for end users profiles and it worked as it should, only thing though is that the image doesn't take the profile pictures place. The profile picture for the person wasn't set to the image that they uploaded on the registration page via my new field.
Seems like this should be such an easy thing to control but no, seems as if it's impossible!!!!
Comment #21
vm commentedthat's not going to happen without intervention on your part. Either by manually printing the field or utilizing display suite.
Comment #22
fineartist99 commentedWhat would I be manually printing the field or utilizing display suite within?
Comment #23
kleinmp commentedHere's a patch that should properly require the picture.
Comment #24
caw67 commentedpatch #23 works!
Comment #25
Northern_Girl commentedHi,
curious to know if the patch (#23) will be commited to a new release?
NG
Comment #26
ifrikPatch #23 works.
As long as this patch is not committed, then in would be good to change at least the module description and not state that the module can set the user picture to be required.
Comment #27
thumpers commentedI tried Patch #23 with Drupal 7.41 and it did not work...
Comment #28
Donit commentedWould it not be better to set up a role-based permission on "picture required"?
Comment #29
anton-staroverov commentedA better solution would be an additional validator instead of completely overriding `user_validate_picture` in patch #23: