Custom BBcode with several {TEXT} inside and nested BBcode

Get help developing custom BBCodes or request one.
Post Reply
User avatar
ad0726
Registered User
Posts: 8
Joined: Thu May 16, 2019 10:47 pm

Custom BBcode with several {TEXT} inside and nested BBcode

Post by ad0726 » Fri May 17, 2019 1:18 pm

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?

Post Reply

Return to “Custom BBCode Development and Requests”