Would it be possible to make it so the DOB userfield is only available to admin and not mods / only available with a button click (the way email and IP are handled in core), or would something like that require a plugin rather than a theme component?
That is outside of the scope for this theme component (and it would indeed require a plugin).
The only thing it does is add a validation on an already existing user field, and as a consequence it will prevent account creation / storing the associated data for minors. It does not manipulate the user field in any way.
Richard i want to say this is really helpful something i have been wanting for my forum for some time now! Despite the user’s being able to get around it do you think if a user puts a birthday not old enough then changes it to use the forum admins are notified oh user first put X date then changed it so staff can be aware?
Although it is an interesting discussion, please limit this topic to the age check theme component itself.
This component merely adds a check to an existing user field. It does not introduce potential privacy issues - on the contrary: it can prevent minors from signing up.
Is that issue not solved by simply unchecking “Editable after sign-up,” and then setting the field to “on signup” ? Users shouldn’t have any reason to change a DoB field once past the age check.
What he means is that someone changes it while signing up.
I.e. someone is 16 and enters 1 Feb 2010 as birth date. The theme component says “you must be 18 to sign up” and then the kid changes it to 1 Feb 2008 and is able to sign up. The idea is to flag the first failed attempt as suspicious so the admins can for instance ask for proof.
I could be wrong but that looks like it may be Mint theme in the sign up screenshot, while your theme setting page says it is Sam’s simple theme. like RGJ said, make sure you are adding it to the default theme that users will see when they sign up.
it will be the theme on the /admin/config/customize/themes page that says “default theme”
I am unsure what caused this as I have just attempted it again and it is working… Must have been user error!!
I appreciate the fast responses, perhaps I could pick your brains a little more. I am interested in styling the calendar popup to align better with my theme, would anyone have any ideas on how to achieve this?