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

XF 1.5 Xenforo Custom BB Codes

Discussion in 'XenForo Questions and Support' started by abdfahim, Oct 8, 2015.

  1. abdfahim

    abdfahim Active Member

    I was wondering what is the end result if I check "Within This BB Code: Disable line break conversion" in advanced option...
  2. abdfahim

    abdfahim Active Member

    Also, I want to know the correct way to add BB code for row span, colspan etc. (I couldn't find any documentation about this new feature in XF help section)

    Right now I have defined them as separate tag, is it the best way to do?

    BB Code Tag: tdrowspan
    HTML Replacement: <td rowspan="{option}">{text}</td>

    BB Code Tag: tdcolspan
    HTML Replacement: <td colspan="{option}">{text}</td>
    Last edited: Oct 8, 2015
  3. Mike

    Mike XenForo Developer Staff Member

    It prevents line breaks from being turned into <br /> tags. It's mostly significant if you're using a <pre> tag, for example.

    Well because of the structure of tables, they don't necessarily lend themselves to "basic" custom BB codes (instead working better with custom PHP code powering it).

    But a setup like that should work.
    abdfahim likes this.

Share This Page