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.
$$_Admins
Posts: 15
Reputation: 2

Message # 181 | 10:04 PM
So, I have read all 13 pages of the post and I am confused. I am trying to get the main forum page to show different colours as to who posted.

In here all these members are different colours. And I'm not sure what to change and where. Also, will that change on the thread updates and on the forum page itself? Thanks for the help.

*edit* Also, I have changed the names of user groups and all and I was wondering if the additional groups start at 1 or if the original set starts at 1 and so on. Here is what I have. Hope it helps.

Post edited by $$_Admins - Sunday, 2010-10-17, 10:16 PM
Sunny
Posts: 9296
Reputation: 456

Message # 182 | 4:16 PM
Quote (Mkiller)
There any way to change users colors in chat? and forum main (Message from:)?

Quote ($$_Admins)
So, I have read all 13 pages of the post and I am confused. I am trying to get the main forum page to show different colours as to who posted.

Read from here: http://forum.ucoz.com/forum/7-474-56062-16-1274197842

Quote ($$_Admins)
*edit* Also, I have changed the names of user groups and all and I was wondering if the additional groups start at 1 or if the original set starts at 1 and so on. Here is what I have. Hope it helps.

Please be more specific. What exactly do you mean by start at 1 ?


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

Message # 183 | 9:48 PM
ok so i tried to make a group that would be like a second admin group but when i tried to change the color it put it to the defult color and made it so that when the mouse hovers over it the color changes to the one i wanted. how do i fix it so that it is always that color not just when u hover over it.

/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:yellow;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:#FF3300;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:#CC0099;}
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:#00CC00;}
a.groupOther1:link,a.groupOther2:visited,a.groupOther2:hover {color:blue;}

Please help

XGI_ARUG
Posts: 2
Reputation: 0

Message # 184 | 10:05 PM
thanks i fixed it i had a number of 1 instead of 2
SDMTEAM
Posts: 84
Reputation: 0

Message # 185 | 8:29 AM
What Is My Code ............... Look This

I have Use this code i have no idea this is wrong i thinks

Code
/* User Group Marks */
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:#610B0B;}
a.groupOther7:link,a.groupOther7:visited,a.groupOther7:hover {color:blue;}
a.groupOther6:link,a.groupOther6:visited,a.groupOther6:hover {color:Red;}       
a.groupOther5:link,a.groupOther5:visited,a.groupOther5:hover {color:#FF8000;}       
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:#FE9A2E;}   
a.groupOther8:link,a.groupOther8:visited,a.groupOther8:hover {color:#FFFFFF;}
a.groupOther251:link,a.groupOther251:visited,a.groupOther251:hover {color:#9E7BFF;}       
a.groupOther255:link,a.groupOther255:visited,a.groupOther255:hover {color:#5CB3FF;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:#99CCFF;}     
/* ---------------- */

I have Use the Coloe code http://html-color-codes.info/

Attachments: 1453930.png (159.0 Kb)
Animorph
Posts: 2856
Reputation: 189

Message # 186 | 11:43 AM
SDMTEAM, you are doing something wrong with
Code
a.groupOther

you just need to count up from 1 like this

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

To busy building a passive income online ;)
Animorph
Posts: 2856
Reputation: 189

Message # 187 | 11:15 AM
SDMTEAM, yes it needs to be like that , but you should better use "colour codes" i personally think that colour codes are better

Colour Codes:
http://html-color-codes.info/HTML-Kleurcodes/


To busy building a passive income online ;)
SDMTEAM
Posts: 84
Reputation: 0

Message # 188 | 3:51 AM
K DEAR THANKS BUT THIS IS NICE WORK THANKS ONCE AGAIN S
elite411
Posts: 2
Reputation: -1

Message # 189 | 8:31 PM
help me........i wana show user color in my main apperance of forum.

here is my user color codes:

/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:E26F6F;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:#2914E2;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:E2D848;}
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:E22DCA;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:10E210;}
a.groupOther3:link,a.groupOther3:visited,a.groupOther3:hover {color:10E210;}

/* ---------------- */

help me............

Attachments: 2555471.png (47.9 Kb) · 4785374.png (35.9 Kb)
Natashko
Posts: 3366
Reputation: 171

Message # 190 | 1:39 PM
elite411, you need to go to CP->Design->Design management->Style sheet CSS->add this at the very end
Code
a.lastPostUserLink:link {color:#5d5d5d;}
HorseIsleSense
Posts: 93
Reputation: 0

Message # 191 | 0:47 AM
I have to do the following for each new user, or wish to:

1. Check for their username in-game once they register (they register into what was originally the Users group but is the "Need to be Checked" group for me).
2. If their user is not found, move to Need to Change Username group.
3. If their user IS found, they must have 10 posts on the forum, then auto-transfer into normal/full user group.

How can I do this?

Animorph
Posts: 2856
Reputation: 189

Message # 192 | 3:38 PM
HorseIsleSense,

1. how is uCoz related to an online game ?
2.they register into what was originally the Users group but is the "Need to be Checked" group for me
- what do you mean did you changed the name of the user groupt to checked group or what did you exactly do ?
3.what do you mean with this ?

Quote (HorseIsleSense)
2. If their user is not found, move to Need to Change Username group.

4. This is easy you can just change the options when clicking [auto transfer] link next to your first user group, but this will only work for the first group
Quote (HorseIsleSense)
3. If their user IS found, they must have 10 posts on the forum, then auto-transfer into normal/full user group.

you need to be more specific about what you want there are allot of things that can be what you are typing , we can't take an hour of reading your text to understand what you mean

5. editing forum boards permissions

- go to CP ---> Forum ---> Management of forums and sections ---> Forum board ---> Edit icon --->
-Forum entries may be read by:
-New threads may be posted by:
-Replies may be posted by:

you can edit the forum board settings to your needs so the user group you want can only post in the boards you want


To busy building a passive income online ;)
HorseIsleSense
Posts: 93
Reputation: 0

Message # 193 | 5:47 PM
Animorph,

1. It is not, directly. I am writing a guide for an online game.
2. I changed the name of the user group from the word Users to "Need to be Checked." Once I check their username and find it on the game, I move them to a Users group. From that Users group, I want it so they must add 10 posts to the forum before they become a full member.

To try and make it clearer: I need to auto transfer them from a group OTHER than the original "Users" group. How can I do this?

Animorph
Posts: 2856
Reputation: 189

Message # 194 | 5:59 PM
HorseIsleSense, well that is impossible you can only set an auto transfer after 10 posts in the original "Users" Group

what i can suggest is just having user register and change the checked group name so users that just registered in the "Users" group will be transfered to the next group..

Note this can only be done with the first group not with all groups


To busy building a passive income online ;)
HorseIsleSense
Posts: 93
Reputation: 0

Message # 195 | 2:19 AM
Animorph,

I don't think that'd work, because then the users who don't register right would still view the forum.. gah.

Is there any other way, then, to achieve more posts in the forum?

uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Search: