User Name Prefixes for entire User Group

Go down

Solved User Name Prefixes for entire User Group

Post by Alaskamo on October 11th 2013, 1:41 am

I've found code on here to add prefixes to a user group in the legend, and to add prefixes to specific users... but I would like to know if I can give prefixes to an entire user group in one shot, rather than having to do each member individually.

Edit: basically I want to be able to do what the Forum Administrator group does (Prefixed automatically with "@"), just with other custom User Groups.

Alaskamo
New Member

Posts : 10
Reputation : 1
Language : English

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

Post by Ange Tuteur on October 11th 2013, 1:53 am

Hello Alaskamo,

You can set specific styles for group members simply by selecting the group color which has colored those users. This should only affect usernames.

Code:
a span[style="color:#C20000"] strong:before {
  content: " [A]";
  vertical-align:text-top;
  font-weight:bold;
  font-size: 7px;
  color:#c20000;
  text-shadow: 0px 0px 0px #c20000;
}
Result if your group color is #C20000:

All you need to do is modify this peice:
a span[style="color:#C20000"] strong

To the EXACT HEX COLOR of your group. You can see the colors of your groups by going to..
Administration Panel > Users & groups > Groups > Groups administration >

Edit the group you want, look to 'Group Members Color', copy the hex color, and paste it into the selector.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2911
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

Post by Alaskamo on October 11th 2013, 2:05 am

Well there's a clever bit of coding, and it works great! Thanks!

Alaskamo
New Member

Posts : 10
Reputation : 1
Language : English

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

Post by Ange Tuteur on October 11th 2013, 4:05 am

You're welcome! ^^
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2911
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

Post by Sir Chivas™ on October 11th 2013, 4:21 am

Arrow NOTICE


Topic Solved & Locked!

Thank you for using Forumotion.
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum