vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Automatic group based on age (https://vborg.vbsupport.ru/showthread.php?t=176952)

kevcj 04-23-2008 04:25 PM

Automatic group based on age
 
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


All times are GMT. The time now is 08:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete