Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - member Age and pic gallery
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

member Age and pic gallery

 Post Reply Post Reply
Author
thepolecat View Drop Down
Newbie
Newbie


Joined: 05 December 2006
Location: United Kingdom
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote thepolecat Quote  Post ReplyReply Direct Link To This Post Topic: member Age and pic gallery
    Posted: 11 December 2006 at 11:01pm
Is there or going to be a members pic gallery for 8x forums
and
Is there any mod to set age limit on members joining
Either on the registration_rules.asp page
have to enter date of birth the calc the age and refuse sign up if under the set age.
or better would be on the register.asp page so the age in the profile has to be over the admins set age limit.....
 
Many thanks
 
Also not allow members to sign up without DOB
 
 
Thanks in advance
 
Or some pointers on making it my self


Edited by thepolecat - 12 December 2006 at 11:20am
Back to Top
thepolecat View Drop Down
Newbie
Newbie


Joined: 05 December 2006
Location: United Kingdom
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote thepolecat Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2006 at 10:33am
I have been playing with this::::::::::::::
 
'Check the date of birth is a date before entering it
         If Request.Form("DOBday") <> 0 AND Request.Form("DOBmonth") <> 0 AND Request.Form("DOByear") <> 0 Then
          dtmDateOfBirth = internationalDateTime(DateSerial(Request.Form("DOByear"), Request.Form("DOBmonth"), Request.Form("DOBday")))
  End If
 
and the form validation in the register.asp but cant find a way to
make it not submit if the age value is under say 18
Could it be some thing like:::::::::::::
 
 
'Check the date of birth is a date before entering it
   Dim intAge, AstDateOfBirth
         If Request.Form("DOBday") = 0 AND Request.Form("DOBmonth") = 0 AND Request.Form("DOByear") = 0 Then
' exit and give error msg
AstDateOfBirth = '' Return user to correct ? msg to say dob required
Else
if Request.Form("DOBday") > 0 AND Request.Form("DOBmonth") > 0 AND Request.Form("DOByear") > 0 Then
          AstDateOfBirth = internationalDateTime(DateSerial(Request.Form("DOByear"), Request.Form("DOBmonth"), Request.Form("DOBday")))
'''' check here if the age is over 18 if not then exit and give error
intAge = Fix(DateDiff("m", AstDateOfBirth, now())/12)
If intAge < 18 then

'' Return user to correct ?

Else
dtmDateOfBirth = intAge
End if
 End If
 End If


Edited by thepolecat - 12 December 2006 at 10:57am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.