Author |
Topic |
|
Martha2Mary
Junior Member
New Zealand
250 Posts |
Posted - 02 April 2004 : 21:59:28
|
Hi
I would like to find out if there is anyway to restrict Registration to my Forums based upon age ~ i.e. if Member enters birth year less than x, they will be advised that they are ineligible to register.
Of course I realise that people can enter a false year of birth, but at least then I would know that I had done whatever I could to ensure that my Members were 15 yrs or over.
Any helpful info appreciated!! |
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 04 April 2004 : 10:37:10
|
It's already in the Registration Policy:
quote: By pressing the "Agree" button, you agree that you, the user, are 13 years of age or over. You are fully responsible for any information or file supplied by this user. You also agree that you will not post any copyrighted material that is not owned by yourself or the owners of these forums. In your use of these forums, you agree that you will not post any information which is vulgar, harassing, hateful, threatening, invading of others privacy, sexually oriented, or violates any laws.
Only other option to ensure is that you ask a prospective member to place a saliva swab in their USB socket and run a DNA test using the freely available program: guessmyage.exe |
|
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
Posted - 04 April 2004 : 11:09:10
|
you could add the following to your register.asp (quickly tested it on my forums- but you'd have to use the "age" option rather than the "birth date" one) at lines 210 find the following and add the red bits
else
strEncodedPassword = sha256("" & trim(Request.Form("Password")))
Err_Msg = ""
if Request.Form("Age") < 13 then
Err_Msg = Err_Msg & "<li>You must be over 13 to register for these forums</li>"
end if
if strAutoLogon <> 1 then
if trim(Request.Form("Name")) = "" then
Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
end if
if Len(trim(Request.Form("Name"))) < 3 then
Err_Msg = Err_Msg & "<li>Your UserName must be at least <strong>3</strong> characters long</li>"
end if
end if |
Edited by - Jezmeister on 04 April 2004 11:13:33 |
|
|
Martha2Mary
Junior Member
New Zealand
250 Posts |
Posted - 04 April 2004 : 18:04:35
|
Many thanks for that, Jezmeister!!!!! I'll give it a go, and maybe see if it can be modified somehow for the DOB, as the Birthday Mod needs this..... |
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
|
Martha2Mary
Junior Member
New Zealand
250 Posts |
Posted - 04 April 2004 : 21:05:16
|
Well, I managed to get that aspect working, but also needed to make it so that people registering must enter their age. I tried to fiddle with the code to do it myself, but was unsuccessful, so could you (or anyone else) help me with the code for this? Thanks! |
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 04 April 2004 : 22:56:30
|
Well, if you have that error message set up, they should have to enter thier age or else it will not continue on. It will give the error, they will have to go back and input an age if they didn't put one in. |
Erick Snowmobile Fanatics
|
|
|
|
Topic |
|