Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Xar0ne on September 20, 2015, 05:00:02 PM

Title: How to disable one color?
Post by: Xar0ne on September 20, 2015, 05:00:02 PM
Hello!
There's some colors to choose on SMF, but is it possible to disable one of them?
I would like to do it, but I have no idea how.
Title: Re: How to disable one color?
Post by: br360 on September 20, 2015, 05:02:47 PM
Disable a color or just change it to something else?  Depending on what you are trying to edit, changing the color can change one thing or many different things. What exactly are you interested in changing?
Title: Re: How to disable one color?
Post by: Xar0ne on September 20, 2015, 05:08:13 PM
We've got something like that:

(http://i.imgur.com/2iIuvlu.png)

Right? And it would be great, to remove one of these options. E.g. "White"
Title: Re: How to disable one color?
Post by: br360 on September 20, 2015, 05:21:22 PM
I've never actually done it personally, but here is a link that explains how to add colors- http://www.simplemachines.org/community/index.php?topic=501640.msg3524574#msg3524574

If you want to reverse that go into GenericControls.template.php:

Find and remove-

\'white\': ', JavaScriptEscape($txt['white']), ',

I just tested it and it was removed, but back up that file before you make the change, just in case. ;)
Title: Re: How to disable one color?
Post by: Xar0ne on September 20, 2015, 05:57:41 PM
Great! Looks like it works. Thanks, br360! :)
Title: Re: How to disable one color?
Post by: br360 on September 20, 2015, 06:01:10 PM
Glad to hear. You're welcome.