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.
NTP
Posts: 296
Reputation: 10

Message # 136 | 1:21 AM
You mean change the words? Control panel > users > user groups > click the user group and change. You mean delete? Then nothing can be done.
Web design and film == my 2 passions.

Genesis Inc. ~ New Horizons, New Beginnings
nunutu29
Posts: 74
Reputation: 0

Message # 137 | 1:15 PM
NTP, I wanted to delete it sad
www.nunutu29.do.am
Unique
Posts: 421
Reputation: 35

Message # 138 | 1:29 PM
nunutu29, it's impossible.
RaketNiJuan
Posts: 6
Reputation: 0

Message # 139 | 3:26 AM
Just want 2 know if its ok to put a Gold Member on my users like ... they have to pay first to become gold member & have access to all password protected content on my site? ex. Downloads... Is it possible? tongue How can i do this?

thanx!


Sunny
Posts: 9296
Reputation: 456

Message # 140 | 9:41 AM
RaketNiJuan, create a new group named Gold Members, and move users to this group manually after they have paid you.
I'm not active on the forum anymore. Please contact other forum staff.
RaketNiJuan
Posts: 6
Reputation: 0

Message # 141 | 7:55 AM
Thanks...
Charon
Posts: 17
Reputation: 0

Message # 142 | 8:19 PM
hello im kind of noob so start to lol rofl and stuff like that

I make some web for game , but today when i needed to make new user group for ally members > i make new group > save but than when i make new forum section
that group dont show and i cannot make that section for this group only :/
I would not be strange if i did not made custom group some days ago and than all worked good
So mn some advice here what i did wrong or somth

Sunny
Posts: 9296
Reputation: 456

Message # 143 | 9:16 AM
Quote (Charon)
but than when i make new forum section
that group dont show

Is this new group displayed on the list of user groups in Control Panel -> Users -> User groups?


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

Message # 144 | 12:18 PM
yes but when i open it to see options there is no options i selected , i select again acces rights and push save, than i go to user gropus again and its again empty no rights selected
its like - it save only group name but not all group settings
mb you can go to my page and see what is problem , i called group - not working biggrin
Sunny
Posts: 9296
Reputation: 456

Message # 145 | 3:22 PM
Charon, I have reported about this problem to the techs.
I'm not active on the forum anymore. Please contact other forum staff.
Charon
Posts: 17
Reputation: 0

Message # 146 | 4:12 PM
ty dude
Dartz
Posts: 1931

Message # 147 | 8:49 PM
Charon, she is a woman.
[... With uCoz since December 2 2007 ...]
Mkiller
Posts: 41
Reputation: 0

Message # 148 | 2:06 AM
Quote (Sunny)
On forum main page:

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

Now i cant do that??
i only see in Forum general appearance
$BODY$
$GLOBAL_BFOOTER$

How can i edit it?

Added (2010-04-29, 8:06 PM)
---------------------------------------------

Quote (Sunny)
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

Also this not working, just working with postUser1 only
others not have a color

CSS From my site groups:

Code
a.postUser1 {color:#9E6EFF;} – color of group 1
a.postUser2 {color:#00A708;} - color of group 2
a.postUSer2 {color:#002AFC;} - color of group 2
a.postUser4 {color:#FD0E00;} - color of group 4
a.postUser5 {color:#FFA200;} - color of group 5
a.postUser6 {color:#00FF36;} - color of group 6
a.postUser7 {color:#00B4FF;} - color of group 7

Can someone tell me what to do? sad

Post edited by Mkiller - Friday, 2010-04-30, 4:47 AM
Sunny
Posts: 9296
Reputation: 456

Message # 149 | 9:05 AM
Quote (Mkiller)
Now i cant do that??
i only see in Forum general appearance
$BODY$
$GLOBAL_BFOOTER$

You should edit CSS, and not "General appearance of forum pages".

Quote (Mkiller)
Also this not working, just working with postUser1 only
others not have a color

What about being more attentive when reading the first post of this thread?

Quote (Sunny)
Note: Do not put the text in blue!

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

Message # 150 | 12:57 PM
Quote (Sunny)
You should edit CSS, and "General appearance of forum pages".

Already, i want to tell you, that was old time i can edit it, after uCoz upgrade,
i cant do it again after "Update the design for all active modules"

Quote (Sunny)
What about being more attentive when reading the first post of this thread?

already without any blue color

am a wrong?
Correct me if wrong please.

Post edited by Mkiller - Saturday, 2010-05-01, 10:04 AM
uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Search: