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.
XI_iiLluZioNzZx
Posts: 44
Reputation: 0

Message # 271 | 3:45 AM
is there anyway i can use this as the color for admin???

Code
<span style="background-image:url(http://gravitybomb.net/rain.gif);">INSERT HERE</span></a>

Added (2011-04-09, 9:45 PM)
---------------------------------------------
or this???

Code
<span style="background-image: url(http://shiver.cc/obg.gif)" title="INSERT HERE"><font color="white">INSERT SAME</font></span>

dvhax.ucoz.com

proud member of ucoz since 5/31/10

Post edited by XI_iiLluZioNzZx - Sunday, 2011-04-10, 3:47 AM
Animorph
Posts: 2856
Reputation: 189

Message # 272 | 8:36 AM
XI_iiLluZioNzZx, yes with usage of conditional operators. if you understand them then it would be easy smile
To busy building a passive income online ;)
XI_iiLluZioNzZx
Posts: 44
Reputation: 0

Message # 273 | 8:50 AM
xD you wanna do this for me xD????
dvhax.ucoz.com

proud member of ucoz since 5/31/10

Animorph
Posts: 2856
Reputation: 189

Message # 274 | 8:54 AM
XI_iiLluZioNzZx, why not because you are o so "thankfull"

Code
<?if($GROUP_ID$=4)?> Your code for admins <?else?>your code for other users<?endif?>

To busy building a passive income online ;)
-VishaL-
Posts: 48
Reputation: 1

Message # 275 | 6:05 AM
i made Reviewer Group but its color not show [color code blue]

My Group Code

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.groupChecked:link,a.groupChecked:visited,a.groupChecked:hover {color:yellow;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:yellow;}
a.groupReviewer:link,a.groupReviewer:visited,a.groupReviewer:hover {color:blue;}
/* ---------------- */

Jan
Posts: 301
Reputation: 19

Message # 276 | 6:20 AM
-VishaL-,
Quote (Sunny)
Each new group has the designation groupOther(1-8)

use:

Quote
a.groupOther1:link,a.groupOther1:visited,a.groupOther1:hover {color:blue;}

( If Reviewer is your next greated group)

Dark__Gamer
Posts: 30
Reputation: 0

Message # 277 | 3:08 AM
Sorry if this has been answered before but if I creat a custom user group they are unable to send the admins of my site messages. How can I fix this?
A Naughty Dog Fansite! Check us out maybe even Sign up.
Violation of http://forum.ucoz.com/forum/30-3739-1
Blazer
Posts: 310
Reputation: 25

Message # 278 | 3:14 AM
Dark__Gamer, you can prevent a specific group from sending private messages by editing the user permissions and yes you can create a group.
If i helped you + My Reputation and Give me an Award.
Post edited by Blazer - Friday, 2011-06-17, 3:15 AM
Dark__Gamer
Posts: 30
Reputation: 0

Message # 279 | 3:23 AM
Quote (Blazer)
Dark__Gamer, you can prevent a specific group from sending private messages by editing the user permissions and yes you can create a group.


I have but even then they get a message saying i've disabled receiving messages from that usergroup

A Naughty Dog Fansite! Check us out maybe even Sign up.
Violation of http://forum.ucoz.com/forum/30-3739-1
Blazer
Posts: 310
Reputation: 25

Message # 280 | 3:25 AM
Dark__Gamer, you want to disable that message ?
If i helped you + My Reputation and Give me an Award.
Dark__Gamer
Posts: 30
Reputation: 0

Message # 281 | 3:28 AM
Quote (Blazer)
Dark__Gamer, you want to disable that message ?


Well kinda. I just want custom usergroups to be able to send me pm's

A Naughty Dog Fansite! Check us out maybe even Sign up.
Violation of http://forum.ucoz.com/forum/30-3739-1
Natashko
Posts: 3366
Reputation: 171

Message # 282 | 8:46 AM
Dark__Gamer,
Quote (Dark__Gamer)
Well kinda. I just want custom usergroups to be able to send me pm's

Go to CP->Users->User groups->Set permissions for all groups->Users->Send private messages->make sure that the newly created group has a right to send PMs. If users are able to send PMs they can send them to all the groups (including Admins).
Hornstar
Posts: 17
Reputation: 0

Message # 283 | 4:25 PM
Excuse me , I have 9 groups , how should I add color to them? The 9 groups are :
Moderators
Super Moderators
Administrator
Retired Staff
Site Helpers
Checked
Registered
Princess Moderators
Banned
Animorph
Posts: 2856
Reputation: 189

Message # 284 | 6:21 PM
Hornstar,
Quote (Sunny)
Each new group has the designation groupOther(1-8), as you can add 8 custom groups.


and read here how to add color on them smile
http://forum.ucoz.com/forum/7-474-2340-16-1206613528

To busy building a passive income online ;)
TTGxBliiTz
Posts: 5
Reputation: 0

Message # 285 | 0:43 AM
Is there anyway to like add color to user name only for sertan groups if not is it possible just to add color to a username??
Search: