Log in

View Full Version : Automatic group based on age


kevcj
04-23-2008, 04:25 PM
1. - My site has no adult content, so its ok if <18 sign up.

2. - Members less then 13 are not allowed to register.

4. - When registering, members have to enter their birthdate.

5. - Everyone between 14 - 18 years of age that registers, how can I put them into a "Youth" group automatically?

6. When a member turns 18, how can they be moved to a full member?

The "Youth" group has already been created and permissions tested. I just do not want to go through thousands of members checking birthdates.

This same question was posted on vbulletin.com, and I was referred here - http://www.vbulletin.com/forum/showthread.php?t=268130


============EDIT==============

Would it be possible to do this with a scheduled task that ran at midnight? Something that would check the birthday and compare it to the current date. If the result was < 18, user gets moved to youth group. If the results was >18, if in youth group, member gets moved to full member.

Marco van Herwaarden
04-24-2008, 08:15 AM
There is a modification available the will allow setting a usergroup based on the value of a profile field.

kevcj
04-24-2008, 11:22 AM
Do we have a name for this modification? After a few searches I could not find anything.

My site is running 3.7 RC3

Lynne
04-24-2008, 02:37 PM
searching "usergroup" "All Mods" "Titles Only" brings up this mod which is probably what Marco was talking about: Add User to Primary Usergroup Based on Value of Custom Profile Field (https://vborg.vbsupport.ru/showthread.php?t=82992&highlight=usergroup)