Sunday, 2024-12-22, 9:55 AM
Welcome Guest

AppleSauce

Join the Site Staff | Main | Registration | Login | RSS
Main » 2009 » June » 28 » Usergroup Colors
Usergroup Colors
5:11 PM
Section 1

As
stated in my previous article, I have been attempting to add colors to the usernames in Forum posts. And I must admit that when I started, I had no idea how to do this. So, I asked the Admins at Ucozers, and with their help I applied the colors relatively easily. So now the colors are applied, and making the forum just a little cooler looking that before.

Section 2

If you are at all interested in how I got the colors applied than read on. But If technical stuff makes your brain hurt, or you just dont care, I advise you to skip to section 3, as the following section is about technical junk that may bore you to tears.

Okey, the first thing I did to apply the colors, was modify the HTML code for the forum, and added in the following code to enable the color function.

<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>

Then I opened the CSS style sheets and added this code.

/* User Group Colors in Posts*/

a.postUser1 {color:#ed7700;}
a.postUser2 {color:#000000;}
a.postUser3 {color:#1882ed;}
a.postUser4 {color:#6716ef;}
a.postUser6 {color:#00a000;}
a.postUser5 {color:#970c51;}
/* ---------------- */

Each one of those code lines defines the color a useregroup should be.  Interesting, huh? Anyway, that's how I got it to work.

Section 3

The new usergroup colors are as follows...

Administrators

Moderators

Assistant Site Managers (ASM)

Premium Members

Users


Views: 3127 | Added by: ScottyBoy | Tags: User Colors, User Group Colors |
Total comments: 0
Only registered users can add comments.
[ Registration | Login ]
Login form
Mini chat
Tags
Polls
What Operating System Do You Run?
1. Snow Leopard
2. Tiger
3. Leopard
4. Panther
5. Jaguar
6. Puma
7. Cheetah
8. OS 9
9. Older
Total of answers: 2
Counter
Copyright - Scotty C © 2024 |