Author Topic: Convert color styles into color classes  (Read 2935 times)

Offline asmith

  • Jr. Member
  • **
  • Posts: 334
  • Gender: Male
Convert color styles into color classes
« on: March 08, 2012, 06:02:07 AM »

In SMF editor, when you set a color for a text, SMF makes it into an inline style:
[ color=red]Some text[/color] becomes <span style="color: red;">Some text</span>

When a SMF forum uses multiple themes, some of them may be dark, some of them may be bright. So a color in one theme can be unreadable because of these inline styles.

I'm suggesting that SMF keeps a list of these colors, and if the selected color matches, it converts them to a color class appropriate to theme css. If doesn't match, then inline style it is.

Online Kindred

  • The Mean One
  • Project Manager
  • SMF Master
  • *
  • Posts: 42,800
  • Gender: Male
    • wagner999 on Facebook
    • Kindred-999 on GitHub
    • on LinkedIn
    • @Kindred_999 on Twitter
Re: Convert color styles into color classes
« Reply #1 on: March 08, 2012, 10:37:45 AM »
hmmm.... it's an idea, but that seems like a waste of time - and somewhat deceptive, to me.

If I select "red" text, in my post, then I want RED text...
Users learn after a post or two which colors show up on their themes....

(unless I am misunderstanding you?)

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline asmith

  • Jr. Member
  • **
  • Posts: 334
  • Gender: Male
Re: Convert color styles into color classes
« Reply #2 on: March 08, 2012, 11:52:06 AM »
No you got me right. I'm using my forum over 3 years now and with multiple designs, this thing have made some posts readability so hard. In a dark theme they choose yellow color for some titles and it becomes so annoying for bright theme users. My users do not need a specific color but just making some line more important by coloring.
Statistically, how many of SMF users need "red" for RED? and how many need "red" for making attention to some text?

But considering what you said, it can still be done. I'm not suggesting to completely change it. Just change that select box items theme-related. Leave color tag as it is, but if someone uses the select box in editor, it puts [themecolor=red].
« Last Edit: March 08, 2012, 12:04:02 PM by asmith »

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,161
  • Gender: Male
Re: Convert color styles into color classes
« Reply #3 on: April 26, 2012, 06:13:03 AM »
May I suggest a mod?
Would you like to have this topic moved to mod requests?

Take a peek at what I'm doing! ;D

Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non รจ una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 23,011
  • Master of BBC Abuse
Re: Convert color styles into color classes
« Reply #4 on: April 29, 2012, 08:13:08 PM »
I had the same problem with multiple themes, asmith. I fixed it very easily. Disable the colour tags in admin = problem solved. If people want to emphasise any text they can do it by using bold, underline or italic. These are the traditional methods of applying emphasis to text and work very well.
Mods - Manky Old Themes - Apocalypse theme (WIP)

(11:43:45 AM) Antechinus: of course, it's also possible that I'm an arrogant know it all bastard
(11:43:59 AM) Eliana Tamerin: you are :P
(11:44:21 AM) Antechinus: hmmph