Convert color styles into color classes

Started by asmith, March 08, 2012, 06:02:07 AM

Previous topic - Next topic

asmith

Hello,

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.

Kindred

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?)

Слaва
Украинi

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

asmith

#2
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].

emanuele

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.

Antechinus

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.

Advertisement: