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.
PixelKhaos
Posts: 636
Reputation: 26

Message # 316 | 1:41 AM
DanielM, That however, I do think must be changed through CSS.
But I can at least see that your group is groupOther4, the rest you will have to figure out.

Proud uCoz user since 2006
Freelance designer - http://pixelkhaos.com
PixelKhaos on twitter - @PixelKhaos

I can help you develop your site for a small fee.
Post edited by PixelKhaos - Friday, 2013-08-16, 1:42 AM
DoK
Posts: 4
Reputation: 0

Message # 317 | 11:30 PM
How can i add glow and effects to the text? Like here http://i60.tinypic.com/2d8l08h.jpg. Also can i know all list of group that is set as default like(GroupVerify;GroupUser;GroupModer;GroupAdmin;GroupBanned; and other 2 how could be written, GroupFriend?GroupGuest?) Other 8 additional group users i know how to edit, just would to know these 2. If it possible can you give me the CSS code that i could edit it and add these kinds of effects described above.

Thanks
Sunny
Posts: 9296
Reputation: 456

Message # 318 | 10:47 AM
Quote DoK ()
How can i add glow and effects to the text?


You can Google this information.

Quote DoK ()
Also can i know all list of group that is set as default


a.groupModer - moderators
a.groupAdmin - administrators
a.groupVerify - checked
a.groupUser - users
a.groupFriends - friends
a.groupBanned - blocked

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

Message # 319 | 4:51 PM
Quote Sunny ()
You can Google this information.

For those who don`t know how to put glow on text here it is the code :
Code

text-shadow: 0 0 10px #ec1616;

you can change the color #ec1616 to other...
also i found "the cut effect of the text"
Code
text-decoration: line-through;


for example for glow text ,for an admin
Code

a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:#ec1616;text-shadow: 0 0 10px #ec1616;}


example for cut effect for banned user here:
Code
a.groupBanned:link,a.groupBanned:visited,a.groupBanned:hover {color:Grey;text-shadow: 0 0 10px Grey;}text-decoration: line-through;


also if you want to add effects for text ,here is the code for it:
Code
background-image: url(http://dl9.glitter-graphics.net/pub/582/582729wp1gz6acst.gif);

you can change the link to your effect, remember for effects you should have gif transaparent pictures else you will get a fail

for example an admin with stated above effect will be:
Code
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:#ec1616;text-shadow: 0 0 10px #ec1616;background-image: url(http://dl9.glitter-graphics.net/pub/582/582729wp1gz6acst.gif);}
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 320 | 3:33 AM
DoK, please keep in mind it is best to host files locally on your website so that they don't become unavailable in the future, and in addition, some of these styles are not necessarily going to have the same outcome in all internet browsers. smile
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
srkisara
Posts: 39
Reputation: 0

Message # 321 | 3:18 PM
What means when showed in admin bar yellow icon and says user group has be changed?
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 322 | 3:20 PM
srkisara, it means you're currently viewing the site as a user group other than your own. It's a feature for admins to see how other groups view pages and site templates, and how different groups with different permissions would encounter restrictions and limitations. smile
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
srkisara
Posts: 39
Reputation: 0

Message # 323 | 3:23 PM
Thanks Paradox. Very quickly answer.

You're right.
Icon show a little late.
Post edited by srkisara - Thursday, 2014-03-20, 9:14 AM
rhyjames187
Posts: 1
Reputation: 0

Message # 324 | 9:15 AM
When I try to use the builder on my sites, I get the below message,
what does this mean, and why am I getting this.
I AM the administrator.

Your user group is prohibited from performing this action.

Send any questions to the site administrator. sad

And here is my Website "http://wc3maps.ucoz.com/"
Please could someone help me I really need your Feedback, hope you are willing to help me sad
Sunny
Posts: 9296
Reputation: 456

Message # 325 | 3:01 PM
rhyjames187, please provide a screenshot of the page with the message displayed. Also, check whether the option "Edit site design" is enabled in Control Panel > Users > User groups > Administrators > Other.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Site Users » User groups (group colors, how to change a user group)
Search: