Page 1 of 1

Custom BBcode with several {TEXT} inside and nested BBcode

Posted: Fri May 17, 2019 1:18 pm
by ad0726
Hello there!

I'm updating my forum from 3.1.10 to 3.2.7 and some of my custom BBcode are broken.
Especially, I have some troubles with a BBcode which does a table with two columns.
BBcode:

Code: Select all

[col2]{TEXT1}|{TEXT2}[/col2]
HTML (3.1.10):

Code: Select all

<table width="100%">
    <tr>
        <td style="vertical-align: top; width:50%; padding-right:10px;">
            {TEXT1}
        </td>
        <td style="vertical-align: top; width:50%; padding-left:10px;">
            {TEXT2}
        </td>
    </tr>
</table>
Usage:

Code: Select all

[col2][b]toto[/b]|toto[/col2]
Result (in 3.2.7):
Image
It makes a table with two columns but if I put another BBcode inside, this one isn't interpreted.

After many hours of search, I have found this:
HTML:

Code: Select all

<table width="100%">
    <tr>
        <td style="vertical-align: top; width:50%; padding-right:10px;">
            <xsl:apply-templates select="@content0" />
        </td>
        <td style="vertical-align: top; width:50%; padding-left:10px;">
            <xsl:apply-templates select="@content1" />
        </td>
    </tr>
</table>
But there is the same...
Image

I can't use another BBcode for the table or any extension for that because I have almost 2600 posts using this deprecated custom BBcode.

Have you any solution for that, please?