vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Additional Usergroup based on profile field (https://vborg.vbsupport.ru/showthread.php?t=82555)

Andreas 06-05-2005 10:00 PM

Additional Usergroup based on profile field
 
Description
This hack allows you to assign an additional usergroup when a new user signs up
on your board, based on the selection made for a custom profile field
(Single Selection Menu or Single Selection Radio Buttons).
You can use this to set different permissions basend on gender for example.

Details
Files to modify: 1
Templates to modify: 0
Queries to run: 0
Difficulty: Advanced

jzewatsky 06-06-2005 12:55 AM

I have been waiting for this for quite some time. Thank you so very much. Will have to install very soon.

One question, does this assign a secondary usergroup or a primary?

Thanks again for sharing!

dsboyce8624 06-06-2005 12:56 AM

I'm not sure exactly how I will use it, but I'm beginning to formulate an evil plan.

:bandit:

Andreas 06-06-2005 01:02 AM

@jzewatsky
It assigns an additional (eg. secondary) usergroup.
Changing the primary usergroup would require quite a bit more work.

Boofo 06-06-2005 01:59 AM

Does this have a default in case they don't pick an option upon registering?

Andreas 06-06-2005 02:20 AM

Default = None :)

Bad Bunny 06-06-2005 11:25 AM

Quote:

Originally Posted by Boofo
Does this have a default in case they don't pick an option upon registering?

I would make it mandatory if using this hack. The field that is.

Aurous 06-07-2005 08:38 AM

I havent looked at the code, but it only works on signup? What if the user unchecks the option in USER/CP, will he/she be removed from the secondary group? This hack has so much usage. Thanks a lot.

Andreas 06-07-2005 02:32 PM

If the secondary group is public they can leave it through User CP, yes.

HellRazor 06-08-2005 02:05 AM

If the secondary usergroup assigned by the script is a moderated one, will it treat it as a join request?


All times are GMT. The time now is 03:52 PM.

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.01046 seconds
  • Memory Usage 1,728KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete