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

XF 1.3 User Group Name help

Discussion in 'XenForo Questions and Support' started by ErikaTV, Jul 30, 2014.

  1. ErikaTV

    ErikaTV Member

    So today I went on my website and I needed to create a Developer rank.
    And for some reason the username CSS is not working.

    All the other ranks have the padding of 20 and the image on the left of their name including with a custom color.

    [​IMG]



    Since Tiny_Spider is a developer, I made him a developer rank.
    Here is the Username CSS for developer:
    [​IMG]


    And here is Moderator's CSS:

    [​IMG]


    I don't get it. There are practically the same.
    Yet the moderator rank is working just fine as you saw above. And the Developer doesn't even have the colored name or the image.
     
  2. Mike

    Mike XenForo Developer Staff Member

    I'm confused by the CSS you entered there. You just need to write the rules, no selectors. (If you want selectors, use EXTRA.css instead.) Because of the extra (and unmatched?) { ... } you're going to be outputting potentially broken CSS.
     
  3. ErikaTV

    ErikaTV Member

    Wait so take out the "{}"s?
    I don't understand why it is working for all of the other username codes?
     
  4. Mike

    Mike XenForo Developer Staff Member

    You should just include the background, padding and color lines (for example).

    With what you have, invalid CSS is being outputted, so it's really down to how browsers may parse that. Sometimes it'll still work how you wish, other times it won't.
     
  5. ErikaTV

    ErikaTV Member

    I tried making another user group, and for some reason, the code doesn't work for the ones I have tried to create.
    But it still works, for the groups I have previously created.
     
  6. ErikaTV

    ErikaTV Member

  7. Mike

    Mike XenForo Developer Staff Member

    Have you followed my suggestions? (For all groups.)

    There is almost certainly broken CSS that will need to be identified and fixed. You should revert to the default style, remove all user group CSS, and re-add the CSS using the expected format (as mentioned above).
     
  8. ErikaTV

    ErikaTV Member

    So, do you think if I change all of the other CSS coding. That the other groups I have recently created would work? Is it because of that?
     
  9. Mike

    Mike XenForo Developer Staff Member

    It is almost certainly because of broken CSS. What you have shown is broken CSS. Therefore, that's the first thing to sort.
     
  10. ErikaTV

    ErikaTV Member

    Thank you so much!
    It has been fixed. It was indeed the broken CSS.
     

Share This Page