MyBB Community Forums

Full Version: XML for multi-coloured theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the correct format to add colors in the properties section of a theme XML ?

The only way I can get it to work is if I set the key pairs manually, then export the theme, then import the theme again, but that does not preserve the order of stylesheets.

My key pairs are

red=Red
green=Green

when you export the theme it looks like this:

<colors><![CDATA[a:18:{s:3:"red";s:4:"Red
";s:5:"green";s:6:"Green
";}]]></colors>

The default theme uses this format:

<colors>
<scheme><![CDATA[black=Black]]></scheme>
<scheme><![CDATA[calm=Calm]]></scheme>
<colors>