vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Specified User Group/User Title on Registration (https://vborg.vbsupport.ru/showthread.php?t=113069)

BWilliams 04-15-2006 01:48 AM

Specified User Group/User Title on Registration
 
Would it be possible to create a mod that would change the user title and user group of a new user upon registation using a specified registration field?

Here's what I am trying to do. My community is a regional truck club and it seems lately we have gotten SEVERAL out of the area users and I have been manually changing their user title to Associate vs. Member. IT would be awesome to be able to have them imput their zip code and if it doesn't start with the Southern California digits it would automatically change their user group and user title. I have the user title setup to show Stranger until 1 post is made and then it changed to Member.

So, does that make any sence? Is it possible? Any ideas?

BWilliams 04-20-2006 01:42 PM

bump

Wired1 04-21-2006 02:02 AM

Just throwing out some ideas to help out potential coders, the zip code profile field would have to be mandatory of course, and the hack would have to deal with non-numeric entries within that field.

What you may want to do is instead of making a hack that changes the title, you may want to have one that based upon said info, will move them to a specific user group that has the Associate title as its default.

amykhar 04-21-2006 01:05 PM

Take my mod that puts users in groups based on the profile field. Follow that EXCEPT, in your if clause, you would want to do a bit stronger verifications to validate the zip.


All times are GMT. The time now is 08:13 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.01017 seconds
  • Memory Usage 1,707KB
  • 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