Admin and mod names in color

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

    Admin and mod names in color

    how to make administrator and moderator names in colors?

    #2
    select permisionons.. if $perm>0
    Nous Ne Dansos Pas, Nous Sommes Le Danse.!

    Comment


      #3
      you ca use even css for that like

      Code:
      .owner {color: #F07080;
       font-weight: bold; }
      
      
      .admin {color: #38ACEC;
       font-weight: bold; }
      Last edited by GiLL; 13.01.10, 14:15.
      left wap stuff

      Comment


        #4
        yeah i tried css but not like tht

        Comment


          #5
          heres what i do on my site (you'll need to modify it to suit yours)

          function
          PHP Code:
          function get_user_class_color($class) {
           switch(
          $class) {
            case 
          10$color "owner"; break;
            case 
          5$color "moderator"; break; 
            default: 
          $color "member";
            }
           } 
          css
          Code:
          .owner { color: #ff0000; }
          .moderator { color: #0000ff; }
          .member { color: #000000; }
          usage
          PHP Code:
          echo "You are viewing <span class='".get_user_class_color($user['class'])."'>".$user['username']."</span>'s profile!"

          Comment

          Working...
          X