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

Custom user preference for Quote Block Expand?

Discussion in 'XenForo Questions and Support' started by Isil`Zha, Feb 24, 2015.

  1. Isil`Zha

    Isil`Zha Active Member

    Is there any way to turn this on/off through a custom user preference?

    I have several users that don't want this feature on, and I'd really like to get rid of having an entire extra child style just for that. In the bb_code_tag_quote template, the bb_code.css section doesn't work with the custom user preferences.
  2. Russ

    Russ Well-Known Member

    Pretty easy to do...

    https://theadminzone.com/ has it setup for a user field


    Then inside the message template you could do something like this towards the top above this snippet

    <li id="{$messageId}"
    <xen:if is="{$visitor.customFields.expandquotesauto.on} == 'on'">
    .bbCodeQuote .quoteContainer .quoteExpand.quoteCut
       display: none;
    html .bbCodeQuote .quoteContainer .quote
       max-height: none;


    You can word it however you like, or also apply the CSS in another manner, even adding just an extra class inside the <li then add the css to extra.css targeting messages only with that class.
    Isil`Zha and Xon like this.
  3. Isil`Zha

    Isil`Zha Active Member

    That's exactly what I was looking for. Thanks. :)

Share This Page