Forums: Color Tags

  • Gustavo6046
    26th Dec 2015 Member 1 Permalink

    Color tags are just another possible kind of formatting for the posts in TPT Forums.

    It consists in converting automatically hexadecimal color notation-applicable texts into links or small images containing a link to a Color Hexa website of corresponding color.

    E.g.:

    "#755658" in the post editor becomes Color #755658.

    Isn't it smart?

    Edited once by Gustavo6046. Last: 26th Dec 2015
  • Omega29
    27th Dec 2015 Member 0 Permalink

    It is smart <3

  • Mrprocom
    27th Dec 2015 Moderator 0 Permalink
    @Gustavo6046 (View Post)
    It can be magically done actually. Here:

    Forum posts support HTML tags, but the usage of them is limited, so you can't do everything with them like embedding another website.
    This is how I did it:
    • For the link, I used the <a href="URL"></a> tag.
    • For the colour, I used the <font color="#HEX"></font> tag
    • To make the circle huge, I used 4 <big></big> tags.
    • For the circle, I used the "BLACK CIRCLE" unicode character which is U+25CF.
    • Because it's a special character, instead of copying and pasting the character straight away, I used one of its HTML entities which are &#9679; (A decimal HTML entity) and &#x25cf; (A hexadecimal HTML entity).


    If you don't know HTML, then you probably won't be able to understand a thing from what I said.
    Anyway, the code I used to make it possible is:
    <a href="http://www.colorhexa.com/755658"><font color="#755658"><big><big><big><big>&#9679;</big></big></big></big></font></a>
    Edited 7 times by Mrprocom. Last: 27th Dec 2015
  • Gustavo6046
    31st Dec 2015 Member 0 Permalink

    I am good at HTML and I've never imagined that it would be possible. All that remains now is to automatically replace the #HEX notations when the Post button is clicked. Awesome :3