• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Using Custom User Fields with User Group Promotions

Using Custom User Fields with User Group Promotions

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

Using Custom User Fields with User Group Promotions - Allow your members to choose which additional user groups they wish to be members of

This guide will show how easy it is to allow your members to choose which additional user groups they wish to be members of and subsequently affect their forum experience.

For a detailed explanation of both features, see the following pages of the help manual:
https://xenforo.com/help/custom-user-fields/
https://xenforo.com/help/user-group-promotions/

Custom user fields in conjunction with user group promotions allow your users to choose to become members of user groups from their account preferences page.
Read more about this resource...
 

Kintaro

Well-known member
#4
With this method users can join and exit from usergroups as many time they want, right?
I remember that promotions have some kind of limit... But 99% sure that I'm wrong. :unsure:
 

Mouth

Well-known member
#6
Is it possible to moderate a promotion? Placing the user promotion into the moderation queue, for approval
 

Mouth

Well-known member
#8
If the member unchecks the box, they will be automatically removed from the user group.
I'm using v1.5.2 and have just set this up, following the steps (but with a radio rather than a checkbox).
When a user removes the radio button (changing the choice from 'Join' to 'No selection'), they are not being removed from the user group. (cron has run many times since they unselected)

Could it be the difference between radio button and checkbox causing this, and it must be a checkbox? It appears I cannot change the custom user field from a radio to a checkbox, once it's been created.
 
#17
@Chris D @Mike
Could ether of you guys help with this?

I have 3 custom usergroup promotions, that I have "checkable" at registration.
If i make them "required" at register it makes it so you have to check all 3, but I only want them to be able to check one (although I DO want them to be forced to choose one, so that every registered member belongs to 1 of the 3 groups.)

After that I have a category with forums that I want EVERYONE to be able to see and read, but only ONE group to be able to post (besides admins)

Any help fellas?
 

Attachments

Chris D

XenForo developer
Staff member
#18
Probably best to have a single custom field named "Join" and three options; Christian, Athiest, Undecided etc.
 
#19
Probably best to have a single custom field named "Join" and three options; Christian, Athiest, Undecided etc.
But with only one custom field would I be able to allow the Atheists to view and post in the Atheist forum while allowing the Christians to only view the forum and posts with no ability to reply or interact?
 

Chris D

XenForo developer
Staff member
#20
Yeah.

There is custom user field criteria within User Group Promotions.

So you would need 3 separate promotions.

One that applies when the choice for that field is "Christian".
One that applies when the choice is "Athiest".
One that applies when "Undecided".

If a user selects two of them, the two corresponding promotions will apply and they will be a member of both groups.

It's then just a case of setting/revoking permissions accordingly on the node for those groups.