TIP: How to remove "Click to expand" for QUOTES so the entire quote shows in a post? (No more "Click to Preview")

Manhwas

Administrator
Staff member
How do you remove the, "Click to expand" for quotes so the entire quote shows in a post?

ANSWER:

Instead of using

Code:
[quote] blah blah [/quote]

USE



Code:
[quote=",expand:full"] blah blah [/quote]
 

Manhwas

Administrator
Staff member
What i did was this:

You could do something like this: (DON'T READ THIS IF YOU'RE NOT A FORUM ADMIN)

Edit the template bb_code_tag_quote

Replace this line:

Code:
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote">

with:

Code:
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}">

add to extra.less:

CSS:
.bbCodeBlock--expandFull .bbCodeBlock-expandContent
{
    max-height: 100%;
}

When you quote, simply add an attribute called expand to the BBCode.
[QUOTE="hibiskus, post: 1347561, member: 192033"] becomes [QUOTE="hibiskus, post: 1347561, member: 192033, expand:full"]
 

Manhwas

Administrator
Staff member
Made a better code

instead of


<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote">
or

<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}">

i'd do


<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}">
 

Manhwas

Administrator
Staff member
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}">
 

Manhwas

Administrator
Staff member
nevermind, I ended up doing this

unknown.png
 
Top