Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16135

bbcode replacement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 3.2.2
    • BBCode Engine
    • None

      I have defined a bbcode [newwindow]

      here is the usage
      [code][newwindow url=\{URL}]{SIMPLETEXT}[/newwindow][/code]
      here is the replacement
      [code]<a href="{URL}" target="_blank" class="postlink">{SIMPLETEXT}</a> [/code]
      this code works in most all situations but is not replaced in others.

      [b]here is example of where the bbcode is not replaced[/b]

      [code]The [newwindow url=https://www.scouting.org/programs/boy-s ... rces/nylt/] National Youth Leadership Training (NYLT) [/newwindow ] is a week long summer camp held at the S Bar F Scout Ranch near Fredricktown, MO.[/code]

      [b]here is the code[/b]

      [code]The [newwindow url=https://www.scouting.org/programs/boy-scouts/resources/nylt/] National Youth Leadership Training (NYLT) [/newwindow ] is a week long summer camp held at the S Bar F Scout Ranch near Fredricktown, MO.
      [/code]
      NOTE: if I edit [newwindow and replace with [url the the replacement is correct.
      [size=150][b]It is defiantly related to the length of the URL!!!!!![/b][/size]

      [b]here is code where replacement is correct[/b]

      [code][newwindow url=https://stlbsa.org/s-bar-f-scout-ranch/]S-Bar-F Scout Ranch[/newwindow][/code]

      The only difference is the actual URL's.

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

              Created:
              Updated:
              Resolved: