Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16062

Custom BBcode with several {TEXT} inside and nested BBcode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.2.7
    • None
    • BBCode Engine
    • None
    • Prod: Debian 4.9.3, PHP 7.0.3, MariaDB 15.1
      Local: Ubuntu 19.04, PHP 7.2.1, MariaDB 15.1

    Description

      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:

      [col2]{TEXT1}|{TEXT2}[/col2]

      HTML (3.1.10):

      <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:

      [col2][b]toto[/b]|toto[/col2]

      Result (in 3.2.7):
      http://img110.xooimage.com/files/d/1/9/capture-d-cran-du...03-40-52-5629518.png

      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:

      <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...
      http://img110.xooimage.com/files/d/1/9/capture-d-cran-du...03-40-52-5629518.png

       

      For this example, I use the BBcode

      [b][/b]

      but it's the same with all others.

       

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ad0726 ad0726 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: