The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

User Name Prefixes for entire User Group

3 posters

Go down

Solved User Name Prefixes for entire User Group

Post by Alaskamo 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.
avatar
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 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: User Name Prefixes for entire User Group Captur18

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

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

Well there's a clever bit of coding, and it works great! Thanks!
avatar
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 October 11th 2013, 4:05 am

You're welcome! ^^
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: User Name Prefixes for entire User Group

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

Arrow NOTICE


Topic Solved & Locked!

Thank you for using Forumotion.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Back to top

- Similar topics

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