The Forum has been Updated
        The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
    
                        This is a very simple little add-on that will dramatically reduce the number of spam registrations on your forums. While it won't stop spammers from manually registering for accounts, it will stimmy the vast majority of scripts and bots out there which are pre-programmed to only complete those fields that are required on the registration form. This add-on will make the date of birth (or age, depending on your setup) field required and throw an error if it isn't completed.
First, find the following on line 346 of inc_profile.asp:And replace it with the following:Find the following on line 374:And replace it with the following:Find the following on lines 1150 and 1465 (which will become line 1471 after the first edit) of pop_profile.asp and on line 381 of register.asp:And replace it with the following:<
                            
                    
                First, find the following on line 346 of inc_profile.asp:
Code:
"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Age: </font></b></td>" & vbNewLine & _Code:
"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><font color=""" & strHiLiteFontColor & """>*</font> Age: </font></b></td>" & vbNewLine & _Code:
"                      <td bgcolor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Birth Date: </font></b></td>" & vbNewLine & _Code:
"                      <td bgcolor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><font color=""" & strHiLiteFontColor & """>*</font> Birth Date: </font></b></td>" & vbNewLine & _Code:
if len(strMAge) > 0 then
	if not isNumeric(strMAge) then
		Err_Msg = Err_Msg & "<li>You must enter a numerical value for your age.</li>"
	elseif strMinAge > 0 and strMAge < strMinAge then
		Err_Msg = Err_Msg & "<li>You must be at least " & strMinAge & " years old.</li>"
	end if
end ifCode:
if len(strMAge) > 0 then
	if not isNumeric(strMAge) then
		Err_Msg = Err_Msg & "<li>You must enter a numerical value for your age.</li>"
	elseif strMinAge > 0 and strMAge < strMinAge then
		Err_Msg = Err_Msg & "<li>You must be at least " & strMinAge & " years old.</li>"
	end if
else
	if strAge = "1" then
		Err_Msg = Err_Msg & "<li>You must provide your age.</li>"
	elseif strAgeDOB = "1" then
		Err_Msg = Err_Msg & "<li>You must provide your birth date.</li>"
	end if
end if
    