Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Custom CSS based on ranks

NickSNickS New
edited August 2012 in Vanilla 2.0 - 2.8

Is it possible to add the custom CSS based on the ranks of the users, so that the posts could be easy recognizable and separated. Staff Post/Member made posts? Something similar like you are using here.

Comments

  • LeeHLeeH
    edited August 2012

    I'm doing this with RoleBadges, and then hiding the generated span with display:none for everyone except mods & admins. I'm also subbing in a small image using the span's background property, instead of just displaying text. Works pretty well.

    Formal rank support doesn't look like it's in public Vanilla yet, unfortunately. Hoping that it does make it in when 2.1 hits release.

    UnderDogNickS
  • UnderDogUnderDog Moderator

    First, take a look at this plugin http://vanillaforums.org/addon/roletitle-plugin and maybe what you're asking is already built in into Vanilla 2.1

    NickS
  • NickSNickS New
    edited August 2012

    I'm using the 2.1 atm :)
    Yeah I know about RoleBadges @LeeH. What I want to do is to set class in CSS for Staff posts to differ from the user posts. Not to display role.

  • NickSNickS New
    edited August 2012

    Tried RoleTitle. Still not the effect that I want to accomplish. Something like this would be near it.

    UnderDog
  • @NickS - Check forum.chroniclesofgeorge.com for what I'm doing. This thread has both mods and the admin (me) posting. If that looks closer to what you want, I can share my CSS.

    NickSUnderDog
  • UnderDogUnderDog Moderator

    What I would do is write out exactly what I needed, so 'I need this and that functionality from RoleBadges, this and that functionality from RoleTitle, but I do not need that functionality and that functionality I'm missing from both plugins'.

    That way it's easier to construct the plugin you need.

    NickS
  • I'm sorry I was in hurry so I figured out that first post didn't make a lot of sense:) Yeah RoleBadges is perfect for adding the badges to differ the ranks. I guess I will be using it if I don't figure custom post css by ranks in first place :)
    Thanks.

Sign In or Register to comment.