XF 1.5 BBCode in Help Pages?

Robust

Well-known member
I guess it's not possible to use BB Code in the help pages. That's fine, but for spoilers it makes it difficult, because the replacement for spoilers is a bit different to a simple replacement, so it'd be a lot of code repetition just to get that going.

Any work arounds or ideas you could suggest to use BB Code in help pages?
 
Short of custom development, the only option is really to render it to HTML (such as by making a post and viewing the source) and then pasting the result in.
 
Two possible solutions:
  • Use this addon, enable Bb Codes in Help Pages, and type Bb Codes directly in the editor.
  • Use this other addon, set a template to be loaded instead of your Editor content, in your template type Bb Codes using the Bb Code parser helper like this:
    3-ref-png.98908
 
Personally, I'd go for just calling the bb_code_tag_spoiler template in the help page template, e.g.

Code:
<xen:include template="bb_code_tag_spoiler">
    <xen:set var="$titleHtml">
        I have something to tell you...
    </xen:set>
    <xen:set var="$content">
        It's a secret!
    </xen:set>
</xen:include>

upload_2015-12-30_11-18-29.webp
 
Top Bottom