Jump to content
MakeWebGames

Please help with staff names


shrek1609

Recommended Posts

I'm trying to get my staff names a different colour in the forums...

I've managed it everywhere else but like hell i can work it out for forums...

i've found this (2 instances of this code)

$u=$ir['username'];

if($ir['ul_color']) {

$uname="<font color='{$ir['ul_color']}'>";

if($ir['ul_isbold']) { $uname.=""; }

$uname.=$ir['username'];

if($ir['ul_isbold']) { $uname.=""; }

$uname.="</font>";

$u=$uname;

}

else if($ir['donatordays']) {

$u = "<font color=red>{$ir['username']}</font>";

}

and added

else if($ir['user_level'] ==2) {

$u = "<font color=red>{$ir['username']}</font>";

}

But that doesnt work :(

If anyone could solve this would be very grateful...

Please dont do too complicated answer as only just learning ;)

Link to comment
Share on other sites

Re: Please help with staff names

$u=$ir['username'];

if($ir['ul_color']) {

$uname="<font color='{$ir['ul_color']}'>";

if($ir['ul_isbold']) { $uname.=""; }

$uname.=$ir['username'];

if($ir['ul_isbold']) { $uname.=""; }

$uname.="</font>";

$u=$uname;

}

else if($ir['donatordays'] && $ir['user_level'] !=2)

{

$u = "<font color=red>{$ir['username']}</font>";

}

else if($ir['user_level'] ==2) {

$u = "<font color=red>{$ir['username']}</font>";

}

 

should work for just admins or for all staff could do

 

$u=$ir['username'];

if($ir['ul_color']) {

$uname="<font color='{$ir['ul_color']}'>";

if($ir['ul_isbold']) { $uname.=""; }

$uname.=$ir['username'];

if($ir['ul_isbold']) { $uname.=""; }

$uname.="</font>";

$u=$uname;

}

else if($ir['donatordays'] >0 && $ir['user_level'] ==1)

{

$u = "<font color=red>{$ir['username']}</font>";

}

else if($ir['user_level'] >1) {

$u = "<font color=red>{$ir['username']}</font>";

}

 

im not a super coder myself but that might work let me know if it doesnt

Link to comment
Share on other sites

Re: Please help with staff names

hi no it doesn't work :(

my code for the admin coloured names i thought should work but doesn't and its really doing my head in...

The code to change forum name to red for donators is already there so i can't understand why the code i have added doesn't work...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...