... How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses?
You could do something like this:@AndyB, You are the best! How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses?
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote">
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}">
.bbCodeBlock--expandFull .bbCodeBlock-expandContent
{
max-height: 100%;
}
[QUOTE="hibiskus, post: 1347561, member: 192033"]
becomes [QUOTE="hibiskus, post: 1347561, member: 192033, expand:full"]
Add this to your extra.less template:
CSS:.bbCodeBlock--expandable .bbCodeBlock-expandContent { max-height: 100%; }
It's working for me in 2.1. Does it not work in 2.2?That no longer works in more recent versions of XF.
Instead, in ACP search for Maximum expandable BB code block height and change the setting to a high number like 9999px.
It's working for me in 2.1. Does it not work in 2.2?
Edit: except that when you preview quotes in a new thread this will only work if you include !important in the CSS
It's working for me in 2.1. Does it not work in 2.2?
I just double checked. I was using a slightly different code which used to work but not after 2.1:Yes work fine for me in both XF 2.1 and XF 2.2.
/* bad code do not use this */
.bbCodeQuote .quoteContainer .quote {
max-height: 100% !important;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.