This mod denies access for members below 18 years to any category marked with access to "adult" membergroup only.
If a member enters his true birth date in his profile all categories marked with access "adult" will automatically become visible as soon as this member reaches the age of 18 years or older.
This mod is NOT TESTED with More Membergroups.

Release History
V1.2a
Fixes the Mark all messages read not working in the special groups.

V1.2
Added *ADULTMALE* and *ADULTFEMALE* group access based on gender AND age in profile.

V1.1
Added *MALE* and *FEMALE* group access based on gender in profile.

V1.0
Only *ADULT* groep access based on birthdate in user profile.

How to upgrade.

Use the Upgrade Mod to make V1.2a from 1.2
This upgrade only works if V1.2 is installed, otherwise use the uninstall V1.x and reinstall V1.2a


How to install ?
As usual install this mod using BoardMod 2.5
This mod modifies Subs.pl, Load.pl and Boardindex.pl, so after Modding upload the changed pl's to the sources dir.
So far you'll see no changes to the board.
Now create a new membergroup named "*ADULT*" (All Caps and a star on both ends)
This membergroup behaves like a normal membergroup, so every category protected with this group acces will only allow members belonging to this group.
So this looks normal, but if a member fills out a correct date of birth and he/she is over 18 years the board also gives them age related access to the categories protected by this membergroup (so you don't have to add adults manually to this group, only encourage them to fill out the proper age in their profile).

The same goes for the other groups, so access for :
*ADULT*		Age > 17 yr
*MALE*		Gender = Male
*FEMALE*	Gender = Female
*ADULTMALE*	Age > 17 AND Gender = Male
*ADULTFEMALE*	Age > 17 AND Gender = Female

Allthough not foolproof (if my kids fill out my birth date they get access) it makes life for adult board admins a lot easier.
Together with the Advanced Profile Lock Mod you can restrict people changing age and gender all to often.
Enjoy,

Ron

webmaster@spikecity.net
