Log in

View Full Version : Where do I edit so that the members birthdate YEAR is a required field as well?


CrazyLady
04-08-2005, 10:13 PM
Where do I edit so that the members birthdate YEAR is a required field as well?

thanks
CL

Princeton
04-08-2005, 10:45 PM
you need to edit the register.php file
(please make a backup before you do any changes)

FIND IN register.php:
if ($day == -1 OR $month == -1)
REPLACE WITH:
if ($day == -1 OR $month == -1 OR $year == '')

I'm guessing that should work ... not tested..

CrazyLady
04-08-2005, 11:46 PM
What file would this be in for users editing their profiles? I have a lot of users who did not enter their year, or will remove the year.

Princeton
04-09-2005, 12:29 AM
do the same ... profile.php

Boofo
04-09-2005, 12:31 AM
The only drawback about requiring a year, is that most users will lie about the year if they don't want it entered. Kind of defeats the purpose, I guess. ;)

Princeton
04-09-2005, 12:34 AM
yea ... it depends on the site (subject)

CrazyLady
04-09-2005, 12:51 AM
do the same ... profile.phpI tried that, but was unable to locate the code to replace it?

but found it as:
(bitwise(REGOPTION_REQBIRTHDAY, $vboptions['defaultregoptions']) AND ($day == -1 OR $month == -1))
and changed it to:
(bitwise(REGOPTION_REQBIRTHDAY, $vboptions['defaultregoptions']) AND ($day == -1 OR $month == -1 OR $year == ''))worked for me :)

... as for lying, that will happen anyways... if they enter a year or not.. what ya gonna do?.. if only we could verify for proof of age with a CC.

thanks for your help :)

Princeton
04-09-2005, 12:55 AM
yep ... that's it :)
good work