Discourse Age Check

:information_source: Summary Performs age checking on the signup form
:hammer_and_wrench: Repository GitHub - communiteq/discourse-tc-age-check
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Performs an age check on the signup form based on the users birthday

Configuration

  • install the theme component
  • create a Birthday user field with type Date and check “show on signup form” and “required on signup”
  • configure the settings
    • age check field name the name of the user field you created in the previous step
    • age check minimum age the minimum age (set to 0 if you don’t require a minimum age)
    • age check maximum age the maximum age (leave at 120 if you don’t require a maximum age)

Disclaimer

This is an age check, not an age verification.
A user can circumvent this check by choosing a different birthdate.

13 Likes

5 posts were split to a new topic: Storing date of birth in relation to GDPR

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?

1 Like

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.

1 Like

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?

IIRC sending notifications are plugin-level.

You mean all still while at the signup field? A user cannot sign up if they put too low a birthday.

he said

I’m going to think about this, interesting idea.

2 Likes

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.

I’ve moved all the posts concerning GDPR to their own topic here Storing date of birth in relation to GDPR

4 Likes