The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
OK, 3.5 is sweet in that it can force the user to enter their birthday when registering, but it forces them to put a year. Is there a way to remove that restriction?
I looked at register.php and it would appear entering 0 for the year would do it, but it fails with an invalid birthdate error. Any ideas on what I should change to allow this? |
#2
|
||||
|
||||
![]()
Yes - don't require birthdays.
|
#3
|
||||
|
||||
![]()
:lol: Excellent idea, but I want to require just the month and day, not the year.
![]() |
#4
|
||||
|
||||
![]()
That does not make sense IMHO.
Why would you want to do that? Just day and month are worth nothing. |
#5
|
|||
|
|||
![]()
^ ^
not at all. It can allow people to have birthday events without giving away how old they are ![]() |
#6
|
||||
|
||||
![]()
I C.
|
#7
|
||||
|
||||
![]()
It won't show their age in the postbit, with no year to calculate with.
|
#8
|
||||
|
||||
![]()
Well the goal is simple: I'd like to be able to send birthday messages to my users, but not force them to reveal their true age. If you turn on Require Birthday in VB User Profile Options, the year they were born is required.
If you turn off that option, users can enter their birthday, but exclude the year if they so choose, but this option is not presented during registration. So, the question is: Is there a way to force users to enter their actual birthday but be able to choose wether or not they reveal their year of birth? |
#9
|
||||
|
||||
![]()
Yes. Make it required and set default to only show age, but not full birthdate.
|
#10
|
||||
|
||||
![]()
I got it to work. I had to go into includes/class_dm_user.php and modify this line:
Code:
(!$this->adminoverride AND $this->registry->options['reqbirthday'] AND ($birthday['day'] <= 0 OR $birthday['month'] <= 0 OR $birthday['year'] <= 0)) If you enter nothing for year during registration, it defaults to 0, so changing that code will allow nothing to be entered for the year. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|