uCoz Community uCoz Modules Site Users User groups (group colors, how to change a user group) |
User groups | ||||||||||||||||||||||||
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.
| ||||||||||||||||||||||||
This is what i've done:
/* User Group Marks */ 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!
| ||||||||||||||||||||||||
/* 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 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
| ||||||||||||||||||||||||
Quote (Sir_Cr4p) [b][/b] has been removed as it has no effect anyway)
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)? | ||||||||||||||||||||||||
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) to this so name is bold now, but its not colored as i removed .forum_nik1 {color:#F6F6F6;} . Buffer overrun detected!
Post edited by Sir_Cr4p - Friday, 2009-05-01, 1:56 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;} # 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} | ||||||||||||||||||||||||
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? Buffer overrun detected!
Post edited by Sir_Cr4p - Saturday, 2009-05-02, 11:29 AM
| ||||||||||||||||||||||||
Quote (Sir_Cr4p) 1. can names of moderators be shown in a diff color i.e. #191970? wot i have to mod? Find: forumModer
Quote (Sir_Cr4p) 2. can names of members who are viewing forums be bolded? CP -> Customize Design -> CSS -> F3 -> Paste: .forumOnlineBar -> F3. Add: font-weight:bold;
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: | ||||||||||||||||||||||||
thanks, names are bold
![]()
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. Buffer overrun detected!
Post edited by Sir_Cr4p - Sunday, 2009-05-03, 12:52 PM
| ||||||||||||||||||||||||
Quote (Sir_Cr4p) no m8, i've added this link to screenshot http://img201.imageshack.us/img201/3013/modj.jpg Forum moderator: EDIS 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: Red - Link/User display colour.
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. | ||||||||||||||||||||||||
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:
Attachments:
8975646.png
(16.8 Kb)
| ||||||||||||||||||||||||
| ||||||||||||||||||||||||
| |||