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

Custom BBCodes Local URL Token not working...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 3.0.x
    • Posting
    • None
    • PHP Environment:
      Database:

      I added the following bbcode:

      [filecode=

      {LOCAL_URL1}]{TEXT1}[/filecode]

      Replaced by:

      <a href="code.php?file={LOCAL_URL1}

      " target="_new">

      {TEXT1}

      </a>

      Where code.php is a file in the root folder, and 'file' is the file that you want the page to read. The helpline text is:

      [filecode=

      {RELATIVE FILE NAME}

      ]

      {DESCRIPTION}

      [/filecode]

      And it is set to display on posting.

      When it comes to posting, the button for the BBCode is displayed, and works perfectly, include the helpline. However, on either preview or submit, the BBCode does not get parsed, and just shows

      [filecode=code.php]code.php[/filecode]

      Instead of parsing it.

      This is using the CVS Snapshot from yesterday, on PHP 5.1.6, MySQL with MySQLi Extensions on MySQL 5.0.24a installed using XAMMP for Windows.

      Other Custom BBCodes do work.

      However, the above does work if I use

      {TEXT}

      instead of

      {LOCAL_URL}

      . And I don't seem to be able to get any local_url tokens working. code.php is a real file in the same directory as viewtopic.php (so I assume that counts as a relative url to the topic?!)

            DavidMJ DavidMJ
            andrewbelcher andrewbelcher [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: