1. 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

Allow your members to choose which additional user groups they wish to be members of

Tags:
  1. Brogan

    Brogan XenForo Moderator Staff Member

    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

    Read more about this resource...
     
    Mirovinger likes this.
  2. RoldanLT

    RoldanLT Well-Known Member

    I thought it was still based on User Group Promotions cron that runs (every 20 minutes)?
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    That's correct - I didn't think I needed to explicitly mention that again though.
     
  4. Kintaro

    Kintaro Well-Known Member

    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:
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    There is no limit.
     
  6. Mouth

    Mouth Well-Known Member

    Is it possible to moderate a promotion? Placing the user promotion into the moderation queue, for approval
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    No, there is no option for that.
     
  8. Mouth

    Mouth Well-Known Member

    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.
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    If it's a simple on/off selection then you should be using a checkbox, not radio buttons.
     
    Mouth likes this.
  10. Kintaro

    Kintaro Well-Known Member

    adwade likes this.
  11. @Brogan I've completed this for both my groups.
    I'm running into this problem though, I've set it to be a requirement at signup to join a group - but there is no option at signup the join groups.
     

    Attached Files:

  12. Brogan

    Brogan XenForo Moderator Staff Member

    It needs to be user editable.
     
  13. Alright I've done "user editable + only once" I assume that means once they choose they're stuck with that group, right? Thats what I want.


    Wait, now I have another problem.
    they cant only join one, since both are required.
    I only want them able to join one.
     

    Attached Files:

  14. Brogan

    Brogan XenForo Moderator Staff Member

    Correct.
     
  15. I've edited my last post, please re-read.
    @Brogan
     
    Last edited by a moderator: Nov 3, 2016
  16. @Brogan

    Wait, now I have another problem.
    they cant only join one, since both are required.
    I only want them able to join one.
     

    Attached Files:

  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?
     

    Attached Files:

  18. Chris D

    Chris D XenForo Developer Staff Member

    Probably best to have a single custom field named "Join" and three options; Christian, Athiest, Undecided etc.
     
  19. 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?
     
  20. Chris D

    Chris D XenForo Developer Staff Member

    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.
     

Share This Page