Age Restriction Mod Idea - Posted (2099 Views)
Advanced Member
Carefree
Posts: 4224
4224
I would like a mod that allows different portions of the board to be automatically blocked from under-aged visitors/members. For example, one of the boards I visit occasionally has an adult humor section - and the mods have to review users by birthdate & manually modify the access lists to let people in after they become of age.
That is a bit more effort than I want to put into it. If we could use a check DOB string and if that particular section of the board had an age restriction in effect, the young'ns would be disallowed.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Carefree
Posts: 4224
4224
I figured out a way in.

Code:

    strSQL = "SELECT MEMBER_ID, M_KEY, M_DOB FROM " & strMemberTablePrefix & "MEMBERS_PENDING " & _
" WHERE M_KEY = '" & key & "'"
set rsAdult = Server.CreateObject("ADODB.Recordset")
rsAdult.open strSql, my_Conn
if rsAdult.EOF or rsAdult.BOF then
'do nothing
else
MDOB = rsAdult("M_DOB")
MMAge = DateDiff("yyyy", DOBToDate(MDOB), Date)
end if
rsAdult.close
set rsAdult = Nothing

That populates the field. Now to see if the rest works.<
Posted
Advanced Member
Carefree
Posts: 4224
4224
Time to move this one. I'm through with it.
I put a copy on SnitzBitz.
Upon registration, minors (between your minimum age restriction and 21) will automatically be assigned to a minors' usergroup (which denies access to any "Adult" areas) that you create.
When the minor turns 21, they are automatically moved from the minors' usergroup to the members' usergroup and allowed access to those formerly restricted areas.<
You Must enter a message