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

XF 1.4 BB Codes not working on terms of service page

Discussion in 'XenForo Questions and Support' started by JozMan, Jul 9, 2015.

  1. JozMan

    JozMan Member

    Hey guys, editing the terms of service page to put in my new rules but the BB Codes I'm using won't work. I'm using the codes displayed on the "BB Code" page but they're not working, would anyone know why or explain to me what I'm doing wrong, thanks guys!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    BB codes only work in posts.
    You would have to use the HTML equivalents elsewhere.
     
  3. cclaerhout

    cclaerhout Well-Known Member

    You can use this addon that will allow you to use Bb Code there or you can also use this other addon. With this one you can use a template to create your help page and inside this template you can use Bb Codes ; that allows you to phrase the all content. Here's a simple template demo:

    HTML:
    <xen:set var="$presentation">[justify]{xen:phrase sedo_demo_help_fc_presentation}[/justify]
    [bimg=bcenter|80%|no-lightbox]{xen:link 'canonical:styles/sedo/demo/zhfc/help_demo_fc.png'}[/bimg]
    </xen:set>
    
    <div id="my_demo_help" class="sectionMain" data-author="{$xenOptions.boardTitle}">
       <div class="secondaryContent">
         <h1 class="textHeading">{$page.description}</h1>
    
         <div class="messageText ugc baseHtml">
           {xen:helper bbm_unbreakable_quote,
             {xen:helper bbCode, $bbCodeParser, $presentation}
           }
         </div>
       </div>
       <xen:comment>Avatar for Lightbox</xen:comment>
       <a class="avatar" style="display:none"><img src="{xen:link 'canonical:styles/sedo/demo/mc.png'}" /></a>
    </div>
    

    And even more basic:
    HTML:
    <xen:set var="$presentation">[b]Bouh ![/b]</xen:set>
    
    <div id="my_demo_help" class="sectionMain" data-author="{$xenOptions.boardTitle}">
       <div class="secondaryContent">
         <h1 class="textHeading">{$page.description}</h1>
    
         <div class="messageText ugc baseHtml">
           {xen:helper bbCode, $bbCodeParser, $presentation}
         </div>
       </div>
    </div>
    
    
     
  4. JozMan

    JozMan Member

    Alright, thanks guys. :)
     

Share This Page