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

XF 1.4 Making my custom BB Code fully work

Discussion in 'XenForo Questions and Support' started by oman, Oct 26, 2014.

  1. oman

    oman Well-Known Member

  2. Mike

    Mike XenForo Developer Staff Member

    Well, I don't really know what you mean by "doesn't work". At the least, you'd need to provide an example.

    But beyond that, presumably your BB code is just outputting HTML and CSS. You may need to consider outputting a CSS class and then using whatever combination of selectors to target the situations you want to target.
  3. oman

    oman Well-Known Member


    If I were to install the bbcode, and use it with an ordered list like so:

    [*]The XenForo forums are the forums for a business and should be viewable in business contexts or by children. Please do not post anything which is inappropriate in a business setting. This includes, but is not limited to, profanity, sexual, sexualized or illicit content, hateful, threatening, provocative or vulgar content, links and websites and discussion encouraging the use of piracy or warez distributions, or any otherwise illegal content. Please do not attempt to circumvent the censoring options we have set up.
    [*]Be courteous and respect your fellow members. To be clear, personal attacks, aggressive messages, and passive-aggressive behavior is unacceptable. If you take particular issue with another user and are unable to reply in a civilised and constructive way to their posts, you should ignore the user.
    [*]Posts should always be constructive and on topic. For common issues, simply telling someone to search is not acceptable. If you disagree with a post and feel the need to reply as such, it’s important that you explain why. Off topic posts may be moved or deleted as required.
    [*]Similarly, messages involving XenForo’s competitors must be constructive. Posts regarding their business practices, staff, and software are generally unacceptable. However, constructive criticism towards XenForo in relation to others’ features is acceptable (for example, saying that XenForo should function like X in software Y).
    It wouldn't justify the text properly. Or last I checked at least. ;)
  4. Chris D

    Chris D XenForo Developer Staff Member

    Not really sure why your current code uses <p align="justify" /> when all of the existing alignment BB Codes use e.g. <div style="text-align: center" />

    The solution would be to change your HTML replacement to:
    <div style="text-align: justify">{text}</div>
    maszd and oman like this.
  5. oman

    oman Well-Known Member

    Thanks Chris. Appreciate your help. :)

Share This Page