Quote:
too many users leave the birthday field blank how can you make it mandatory to fill it in???
|
Without hack version: (This is how I use in my board)
Create a hidden profile field via Admin CP called birthyear and make it mandatory. So users would need to fill it in registration and IMO it would better than making default birtyear field mandatory, because people may not like to share their birthyear with all members. If it's hidden, they'll fill.
You can also apply this hack to this field:
https://vborg.vbsupport.ru/showthrea...threadid=35118
Wtih Hack:
Edit register.php, find:
PHP Code:
$username = trim($username);
Before that add:
PHP Code:
if (int($year)<1900 or int($year)>1996 OR !$day OR !$month)
{
eval("standarderror(\"".gettemplate("error_fillbirthday")."\");");
exit;
}
Create a template named "error_fillbirthday" and specify your error message there.
Not tested, should work.. (If not you can make a search in requests forum, I recall I gave the tested code for this hack before in this forum)