• 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

#1
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:
#4
Ok, now Mr.X and Mr.Y will set to Registered group for primary group :D
and
- 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:

Martok

Well-known member
#5
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?
 
#6
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?
: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
 

Martok

Well-known member
#7
: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
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.
 

James

Well-known member
#8
Ok, now Mr.X and Mr.Y will set to Registered group for primary group :D
and
- 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
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.