Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-21-2009, 06:35 AM
forexforum forexforum is offline
 
Join Date: Sep 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to auto assign specific usergroup when registering

Hi there,

I have been searching high and low for this mod but seems no one is doing it. As I am not an IT geek, I would like to seek assistance if the request can be fulfilled. here goes:

I host several forums but all sharing the same central database. Let's say a visitor is registering from forum A, I want that user to assign to a usergroup called "forum A usergroup", while another visitor from forum B, it will auto assign that user to "forum B usergroup". By applying such automation, I will be able to create private forums for specific usergroups.

I believe this can be done by creating a custom profile radio button to select, and then when a visitor register, the script will automatically read the custom profile insertion and assign that user to the designated group.

At the moment, I can manually login to admin and assign each user, for a small network it would probably be not a problem but I foresee tediousness and problems when the network is well established.

your help would be much appreciated.

Thank you.

--------------- Added [DATE]1232544863[/DATE] at [TIME]1232544863[/TIME] ---------------

hi there,

wondering if any kind soul can help?

I can only find this closest match but it is only for existing users after x number of days.

https://vborg.vbsupport.ru/showthread.php?t=178069

Reply With Quote
  #2  
Old 01-21-2009, 02:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod may help. Just do a little tweaking and it should do what you want (I think - I haven't looked at the code at all) - Add User to Primary Usergroup Based on Value of Custom Profile Field
Reply With Quote
  #3  
Old 01-21-2009, 02:42 PM
forexforum forexforum is offline
 
Join Date: Sep 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

Thank you so much for your reply. However, I'm afraid I do not know how to modify the code that the link you gave me. I saw it earlier but thought that it is for earlier version of vb. I'm using 3.8 now.

*** Removed ***

Thanks.
Reply With Quote
  #4  
Old 01-21-2009, 02:55 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is not that simple if you are using email verification upon registration.
If this is the case then the value of your checkbox will have to be saved so that it can be used once the member activates their account.
I'm afraid you will have to create a small product to do this.
Reply With Quote
  #5  
Old 01-21-2009, 02:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many mods for 3.5, 3.6, and 3.7 will work for 3.8. I just install them on my test board first to see if they work. You may want to read the modification thread and see what sort of comments people are making. They may say if it works for 3.8 or not.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03539 seconds
  • Memory Usage 2,192KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete