Hi everyone!
I have a problem with age registration and it's quite annoying. Here's the problem below:
At the registration form, some people type in their age instead of using the calendar tool. If they type in something like this 07/93/1983. This date is impossible and my database can't read that and puts it as default "0000-00-00". If my members have this kinda of info, they will not be seen on search page because the whole search thing is based on age. It's quite important!! It's kinda annoying for me to go into my database and make up their age so other ppl can see them and they will have to fix it themselves. I feel rude by doing that. U know?
Is there a way i can disable the age text box so that way they MUST use the calendar tool no matter what? It got to be a way to fix this. Please help me! thanks!!
Patrick
|
Sorry Age is BirthOfDate. Hope I'm clear.
I want to add this disabled="disabled" to input tag but I don't know where. I also want BirthOfDate text box in Profile Edit to be disabled as well. Any idea?
|
|
you can start in this file : templates/base/scripts/BxBaseFormView.php
in function insertInput( $aInput )
Live Support http://dolphinbugfixing.com |
How do I change the format of the date? Instead of entering d/m/y we would like it to be M/D/Y, we have changed it in Admin, but it has not changed. The calendar is not helpful either. Please help! I have researched this everywhere... :( |
1. To the Original poster. Several people have been looking at creating a check for the DOB but so far noone has had any luck with a successful one. That's actually what your looking for, so it kills it at the registration page if they enter the DOB incorrectly.
2. To DIS: You can start with the Admin -> Settings -> Advanced Settings and go from there. It will adjust the DOB on some sections and not on others.
|
I just found out that the format for DateOfBirth is d/m/yy. They must put their birth of day before month. That explains why 10 out 100 members got this errors. I'm 99% sure they got this error because they typed in m/d/yy.
I changed "dateFormat: 'd/m/yy'," to "dateFormat: 'm/d/yy'," in BxBaseFormView.php and it still doesn't work properly. Am i missing something?
This is an obvious bug! Why would anyone type in day before month (not me). How do they suppose to know. It's so confusing. :/
|
Sorry what i said above, i didn't change anything in BxBaseFormView.php. I changed it in BxBaseConfig.php
I'm still searching for a solution. I wonder if I can add a simple validation for day. Something like this....
dayRange: '{min_day}:{max_day}', in BxBaesFormView.php
I know it's not a perfect validation because not all have 31 days but it'll reduce the problem. Right? If i found this kinda of solution, it would be good enough for now! :) hmmmmmmm
|
Thanks dolphinbugfixing! I went there and added disabled="disabled" to date input tag and it really WORKED on Safari. The calendar shows up nicely while the text box is disabled but it doesn't show up at all on firefox on both mac and pc so this whole idea is a dumb idea lol. bummer. |
Trying using READONLY attribute instead of DISABLE
Thanks dolphinbugfixing! I went there and added disabled="disabled" to date input tag and it really WORKED on Safari. The calendar shows up nicely while the text box is disabled but it doesn't show up at all on firefox on both mac and pc so this whole idea is a dumb idea lol. bummer.
|