vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Easily Autoassign a new member to a user group (https://vborg.vbsupport.ru/showthread.php?t=137320)

FireFish 01-23-2007 03:01 PM

Easily Autoassign a new member to a user group
 
I've had this idea for a while & wanted to share it; I'd LOVE to see someone code this:

We have 'hidden' forums reserved for members of a specific secondary user group.
However, to get them assigned to that group, I have a list of instructions I send them.
1) Register
2) Click 'Contact Us' & request for permissions promotion
3) Wait to be approved.

My Proposed Modification to solve this:
It would be neat to have a special field on the registration form called 'Invitation Code' or something like that, which, when entered, will automatically join that new user to that secondary private user group.

Alternatively, being able to send a special 'invitation link' which will automatically have that field filled in would be nice.

Obviously I'd want to be able to make multiple invitation codes which corespond to multiple user groups.

This concept is kind of like a Coupon Code in a shopping cart; you enter a predefined code & automatically receive a discount; no need for manual approval.

p.s. - the secondary user groups I am referring to here are NOT joinable. They are for BETA testing software & only selected BETA members get invited.

If anyone has any input on this idea, please reply to this thread.
I'd love to see it.

Incendium 01-25-2007 12:15 AM

Sounds interesting. I'll take a look at it and see what I can come up with.

FireFish 01-25-2007 12:46 AM

Thanks, Incendium.

This would be a hot mod; would definately get nominated & possibly win Modification of The Month.

Keep us posted in this thread.

Reeve of shinra 01-25-2007 02:51 AM

You may want to try using reg-ex to validate the code entered into the profile field. AmyKar released a hack that adds users to usergroups based on the profile field entry.

FireFish 01-25-2007 03:38 AM

Quote:

Originally Posted by Reeve of shinra (Post 1166790)
You may want to try using reg-ex to validate the code entered into the profile field. AmyKar released a hack that adds users to usergroups based on the profile field entry.

Any idea where I can find reg-ex? I searched it with no results.

Incendium 01-25-2007 03:39 AM

Try searching for "regular expressions"

http://en.wikipedia.org/wiki/Regular_expression

Reeve of shinra 01-25-2007 11:03 PM

by default, vb can use regex to check against the info entered into a profile field.


All times are GMT. The time now is 01:02 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.01016 seconds
  • Memory Usage 1,721KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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