Page 3 of 22«123452122»
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.
Sir_Cr4p
Posts: 21
Reputation: 6
Message # 31 | 8:59 PM
This is what i've done:

/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:midnightblue;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:indigo;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:olive;}
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:darkgoldenrod;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:darkviolet;}
a.postUser1 {color:#EBBCB1;}
a.postUser2 {color:olive;}
a.postUser3 {color:midnightblue;}
a.postUser4 {color:indigo;}
a.postUser5 {color:darkgoldenrod;}
a.postUser6 {color:darkviolet;}
/* ---------------- */

Questions:

1) If there are 4 default groups (ID1, ID2, ID3, ID4), and I added 2 other groups (ID5 ; ID6) - do i have to define colors for all 6 groups?

2) If so do I have to add the line a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:#EBBCB1;} also?

I tried in many different ways but names arent colored.


Buffer overrun detected!
Armaros
Posts: 1424
Message # 32 | 9:22 PM
Quote (Sir_Cr4p)
do i have to define colors for all 6 groups?
No.

Quote (Sir_Cr4p)
I tried in many different ways but names arent colored.
Use HTML colour codes not "darkgoldenrod" etc. Link
Sir_Cr4p
Posts: 21
Reputation: 6
Message # 33 | 10:38 PM
/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:#191970;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:#FFFF00;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:#808000;}
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:#B8860B;}
a.groupOther2:link,a.groupOther2:visited,a.groupOther2:hover {color:#9400D3;}
a.postUser1 {color:#808000;}
a.postUser2 {color:#191970;}
a.postUser3 {color:#FFFF00;}
a.postUser4 {color:#B8860B;}
a.postUser5 {color:#9400D3;}
/* ---------------- */

ID1 user
ID2 member
ID3 moderator
ID4 administrator
ID5 groupOther1
ID6 groupOther2

lol man, im not sure about the sequence. i guess thats why its not working.


Buffer overrun detected!
Post edited by Sir_Cr4p - Wednesday, 2009-04-29, 10:42 PM
Sunny
Posts: 9296
Reputation: 456
Message # 34 | 9:26 AM
Sir_Cr4p, add the second part of the code (a.postUser) under /* Posts View */ -> .postUser {font-weight:bold;}
I'm not active on the forum anymore. Please contact other forum staff.
Armaros
Posts: 1424
Message # 35 | 11:23 AM
Do as Sunny said + leave colours in HTML code or they wont work properly.
Armaros
Posts: 1424
Message # 36 | 12:06 PM
Quote (Sir_Cr4p)
[b][/b] has been removed as it has no effect anyway)
You must use HTML because it's source page and uses HTML panel not BBC.

Code
<b> </b>

Quote (Sir_Cr4p)
anyways, i've read i have to mod the informer if i want names to be colored....how and where (this is the right question i bet)?
Colour name where exactly?
Sir_Cr4p
Posts: 21
Reputation: 6
Message # 37 | 1:44 PM
i tried both bb and html. same effect.

exactly here

Quote (Sir_Cr4p)
2. section view
http://img70.imageshack.us/img70/6422/forumsection.jpg
names arent colored

or here

Quote (Sir_Cr4p)
1. general forum view
http://img13.imageshack.us/img13/995/forumview.jpg

is it possible to have it there? i mean im not a coder so if thats to difficult for me, np.

Added (2009-05-01, 7:44 Am)
---------------------------------------------
btw i moded ur given code
<tr><td width="23%" class="postTdTop" align="center"><a class="postUser$GROUP_ID$" href="javascript://" onClick="emoticon('$USERNAME$,');return false;"><span class="forum_nik$UID$">$USERNAME$</span></a></td>

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

so name is bold now, but its not colored as i removed .forum_nik1 {color:#F6F6F6;} .
all colors are set
.lastPostGuest,.lastPostUser,.threadAuthor {font-weight:bold}
a.postUser1 {color:#EBBCB1;}
a.postUser2 {color:#808000;}
a.postUser3 {color:#191970;}
a.postUser4 {color:#4B0082;}
a.postUser5 {color:#B8860B;}
a.postUser6 {color:#9400D3;}


Buffer overrun detected!
Post edited by Sir_Cr4p - Friday, 2009-05-01, 1:56 PM
Armaros
Posts: 1424
Message # 38 | 8:34 PM
Quote (Sir_Cr4p)
so name is bold now, but its not colored as i removed .forum_nik1 {color:#F6F6F6;} .
a.postUser1 {color:#EBBCB1;}
a.postUser2 {color:#808000;}
a.postUser3 {color:#191970;}
a.postUser4 {color:#4B0082;}
a.postUser5 {color:#B8860B;}
a.postUser6 {color:#9400D3;}
# It works just fine. Put it under: /* User Group Marks */
# Add nothing extra to entry page. No: .forum_nik1 {color:#F6F6F6;}
# Remember Administrator groups ID is 4 not 1.

Quote (Sir_Cr4p)
.lastPostGuest,.lastPostUser,.threadAuthor {font-weight:bold}
What's with this?
Sir_Cr4p
Posts: 21
Reputation: 6
Message # 39 | 11:27 AM
Quote (Armaros)
Quote (Sir_Cr4p)
.lastPostGuest,.lastPostUser,.threadAuthor {font-weight:bold}
What's with this?

oh dont pay attention, a wrong quote.

i did as u said, till that takes an effect, i have few more questions:

1. can names of moderators be shown in a diff color i.e. #191970? wot i have to mod?
2. can names of members who are viewing forums be bolded?
3. can user groups be shown in "Additional information" regarding to the color is set to each group, like an explanation? for example:
member - EDIS
group - ADMINISTRATORS

http://img201.imageshack.us/img201/3013/modj.jpg


Buffer overrun detected!
Post edited by Sir_Cr4p - Saturday, 2009-05-02, 11:29 AM
Armaros
Posts: 1424
Message # 40 | 11:38 AM
Quote (Sir_Cr4p)
1. can names of moderators be shown in a diff color i.e. #191970? wot i have to mod?
If I understood you correct: CP -> Customize Design -> CSS.

Find: forumModer
Change: "color:" part.

Quote (Sir_Cr4p)
2. can names of members who are viewing forums be bolded?
Yes but also "Forum is being viewed by:" part will be bold.

CP -> Customize Design -> CSS -> F3 -> Paste: .forumOnlineBar -> F3.

Add: font-weight:bold;
Before: color:#E4FAFD;

Quote (Sir_Cr4p)
3. can user groups be shown in "Additional information" regarding to the color is set to each group, like an explanation? for example:
Aren't those group colours? They already show like you set them in CSS.
Sir_Cr4p
Posts: 21
Reputation: 6
Message # 41 | 12:42 PM
thanks, names are bold smile

Quote (Armaros)
Quote (Sir_Cr4p)
1. can names of moderators be shown in a diff color i.e. #191970? wot i have to mod?
If I understood you correct: CP -> Customize Design -> CSS.

no m8, i've added this link to screenshot http://img201.imageshack.us/img201/3013/modj.jpg Forum moderator: EDIS

Quote (Armaros)
Quote (Sir_Cr4p)
3. can user groups be shown in "Additional information" regarding to the color is set to each group, like an explanation? for example:
Aren't those group colours? They already show like you set them in CSS.

no and yes but no.
no - group color isnt shown in forum posts, i meant its not working.
yes - those are group collors, but its not wot i ment. for example ur group is Moderators, so i want the word "Moderators" to be shown on the bottom of this forum main page in the same color as your name- Armaros.


Buffer overrun detected!
Post edited by Sir_Cr4p - Sunday, 2009-05-03, 12:52 PM
Armaros
Posts: 1424
Message # 42 | 0:03 AM
Quote (Sir_Cr4p)
no m8, i've added this link to screenshot http://img201.imageshack.us/img201/3013/modj.jpg Forum moderator: EDIS
You need a coding knowledge for this and it's not uCoz's job to teach people coding.
But as you're very good user and didn't broke rules - I'm willing to explain you this.


Location: CP -> Customize Design -> CSS

Find: .forumDescr,.forumModer {color:#888888;font-size:7pt;}

Replace with:
.forumDescr {color:#888888;font-size:7pt;}
.forumModer {color:#888888;font-size:7pt;}
.forumModer:link {color:#FF0000;}
.forumModer:visited {color:#FF0000;}
.forumModer:hover {color:#0000FF;}
.forumModer:active {color:#0000FF;}

Red - Link/User display colour.
Green - When mouse touches link/user.
Info: HTML Colour Codes

Quote (Sir_Cr4p)
no and yes but no.
no - group color isnt shown in forum posts, i meant its not working.
yes - those are group collors, but its not wot i ment. for example ur group is Moderators, so i want the word "Moderators" to be shown on the bottom of this forum main page in the same color as your name- Armaros.
You mean Colour Legends ?
Armaros
Posts: 1424
Message # 43 | 11:39 AM
uCoz default groups have names not IDs in CSS. And they have grey
cross which means those groups aren't possible to delete - In Green

New groups will be listed by creation time, the group which have ID 5 in the user list is first created custom group. Group with ID 6 is second custom group. (In purple/red/blue) First custom group have ID 1 in the CSS because the default groups have names not IDs. And that's why:

o User List oo CSS ID o
51
62
73
84
95
106
117
128
139
1410
1511
Attachments: 8975646.png(17Kb)
gobadgers77
Posts: 2
Reputation: 0
Message # 44 | 7:48 PM
Question: Can a user be put into two usergroups? Say, moderator and a custom one I created?
Answer: No.
Armaros
Posts: 1424
Message # 45 | 7:50 PM
Question: I accidentally deleted one of my usergroups, how can i bring it back?
Answer: You can't.
uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Page 3 of 22«123452122»
Search: