1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Username images

Discussion in 'Styling and Customization Questions' started by Stimo, May 28, 2012.

  1. Stimo

    Stimo Active Member

    Hi is there anyway possible to install small icons/images next to a members username so for example when i show online on my forum it would be 'Stimo (icon)' possibly a crown for admin for example.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Users -> List User Groups -> [click a group] -> User Name CSS

    Use this code:

    Code:
    background-image: url('path/to/image.gif');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
    
    You may also need to adjust the padding. The padding should be large enough to accommodate the image.

    This is the result (I used a little folder icon):

    Screen shot 2012-05-28 at 2.05.06 AM.png
     
  3. Stimo

    Stimo Active Member

    Means I would have to make a whole new usergroup? Basically we just finished our F1 Championship and i want to give the user an icon next to his name and no one else to have one.
     
    kkm323 likes this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Correct. The username CSS is for usergroups only.
     

Share This Page