• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Choose Usergroup on Registration?

Mufasa

Active member
#1
Hello XenForo community!

I am currently working on this website that runs multiple gameservers and each of these gameservers have a section on the forums, i would like to know if there is anyway to get new users to choose a usergroup on registration- depending on what gameserver they are playing on - to allow them to view that servers section?

I have had a loom around and cannot find anything like this, can one of you help me? Is there an addon i have missed or a code modification ive zoomed passed?

Thank you :)
 

MattW

Well-known member
#4
OK, so I'd personally do this via User Groups and Custom Fields.

First, set up all your user groups that you need. eg:

GameServer1
GameServer2
GameServer3
GameServer4

Then, create a Custom Field. Set the Field Type to be a Multiple-choice drop down selection. Set your possible choices.

custom1.PNG custom2.PNG custom3.PNG

Then set a User Group Promotion based on the value of the Custom Field.

promo1.PNG
promo2.PNG

That should do what you are wanting to do.
 

Mufasa

Active member
#6
OK, so I'd personally do this via User Groups and Custom Fields.

First, set up all your user groups that you need. eg:

GameServer1
GameServer2
GameServer3
GameServer4

Then, create a Custom Field. Set the Field Type to be a Multiple-choice drop down selection. Set your possible choices.

View attachment 51685 View attachment 51686 View attachment 51687

Then set a User Group Promotion based on the value of the Custom Field.

View attachment 51688
View attachment 51689

That should do what you are wanting to do.
Ok, this works perfectly,

EDIT. I solved it using priorities
 

MattW

Well-known member
#7
In the group settings:

Display Styling Priority:

Set the priority of the group you want to show as their default styling to a high value, and that will over write the styling of their default group.