Skip to Content Skip to Menu

Date field : Maximum Year shown

  • erilam
  • erilam
  • OFFLINE
  • Posts: 787
  • Thanks: 98
  • Karma: 22
12 years 5 months ago #199393 by erilam
Date field : Maximum Year shown was created by erilam
Hello,

I set a date field on "Maximum Year shown"= +18 because I want that members on a site can only subscribe if he is really more than 18 years old.
But if try to subscribe on the site and I give 1995/05/07 (17 years old for today) and I can subscribe !
So my conclusion is that only the year is consider to check if I am 18 years old or not. Is it the case and if it is is there a way to change the setting to consider the moment of the year to chack this Maximum Year shown ?

Thx for your answers

Eric Lamy (erix)
www.agerix.fr/

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
12 years 5 months ago #199447 by krileon
Replied by krileon on topic Re: Date field : Maximum Year shown
You don't have to use + or -. You can actually just specify a minimum or maximum year. For example you can set the maximum year to 1994. 1995 shouldn't even be shown in the drop-down select. Have you tried using +19 instead or +17?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • erilam
  • erilam
  • OFFLINE
  • Posts: 787
  • Thanks: 98
  • Karma: 22
12 years 5 months ago #199462 by erilam
Replied by erilam on topic Re: Date field : Maximum Year shown
Here is my settings



My aim is that someone who is more than 18 years old can subscribe to this site (even if it is 18 years and one day). I will try with only 18 but my real question is do you check only the year or also the differnce between the date of the inscriptino day and the date put inside the regiter form ?

Eric Lamy (erix)
www.agerix.fr/
Attachments:

Please Log in or Create an account to join the conversation.

  • erilam
  • erilam
  • OFFLINE
  • Posts: 787
  • Thanks: 98
  • Karma: 22
12 years 5 months ago - 12 years 5 months ago #199463 by erilam
Replied by erilam on topic Re: Date field : Maximum Year shown
PS: When I read your answer, I wonder if the french translation is really exact for the tooltips

Eric Lamy (erix)
www.agerix.fr/
Last edit: 12 years 5 months ago by erilam. Reason: forget a word

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
12 years 5 months ago #199492 by krileon
Replied by krileon on topic Re: Date field : Maximum Year shown
For what you're wanting you'll need to use +17, CB adds +1 to the maximum year to circumvent an older bug. It only validates the year, it doesn't check the day and month for the range.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • erilam
  • erilam
  • OFFLINE
  • Posts: 787
  • Thanks: 98
  • Karma: 22
12 years 5 months ago #199649 by erilam
Replied by erilam on topic Re: Date field : Maximum Year shown
Hmm may be I have not understand but if I use +17 cb propose date until 2030, it's not really what I want

Eric Lamy (erix)
www.agerix.fr/
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum