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

Unmaintained User Ranks in CSS 1.0

Add user ranks in posts without the need for images.

  1. dutchbb

    dutchbb Well-Known Member

    dutchbb submitted a new resource:

    User Ranks in CSS (version 1.0) - Add user ranks in posts without the need for images

    Read more about this resource...
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That goes hand in hand neatly with the css forum icons I wanted, which Jake did.

    If everything is CSS then it will mean faster loading times and no need to create multiple image sets for each style.
     
  3. Ranger375

    Ranger375 Well-Known Member

    Awesome!

    Can you give an example of a conditional for having another user group in addition to an admin? How would I let the system know when it should appear for just admins and another for xxxx?
     
    Peggy likes this.
  4. Peggy

    Peggy Well-Known Member

    Absolutely fantastic! Thanks for posting this dutchbb. :)
     
  5. Shelley

    Shelley Well-Known Member

    I was just talking about this today in kims xenforo ranks thread. Very nicely done and you beat me to the punch. nice work.
     
  6. Peggy

    Peggy Well-Known Member

    Question.... in these instances:
    border: 1px solid @primaryLight; and color: @primaryMedium;

    Can the primaryLight and primaryMedium be substituted with hex colors?
     
  7. dutchbb

    dutchbb Well-Known Member

    Thanks for the feedback.

    You can, the only difference is that changes to the color palette will not affect it anymore.

    Added to the OP :)
     
  8. Peggy

    Peggy Well-Known Member

    But if you changed the color palette, then you could manually change the hex values, correct?
    I'll most likely use it the way you have it. I'm just thinking of someone who might want to be more creative with their colors.
     
  9. dutchbb

    dutchbb Well-Known Member

    Yes, once the @primaryLight etc are gone you can manually change it to any CSS value for example color: red; or color: #f00;
     
    Peggy likes this.
  10. Shelley

    Shelley Well-Known Member

    If you changed the @primarysomething to a hex value I don't think the colour would change using the colour pallete in the style properties. I personally would have it set to a hex and/or rgb value so it remains independent from the style properties color pallete.
     
    Peggy likes this.
  11. ArnyVee

    ArnyVee Well-Known Member

    Works great! :D

    Just added it to my "Supporter" and "Admins" so far :)
     

    Attached Files:

    Peggy likes this.
  12. Jamie

    Jamie Well-Known Member

    Great Work! Thanks for creating this and showing us how it's done!

    Jamie
     
  13. Ranger375

    Ranger375 Well-Known Member

  14. ArnyVee

    ArnyVee Well-Known Member

  15. Ranger375

    Ranger375 Well-Known Member

    I'm slow today lol
     
  16. Peggy

    Peggy Well-Known Member

    oh that does look good Arny!
     
    ArnyVee likes this.
  17. ArnyVee

    ArnyVee Well-Known Member

    Thanks Peggy :)
     
  18. Peggy

    Peggy Well-Known Member

    Is there a way to delete the text rank right beneath the username? It's redundant having them both there.
     
  19. Brogan

    Brogan XenForo Moderator Staff Member

    You can delete this line from the message_user_info template.
    Code:
    <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
     
  20. Peggy

    Peggy Well-Known Member

    Thanks Brogan.
     

Share This Page