BBCode Colorbox

Started by Gluz, June 19, 2015, 10:53:58 AM

Previous topic - Next topic

Gluz

Link to Mod

BBCode Color Box

Information
This MOD will add a custom BBCode called [colorbox]color code[/colorbox] to display a little 16px by 16px square of the color inside the tags inline with the text.

Usage
Accepts 3 different color codes syntax:
- #RGB {Hexadecimal HTML 3 character}
- #RRGGBB {Hexadecimal HTML 6 character}
- rgb(x,x,x) {rgb function with 3 decimal 0-255 parameters}

The color box have a tooltip with the color code introduced to easy read.



(c) 2015
@author   Gluz
@license   BSD http://opensource.org/licenses/BSD-3-Clause
@mod       BBCode Color Box


Changelog:

Version 1.0.2
-Install with Hooks instead core files modifications.

Version 1.0.1
-Added tooltip with the color code.

Version 1.0.0
-Initial Release.

Steve


Question ... will it accept color names or do you plan on that in the future?

e.g.

[colorbox]red[/colorbox]
DO NOT pm me for support!

Gluz

Maybe I can add that, the 16 common colors that are used everywhere, but I need to test some things, as I'm just learning to use RegExp in PHP.

Steve

No worries. Thanks for considering it. It's still a great mod as is. :)
DO NOT pm me for support!

Advertisement: