Username Colors

Discussion in 'vBulletin Discussions' started by duhneiz, Aug 12, 2009.

  1. duhneiz

    duhneiz Newcomer

    Joined:
    Aug 12, 2009
    Messages:
    19
    Likes Received:
    2
    First Name:
    Denise
    Is there a way to change username colors, for specific styles?
     
  2. Demo

    Demo Regular Member

    Joined:
    Jun 9, 2009
    Messages:
    172
    Likes Received:
    6
    Location:
    Europe
    First Name:
    Demo
    Wrap the usernames in a div or something. Then give it a certain class/id and adjust in the css in each style whatever color you want.

    HTML:
    <div class="usernamecolor">duhneiz</div>

    HTML:
    .usernamecolor
    {
    color:green;
    }
    HTML:
    .usernamecolor
    {
    color:red;
    }
     
  3. duhneiz

    duhneiz Newcomer

    Joined:
    Aug 12, 2009
    Messages:
    19
    Likes Received:
    2
    First Name:
    Denise
    i need it to overwrite the group colors...
    for example a light theme and a dark theme.. the same username colors arent going to work
     
  4. Demo

    Demo Regular Member

    Joined:
    Jun 9, 2009
    Messages:
    172
    Likes Received:
    6
    Location:
    Europe
    First Name:
    Demo
    Admin CP - Groups - *some group such as admins* - Username HTML Markup

    Add in first box
    HTML:
    <div class="admingroup">
    Add in second box
    HTML:
    </div>
    That should work. With "class" you can set different colors per style/css and the permissionsystem will divide groups by color this way.

    I hope I understood correctly ^^"
     
  5. duhneiz

    duhneiz Newcomer

    Joined:
    Aug 12, 2009
    Messages:
    19
    Likes Received:
    2
    First Name:
    Denise
    thank u ima try that :)
     
  6. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    You should use the <span> tag and not <div> tags. Usernames are shown inline and <div> is a block level element with whitespace after it.
     
  7. duhneiz

    duhneiz Newcomer

    Joined:
    Aug 12, 2009
    Messages:
    19
    Likes Received:
    2
    First Name:
    Denise
    ok then lol
     
  8. torque

    torque Regular Member

    Joined:
    Jun 7, 2009
    Messages:
    735
    Likes Received:
    12
    Location:
    Campbelltown, New South Wales, Australia
    I was just about to ask this question - thanks for the replies! and thanks for the input Wayne I have noticed <span> is better than div when using vbulletin.
     
  9. duhneiz

    duhneiz Newcomer

    Joined:
    Aug 12, 2009
    Messages:
    19
    Likes Received:
    2
    First Name:
    Denise
    yes thank you.. it worked absolutly perfectly :)
     

Share This Page