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

XF 1.5 Help username css in user group

Discussion in 'XenForo Questions and Support' started by QuảngPB, Sep 16, 2015.

  1. QuảngPB

    QuảngPB Member

    Hi all,
    I have a trouble in this case:
    - I have two users with usernames are: Mr.X, Mr.Y
    - I have three groups with username's color: GroupA, GroupB, GroupC
    - Mr.X set to primary group GroupA, secondary group GroupB and GroupC
    - Mr.Y set to primary group GroupB, secondary group GroupA
    => I want Mr.X display red color => Mr.X (GroupA's color)
    Mr.Y display green color => Mr.Y (GroupB's color)

    Any suggestion for me :(
    thank so much!!!!!

    (sorry for my bad English :p)
    Last edited: Sep 16, 2015
  2. Brogan

    Brogan XenForo Moderator Staff Member

    QuảngPB likes this.
  3. Amaury

    Amaury Well-Known Member

    Make sure their primary user group, which should be everyone's default, has a higher display priority.
    QuảngPB likes this.
  4. QuảngPB

    QuảngPB Member

    Ok, now Mr.X and Mr.Y will set to Registered group for primary group :D
    - I set display styling priority: Registered=0; GroupA=1; GroupB=2
    - Mr.X set to GroupA, GroupB for secondary group
    - Mr.Y set to GroupB, GroupA for secondary group
    Now GroupB has highest priority => both Mr.X and Mr.Y have GroupB's color
    BUT my expected result is Mr.X (GroupA's color) and Mr.Y (GroupB's color) => not same color :(

    p/S: I'm looking for a function like VBB forum => admin can chose what group will display for a user with multi user group :D
    Last edited: Sep 16, 2015
  5. Martok

    Martok Well-Known Member

    Why do they need to be in both group A and group B? Can't you assign permissions to each group so that these users only need to be in one of these?
    QuảngPB likes this.
  6. QuảngPB

    QuảngPB Member

    :D thank you! I found a solution for my case :D
    I just create user group with permission same as Registered group and add color to it :D
    and other groups not set color :D
  7. Martok

    Martok Well-Known Member

    You don't need to assign any permissions to the new group you have made if you want to use it purely for banner styling, as the user will get the permissions from the Registered group.
    QuảngPB likes this.
  8. James

    James Well-Known Member

    The reason this happened is because group B has the highest display priority. The order of the additional usergroups is irrelevant; the styling priority is the main thing.

Share This Page