An idea on how to highlight higher or special user groups.
..dot.. |
|
---|---|
This I made a while ago for my site, it’s to make it more clear to the users how is admin or moderator, for now I only made it for the users.php part of the site but I was thinking of if it would be possible to make something like it to use by default? What do you think?
I used CSS to make the table and text in different colors, I also used the group numbers to recognize the member status.
table.color5 { width:99%; margin:2px; padding:0px; }
table td.color5 { border: solid 1px #827B60; padding:6px; background-color:#ECD672; margin:0px; }
table td.color5 a { font-weight:bold; font-size: 110%; color: #AF7817; }
table td.color5 a:hover { text-decoration:underline; color: #D92F6D; }
table.color7 { width:99%; margin:2px; padding:0px; }
table td.color7 { border: solid 1px #827B60; padding:6px; background-color:#C6DEFF; margin:0px; }
table td.color7 a { font-weight:bold; font-size: 110%; color: #307D7E; }
table td.color7 a:hover { text-decoration:underline; color: #D92F6D; }
For the HTML I simply just used the class I made along with the {USERS_ROW_MAINGRPID} tag like this. <!-- BEGIN: USERS_ROW --> <tr> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_PM}</td> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_NAME} {USERS_ROW_TAG}</td> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_MAINGRP}</td> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_MAINGRPSTARS}</td> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_COUNTRYFLAG} {USERS_ROW_COUNTRY}</td> <td class="color{USERS_ROW_MAINGRPID}">{USERS_ROW_REGDATE}</td> </tr> <!-- END: USERS_ROW --> Here is some examples links of what I mean... LINK TO EXAMPLE 1 (Admin) LINK TO EXAMPLE 2 (Mod) Sorry for the bad eng and explanation and the code I am in a bit of hurry and it was I while ago I made it, hope it’s understandable anyway. |
|
This post was edited by ..dot.. (2008-09-08 21:39, 16 years ago) |
Trustmaster |
|
---|---|
Well, it's quite an easy trick anyone could use easily. The more problematic is coloring usernames in other site areas like forums, etc.
May the Source be with you!
|
..dot.. |
|
---|---|
Yes agree, that’s why I showed the example I was thinking of something like it for all parts. (But not like I made it, would probably be best if it was made as core or a plug.) The way I am thinking of it is to make it so it’s optional by default in the admin part to choose colors for admins and moderators and so on. It’s just a suggestion.
|