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.
Armaros
Posts: 1424

Message # 61 | 4:27 PM
Question: I was wondering if there is a way to move a group of 800+ members to a whole new group without having to do it 1 by 1 ?
Answer: Only if "member" group was by default a "user" group and "new" group was by default "checked" group.
Clyde
Posts: 242
Reputation: 0

Message # 62 | 0:07 AM
A few days ago, I created a new group according to the instructions here. It worked fine - I added an "orange" color to the new group. Everybody in the forum that belongs to that group is orange.

The Problem: Everyone I promote to that group does not become orange. So I have members belonging to the same "group" with 2 different colors.

Ucoz Website Since 2009
Sunny
Posts: 9296
Reputation: 456

Message # 63 | 10:58 AM
Clyde, what about website url?
I'm not active on the forum anymore. Please contact other forum staff.
Silviu681
Posts: 3
Reputation: 0

Message # 64 | 10:45 PM
i tried to change colors of "friends" and "banned" groups but i don't seeem to get it right...
i used 'groupFrien, groupFriends, groupOther251, group251' ... what is the name/id or calling for those groups?

================================
ADDED: I somehow managed to get it to work biggrin

Code

a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:#ffffff;font-style:italic;} /*-membri*/
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:#ffffff;} /*-veterani*/
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:#ffa500;} /*-administrator*/
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:#ff0000;font-weight:bold;} /*-fondator*/
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:#ffff00;} /*-moderator*/
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:#00ff00;} /*-tzz*/
a.groupOther3:link,a.groupOther3:visited,a.groupOther3:hover {color:#00ffff;} /*-topograf*/
a.groupOther4:link,a.groupOther4:visited,a.groupOther4:hover {color:#00ff00;} /*-rr-g*/
a.groupOther5:link,a.groupOther5:visited,a.groupOther5:hover {color:#00ff00;} /*-vip*/
a.groupFriends:link,a.groupFriends:visited,a.groupFriends:hover {color:#8a2be2;font-style:italic;} /*-avertizat*/
a.groupBanned:link,a.groupBanned:visited,a.groupBanned:hover {color:blue;font-style:italic;} /*-evacuat*/
a.postUser1 {color:#ffffff;font-weight:bold;font-style:italic;}
a.postUser2 {color:#ffffff;font-weight:bold;}
a.postUser3 {color:#ffa500;font-weight:bold;}
a.postUser4 {color:#ff0000;font-weight:bold;}
a.postUser5 {color:#ffff00;font-weight:bold;}
a.postUser6 {color:#00ff00;font-weight:bold;}
a.postUser7 {color:#00ffff;font-weight:bold;}
a.postUser8 {color:#00ff00;font-weight:bold;}
a.postUser9 {color:#00ff00;font-weight:bold;}
a.postUser14 {color:#8a2be2;font-weight:bold;}
a.postUser15 {color:#00ff00;font-weight:bold;}

it is not too difficult if you read and think... first i made a mistake, which i didn't see it was there!
===================================

Post edited by Silviu681 - Thursday, 2009-09-10, 6:53 AM
leonidas
Posts: 5
Reputation: 0

Message # 65 | 7:04 AM
I have those groups :

1 Members
2 Old Members
3 Moderators
4 Administrators
5 Global Moderators
6 Low Bap - TV BOTS
7 Banned
251 Helpers ( Friends )
255 Deleted ( Banned )
- Guests

i have edit the code on css like this :

Code
/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:green;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:#FBEFEF;}
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:orange;}
a.groupOther2:link,a.groupOther1:visited,a.groupOther2:hover {color:yellow;}
a.groupOther3:link,a.groupOther1:visited,a.groupOther3:hover {color:gray;}
/* ---------------- */

but its not working .
What i do wrong ???

and i want to colore helpers + deleted can i ???

Thanx for your time

Tommy
Posts: 454
Reputation: 38

Message # 66 | 8:21 AM
leonidas, Which one is not working for you? If you are talking about helpers(friends) and deleted(Banned). Just see the post above yours. You will get the answer.
"I don't like to commit myself about heaven and hell - you see, I have friends in both places"
leonidas
Posts: 5
Reputation: 0

Message # 67 | 4:37 PM
nothing works its all f*cked up sad

all are red


Dartz
Posts: 1931

Message # 68 | 5:21 PM
leonidas, restore CSS and try again.
[... With uCoz since December 2 2007 ...]
leonidas
Posts: 5
Reputation: 0

Message # 69 | 11:04 PM
so the code i post is not wrong ???

Added (2009-10-06, 5:04 Pm)
---------------------------------------------
the css restore just change only my other settings . but the colors id not fixed again


Tommy
Posts: 454
Reputation: 38

Message # 70 | 7:02 AM
leonidas,
Quote (leonidas)
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:orange;}
a.groupOther2:link,a.groupOther1:visited,a.groupOther2:hover {color:yellow;}
a.groupOther3:link,a.groupOther1:visited,a.groupOther3:hover {color:gray;}

You have used Other1 for all groups. You have to enter it like this
Quote
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:orange;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:yellow;}
a.groupOther3:link,a.groupOther3:visited,a.groupOther3:hover {color:gray;}

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

Message # 71 | 8:08 AM
Quote (t4club)
i require to know what the original settings were for each original group, how do i find this out so i may change them

To see the default settings you can create a new test website and view the permissions there. Then you can always delete this website.


I'm not active on the forum anymore. Please contact other forum staff.
leonidas
Posts: 5
Reputation: 0

Message # 72 | 3:27 PM
Quote (Tommy)
leonidas,
Quote (leonidas)
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:orange;}
a.groupOther2:link,a.groupOther1:visited,a.groupOther2:hover {color:yellow;}
a.groupOther3:link,a.groupOther1:visited,a.groupOther3:hover {color:gray;}

You have used Other1 for all groups. You have to enter it like this
Quote
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:orange;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:yellow;}
a.groupOther3:link,a.groupOther3:visited,a.groupOther3:hover {color:gray;}

i have done this but the probles is with the admin and the moderetors 2
blink


Sunny
Posts: 9296
Reputation: 456

Message # 73 | 3:42 PM
leonidas, what is the exact problem? Can you show a screenshot or provide website url? And try to use html color codes.
I'm not active on the forum anymore. Please contact other forum staff.
leonidas
Posts: 5
Reputation: 0

Message # 74 | 9:11 PM
ok i fixed i don't know what i did ( confused ) but now its all ok

Thanx for your time any way

Post edited by leonidas - Friday, 2009-10-09, 9:12 PM
kostova
Posts: 97
Reputation: 9

Message # 75 | 9:55 PM
I recently made a new group with the setting of a user able to choose the group when registering and hidden the option of choosing and placed a checked="" onto the new group so when registering, they will automatically or more inadvertently choose the new group instead.
Is there a way to auto-transfer from the new group to the Checked group? Or any other group without manually moving users.
uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Search: