1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 BBCode in Help Pages?

Discussion in 'XenForo Questions and Support' started by Robust, Dec 30, 2015.

  1. Robust

    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?
  2. Mike

    Mike XenForo Developer Staff Member

    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.
  3. cclaerhout

    cclaerhout Well-Known Member

    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:
    Robust likes this.
  4. Chris D

    Chris D XenForo Developer Staff Member

    Personally, I'd go for just calling the bb_code_tag_spoiler template in the help page template, e.g.

    <xen:include template="bb_code_tag_spoiler">
        <xen:set var="$titleHtml">
            I have something to tell you...
        <xen:set var="$content">
            It's a secret!
    maszd, Jeremy, Robust and 2 others like this.

Share This Page