Username Color Nick Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Username Color Nick Help

    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
    PHP Code:
    //////////////////////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];


    #2
    describe the error

    Comment


      #3
      My ownercp are in wml so it give me parse error

      Comment


        #4
        but parse error shows line and which php it happen.

        describe that parse error


        without error description how can somebody fix it

        Comment


          #5
          Here are a print preview that my site does
          Attached Files

          Comment


            #6
            get ur admin cp convert in xhtml :D

            Comment


              #7
              bro 1st of all you need to change your owner cp in xhtml if you realy want to fix this error. plz try to change 1st owner cp in xhtml...
              Sandeep DiL (INDIAN)



              Comment

              Working...
              X