My wordpress theme accepts skin files. These skin files all install into my main theme folder via a zip uploader that's part of my theme.
Each skin has a set of custom color codes (4 in all) that are stored in the wordpress options table like so...
Assume the skin name is "halloween"...These are the values in my options.php for one of my skin values...
halloween_color1 = 000000
halloween_color2 = ff0000
halloween_color3 = 777777
halloween_color4 = 333333
So I just need a means to store these values inside of each new skin's folder (the one that I send to people who use my theme) so that when they install the skin (via a simple zip extractor upload) I can place code into my zip extractor to write the skin's custom color values to the database.
I'm assuming a simple, colors.txt or colors.xml file will suffice.
How should I store the data in the text file in order to easily parse it and write it to the database? Name/value pairs or XML?
<skin>
<color name="halloween_color1" value="000000" />
<color name="halloween_color2" value="000000" />
<color name="halloween_color3" value="000000" />
<color name="halloween_color1" value="000000" />
</skin>