uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
User groups
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 10:25 AM
User Group Colors in Forum


If you use the default CSS (CP -> Customize design -> Style sheet (CSS)), then Administrators are red, Moderators are blue, Checked are green and this is set by the following lines:

Code
/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:blue;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:green;}
/* ---------------- */


The Users group is not indicated here and its color is assigned by the first lines of the CSS file, it's the color of the ordinary links on a website. If you want to use your custom color for Users, then add a line for groupUser.

Code
a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:#A8C9E2;}


A color may be assigned both by an English name and an RGB hex code.

Each newly created group has the designation groupOther1, groupOther2 and so on up to groupOther8, as you can add 8 custom groups.

Code
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:Yellow;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:DarkCyan;}


A group number in this case means the order of adding, and not a group ID.
groupOther1 is the 1st group you create. E.g. uCoz has Users, Administrators, Moderators and Checked as the default groups. If you create a group other than the default groups then this group will be groupOther1.
If you create a second group other than default ones then this group will be groupOther2




Other Color Classes


On the Forum main page:


1. Greetings to our new member - class="lastUserLink" (if it is not assigned, then it has the color of an ordinary link)
2. Happy Birthday! - class="userBirthdayLink" (similarly)
3. Forum moderator - class="forumModer" (similarly)
4. Thread author - class="lastPostUserLink" (similarly)

The same classes as in p. 3 & 4 apply inside the Forum, on pages with sections and forum boards.

On the page with posts:


1. Forum moderator – class="forumModer"
2. User nickname - class="postUser"
3. Group name - class="postUserGroup" - Attention! It’s not a link, but a plain text and the class applies to both words – e.g., group: Moderators.

On the website:


On the website group names are also determined by the classes groupModer, groupAdmin, groupUser etc.

When changing a group color, check whether the page template has the address of the file where you make changes.

The following line must be in the template:

Code
<link type="text/css" rel="StyleSheet" href="http://YOUR_SITE_ADDRESS/_st/my.css" />




Username Colors in Posts


How to display the colors, set for certain groups, in thread posts? Go to Customize Design -> Forum -> Appearance of entries, find this:

Code
<tr><td width="23%" class="postTdTop" align="center"><a class="postUser" href="javascript://" onClick="emoticon('[b]$USERNAME$[/b],');return false;">$USERNAME$</a></td>


and change it for this:

Code
<tr><td width="23%" class="postTdTop" align="center"><a class="postUser$GROUP_ID$" href="javascript://" onClick="emoticon('[b]$USERNAME$[/b],');return false;"><span class="forum_nik$UID$">$USERNAME$</span></a></td>


Save the template, go to Style sheet (CSS), and add the following lines there:

Quote
a.postUser1 {color:#000000;} – color of group 1
a.postUser2 {color:#00FF00;} - color of group 2
a.postUser3 {color:#0000FF;} - color of group 3
a.postUser4 {color:#FF0000;} - color of group 4


and so on for each group (if you have more than four groups).

Note: Do not put the text in blue (color of group n)!


Then you can also assign a certain username color to a definite user, just add the following to the CSS:

Quote
.forum_nik1 {color:#F6F6F6;} – username color of the user with ID=1
.forum_nik6 {color:#F7F7F7;} - username color of the user with ID=6
.forum_nik7 {color:#F9F9F9;} - username color of the user with ID=7
.forum_nik4 {color:#A6A6A6;} - username color of the user with ID=4


Thus you can assign colors to each group and at the same time assign personal username colors to certain users.

I'm not active on the forum anymore. Please contact other forum staff.
Dartz
Posts: 1931

Message # 76 | 2:35 AM
Only from default "Users" group is possible transfer.
[... With uCoz since December 2 2007 ...]
alexeugeniu
Posts: 46
Reputation: 0

Message # 77 | 12:19 PM
Why not change the colors in groups, we have, as "Restore default template only to users, moderators General, admin site and verify it as in rest all the white is, if I can help someone to tell me where I was wrong ....
I know the serial number must be entered to the group so it does not work either;

This is the change made:

Code
/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:green;}
a.groupOther3:link,a.groupOther3:visited,a.groupOther3:hover {color:burgundy;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:orange;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:DarkCyan;}
a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:brown;}
a.groupOther6:link,a.groupOther6:visited,a.groupOther6:hover{color:DarkRed;}
/* ---------------- */

And these are the groups:

help help


Dartz
Posts: 1931

Message # 78 | 12:23 PM
You was wrong at maths. Why you have 3 2 6 instead of 1 2 3?
[... With uCoz since December 2 2007 ...]
alexeugeniu
Posts: 46
Reputation: 0

Message # 79 | 12:27 PM

I asked how the group was written in the order that was created wacko

Dartz
Posts: 1931

Message # 80 | 12:30 PM
Look in first post.
[... With uCoz since December 2 2007 ...]
alexeugeniu
Posts: 46
Reputation: 0

Message # 81 | 12:35 PM
OK Tancks biggrin


That ID can change? not to be 1, 2, 3, 4, 8, 11, 12, 251, 255 want to be in order and ID ie 1, 2, 3, 4, 5, 6, 7 ....... ..


Post edited by alexeugeniu - Monday, 2009-10-12, 12:42 PM
Sunny
Posts: 9296
Reputation: 456

Message # 82 | 1:02 PM
alexeugeniu, no, IDs can't be changed.
I'm not active on the forum anymore. Please contact other forum staff.
alexeugeniu
Posts: 46
Reputation: 0

Message # 83 | 1:06 PM
OK
Thank you very much

respect


warezparadise
Posts: 75
Reputation: 0

Message # 84 | 10:56 AM
Hey please help me.I tried every way of changing My two newly created User group i.e Super Moderator and Members.
There Id are 5(For Members) And 6 for Super Moderator and I put the code but it doesn't worked.Here is the code
Code
a.groupOther6:link,a.groupOther6:visited,a.groupOther6:hover {color:yellow;}

It is for Super Moderator.
Code
a.groupOther5:link,a.groupOther5:visited,a.groupOther5:hover {color:yellow;}

For Member but it doesn't worked.

PLease help me.

Tommy
Posts: 454
Reputation: 38

Message # 85 | 11:11 AM
warezparadise,
Read this
Quote (Sunny)
groupOther1 is the 1st group you create. E.g. uCoz has Users, Administrators, Moderators and Checked as groups.

a.groupModer is for Moderators
a.groupAdmin is for Administrators
a.groupVerify is for Checked

If you create a group other than the default groups then this group will be groupOther1
If you create a second group other than default ones then this group will be groupOther2
.


"I don't like to commit myself about heaven and hell - you see, I have friends in both places"
warezparadise
Posts: 75
Reputation: 0

Message # 86 | 11:30 AM
Hey tell me that How do I change the color of "Users"???
Post edited by warezparadise - Monday, 2009-10-26, 11:38 AM
Dartz
Posts: 1931

Message # 87 | 11:41 AM
What you mean? If you read first post carefully you will know
how to change user group colour or you meant something else?

[... With uCoz since December 2 2007 ...]
Pezzi
Posts: 4
Reputation: 1

Message # 88 | 11:26 PM
Hello,im sorry if im asking a dumb question,but im new in these things in Control Panel,so,how do i add a new User Group?
Thanks in advance^^
Tommy
Posts: 454
Reputation: 38

Message # 89 | 2:32 AM
Pezzi, Cp - Users - User groups - Create new user group (at top right)
"I don't like to commit myself about heaven and hell - you see, I have friends in both places"
Pezzi
Posts: 4
Reputation: 1

Message # 90 | 10:08 AM
Can you post a screenshot for me please?I cant find it at Control Panel - Users - User Groups =(
uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Search: