XF 2.1 Custom BB code to expand blocks like QUOTE

frm

Well-known member
Sometimes users like to come in and post a whole Wiki article or something. I tried to make a similar BB code as QUOTE as follows so that I can wrap it to be less annoying to users (or people do it themselves):
HTML:
<blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote">
<div class="bbCodeBlock-title">
Expandable Text
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent ">{text}

</div>
<div class="bbCodeBlock-expandLink"><a>Click to expand...</a></div>
</div>
</blockquote>

But it just outputs the "Expandable text" and "Click to expand" above/below the text. What's missing?
 
From the top of my head I think you need to load the js/css that's normally included with the quote bb code template in addition to your html markup.
 
Top Bottom