• 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?


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.


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.