1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest [COLOR] BbCode Changes

Discussion in 'Closed Suggestions' started by Jaxel, Aug 31, 2013.

  1. Jaxel

    Jaxel Well-Known Member

    Okay, so we all know how the COLOR bbcode works. Generally, you want to allow members to use the color bbcode, but it is often prone to abuse. It also creates an issue where some people post on a "light" skin, and others post on a "dark" skin... Here is an example:

    1.jpg

    Now, what I've done on my forum is change XenForo_BbCode_Formatter_Base... from:
    Code:
    'color' => array(
        'hasOption' => true,
        'optionRegex' => '/^(rgb\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*\)|#[a-f0-9]{6}|#[a-f0-9]{3}|[a-z]+)$/i',
        'replace' => array('<span style="color: %s">', '</span>')
    ),
    to:
    Code:
    'color' => array(
        'hasOption' => true,
        'optionRegex' => '/^(rgb\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*\)|#[a-f0-9]{6}|#[a-f0-9]{3}|[a-z]+)$/i',
        'replace' => array('<span style="text-shadow: 0 0 10px %s">', '</span>')
    ),
    2.jpg

    Now people can still personalize their posts with colors, but it still works in multiple skins. I'm suggesting there be an option in XenForo to replace the css of the color bbcode... "color", "text-shadow" or even "background-color".
     
    Nobita.Kun likes this.
  2. DRE

    DRE Well-Known Member

    That effects regular posts too and not just the chatbox. Would be better if it only affected the chatbox.
     
  3. Jaxel

    Jaxel Well-Known Member

    I know... the recommendation is for the entire forum.

    The issues I stated aren't unique to chatboxes; I am just using the chatbox as an example.
     
  4. silentghost

    silentghost Member

    how did you do this?
     

Share This Page