• 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

abdfahim

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

abdfahim

Active member
#2
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:

Mike

XenForo developer
Staff member
#3
I was wondering what is the end result if I check "Within This BB Code: Disable line break conversion" in advanced option...
It prevents line breaks from being turned into <br /> tags. It's mostly significant if you're using a <pre> tag, for example.

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