Page 1 of 11
Forum moderator: Eriko 
uCoz Community » uCoz Modules » Tag Board » Color = Rank System for Tag Board?
Color = Rank System for Tag Board?
khamarr3524
Posts: 3
Reputation: 0
Message # 1 | 3:05 AM
Does anyone have or know how to code a system that gets the user's rank and force sets the color to this. It would be useful for me because I would Like Admins to be in red, support in blue, moderator in green etc.
Paradox
Posts: 3230
Reputation: 145
Message # 2 | 5:53 AM
khamarr3524, unfortunately it isn't possible to do this as far as I have seen by $GROUP$ however it is possible by $USERNAME$ it is somewhat more time-consuming if you have a lot of seperate staff members but it is the only way I have seen. wink

An example of this would be;

Code
<?if($USERNAME = "Paradox")?><b style="color:red">Paradox:</b><?endif?>

On an indefinite leave of absence.
khamarr3524
Posts: 3
Reputation: 0
Message # 3 | 6:21 AM
This adds another name line to my name and doesn't change the text color, but thank you for your assistance. I'll see if I can make something real quick but HTML isn't my thing.

Edit: I was able to figure my way around it. It's easier than I thought. A more complex system of checking will be needed, but for me this will work for now I guess.

Code
<?if($USERNAME$ = "khamarr3524")?><div class="cMessage" b style="color:red;" style "text-align:left;">$MESSAGE$</div><?else?><div class="cMessage" style="text-align:left;">$MESSAGE$</div><?endif?>
Post edited by khamarr3524 - Wednesday, 2012-04-11, 6:28 AM
franci
Posts: 10
Reputation: 0
Message # 4 | 9:18 AM
Is not made in each group has to own the color automatically in chat?

I have try many which I have read here but not manages.
Sunny
Posts: 9296
Reputation: 456
Message # 5 | 9:29 AM
franci,

Quote Paradox ()
unfortunately it isn't possible to do this as far as I have seen by $GROUP$

I'm not active on the forum anymore. Please contact other forum staff.
franci
Posts: 10
Reputation: 0
Message # 6 | 9:40 AM
i see that.
for sure I asked
thank you
Post edited by franci - Wednesday, 2014-09-24, 9:41 AM
Clyde
Posts: 153
Reputation: 0
Message # 7 | 1:46 PM
Can work this way - it's how we have it @ our chatbox...

TagBoard Appearance of entries...

<?if($USER_ID$ = '1' )?>red<?else?><?if($USER_ID$ = '4' )?>(and the user id numbers of the other mods)
all others show as orange<div style="text-align:left;color:orange;">

administartors = red
mods=green
all other members=orange

...works well for us -

Ucoz Website Since 2009
Sunny
Posts: 9296
Reputation: 456
Message # 8 | 3:18 PM
Clyde, that's right but you use users IDs, not group IDs.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Tag Board » Color = Rank System for Tag Board?
Page 1 of 11
Search: