Tuesday 05 April 2011 1:06:37 am
Not a detailed walkthrough, but here you go: 1. take care about the datatype used for 'date of birth'. Standard date datatype cannot go below 1/1/1970, so if your website has also older people registered, you need a custom datatype (there is an extension or two on projects.ez.no with that) 2. you should create two roles, and divide users in two groups, each with one role assigned. Then move boys in group A, with role 'boys', and kids to group B, with role 'kids'. Assign read different read permissions to kids and boys groups. 3. Use the workflow system to make sure that when accounts are created, the user is put in the proper group depending on his age (unless you do this manually) 4. Set up a cronjob that runs once a day and checks if kids have become old enough to be migrated to boys
Principal Consultant International Business
Member of the Community Project Board
|