Nested Color Parser

after.png
1.1.0 phpBB 3.1.5
Released:
Mon Sep 07, 2015 8:56 pm
File size:
8.97 KiB
Validated for:
phpBB 3.1.5
MD5 checksum:
3de0ca270076c44ec6944c94f7adb599
Install directory:
ext/cosmo/colorparser
Description
phpBB 3.1 does not allow nested color tags.

For example [color=#ff0000]Hello [color=#00ff00]there[/color]![/color] does not work. The first opener and the first closing bbcode are taken coloring everything from Hello to there in red leaving the second [color=#00ff00] and the most right [/color] unparsed.

This extension fixes this behaviour and parses everthing correctly. The main screenshot shows how the extension parses

[color=#3366ff]This [color=#ff00ff]is[/color] a co[color=#999999]l[color=#ff0000]o[/color]r[/color]test[/color]

and the second one how phpBB does the same job without it.
before.png
  • Revisions
    Version
    phpBB Version(s)