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

Implemented CSS Classes for Thread Prefixes

Discussion in 'Closed Suggestions' started by John L., Jun 22, 2011.

  1. John L.

    John L. Well-Known Member

    This is a suggestion for a feature that is not out yet so you may have this already implemented for 1.1. But when a prefix is created and put on a thread I would like to see that thread row in the thread list have a css class applied to it that matches the prefix. For example:

    I have a prefix created called "in progress". I would like to have a css class applied to the thread listing called "in-progress" so that I can use CSS to apply special styles to that listing. Thank you!
     
  2. Kier

    Kier XenForo Developer Staff Member

    Already in 1.1 :)
     
    Alien and CyberAP like this.
  3. John L.

    John L. Well-Known Member

    Sweet! And...when are we seeing that again? :D
     
  4. James

    James Well-Known Member

    Summer ;)
     
  5. John L.

    John L. Well-Known Member

    How about for my birthday, July 17th. Would be an AWESOME present :).
     
  6. Forsaken

    Forsaken Well-Known Member

    Lets say my bday, its 6 days ealier ;).
     
  7. Kier

    Kier XenForo Developer Staff Member

    In the current implementation, threads with a prefix have an extra CSS class of prefixN applied to the li.discussionListItem, where 'N' is the numeric ID of the thread prefix, therefore if your 'in progress' prefix had prefix_id = 321, you would be able to create a CSS class called .prefix321 and apply your custom styling to that. XenForo itself does not make use of that class.
     
    A.E., Onimua, John L. and 1 other person like this.
  8. James

    James Well-Known Member

    And just to ask, are these prefixes clickable (so we can filter a forum to show only a specific prefix - like vB's &prefixid=x query string)?
     
    Forsaken likes this.
  9. John L.

    John L. Well-Known Member

    I like it, makes it more flexible for styling specific prefixes. Thank you!
     
  10. Kier

    Kier XenForo Developer Staff Member

    Of course :)
     
    Alien, pjfry, CyberAP and 5 others like this.

Share This Page