vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg. (https://vborg.vbsupport.ru/showthread.php?t=82993)

paulfletcher 03-17-2006 09:47 PM

It's working Great! Thanks for your help.

-Paul

rnmcd 03-17-2006 09:54 PM

Quote:

Originally Posted by paulfletcher
It's working Great! Thanks for your help.

-Paul

Did amykhar happen to mention what the problem was?

paulfletcher 03-17-2006 10:11 PM

Ah yes... Sorry.

She said that the variables were different after email activation (in the script... I think). Thats all I know :-) But the script is now doing everything we need on our site.

Thanks,
Paul Fletcher

Sculli 03-18-2006 10:12 AM

This plug is awesome.
I would like to use it to have a radio-button single selection going on where users can switch as the please.

How would I go about accomplishing that? Just a bunch of if statements checking which groupid needs to be removed before assigning a new one?

paulfletcher 03-19-2006 03:22 AM

Are you talking about adding the radio-buttons in the user CP, so a user is able to switch between categories and user-groups as they want?

Thanks,
Paul

Sculli 03-19-2006 03:42 AM

Yes that is exactly it. The user will have the choice between usergroupA, usergroupB, and usergroupC. The choice is made using radio buttons, so the user can only be a member of one of the groups at any given time. But the user can switch groups at will through the Edit Profile.

paulfletcher 03-19-2006 02:03 PM

I actually looked into doing something like that. Where our activation code text field would be able to be changed in the login / privacy area. Although for this to work you would have to change the hook. Probably from register_activate_process to when you login.

Although I don't know how to do this (modifying the original script), you could just try playing around with the hook settings. So every-time the user logs in, the script is activated to see what the value of that radio button is.

Thanks,
Paul

rnmcd 03-19-2006 02:33 PM

Quote:

Originally Posted by Sculli
Yes that is exactly it. The user will have the choice between usergroupA, usergroupB, and usergroupC. The choice is made using radio buttons, so the user can only be a member of one of the groups at any given time. But the user can switch groups at will through the Edit Profile.

I was under the impression that is the way it is done presently.

Anyone happen to have this installed on a board that they could let me look at?

amykhar 03-19-2006 03:14 PM

The choice doesn't have to be radio buttons. A text field works as well. But, the choice can't be changed after the user registers. They would have to use the regular member group interface for that.

rnmcd 03-19-2006 03:52 PM

Quote:

Originally Posted by amykhar
The choice doesn't have to be radio buttons. A text field works as well. But, the choice can't be changed after the user registers. They would have to use the regular member group interface for that.

Oh I get it now. The user can't change their usergroup by changing the respective profile field in the UserCP.

When you say, "They would have to use the regular member group interface for that." "They" are Admins, not members, right?


All times are GMT. The time now is 12:55 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.01145 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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