Username Color Nick Help

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

6 replies · 709 views · started 17 years ago · 1 min read

4 participants
riderz Lead · 975 posts #1

Hey i want to add the option that my users nickname can be in color staff vip and ofcoz the users depending on their status

i have this code but when i add it in core.php i get an error in admincp when try changing user info

//////////////////////GET USER NICK FROM USERID

function getnick_uid($uid)
{
  $unick = mysql_fetch_array(mysql_query("SELECT name,plusses,perm,specialid FROM ibwf_users WHERE id='".$uid."'"));

  if($unick[2]=='3')
  {
    return "<font color=\"red\">$unick[0]</font>";
  }
    else if($unick[2]=='2')
  {
    return "<font color=\"blue\">$unick[0]</font>";
  }
   else if($unick[2]=='1')
  {
    return "<font color=\"green\">$unick[0]</font>";
  }

  else if($unick[3]>0)
  {
    return "<font color=\"orange\">$unick[0]</font>";
  }

  return $unick[0];
}

function getnick_uid_noc($uid)
{
  $unick = mysql_fetch_array(mysql_query("SELECT name,plusses, perm FROM ibwf_users WHERE id='".$uid."'"));
  return $unick[0];
}

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #3

My ownercp are in wml so it give me parse error


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

godzilla Developer · 119 posts #4

but parse error shows line and which php it happen.

describe that parse error

without error description how can somebody fix it

riderz Lead · 975 posts #5

Here are a print preview that my site does


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Attachments: error.jpg
johnny Junior · 47 posts #6

get ur admin cp convert in xhtml 😀

Learner lolz

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close