Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: _complex in Januar 05, 2005, 12:53:10 VORMITTAG

Titel: Adding More colors to post reply...
Beitrag von: _complex in Januar 05, 2005, 12:53:10 VORMITTAG
About: This little trick will give you more colors to choose from then just ones that are givin.

   Remember to make an backup of the file.
            
Open: Themes/ YOUR THEME OF EDIT/Post.template.php

And Find:


<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';




Replace With:



      <option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Snow" style="color:snow;">Snow</option>
  <option value="Slateblue"
style="color:slateblue;">Slateblue</option>
  <option value="Slategray"
style="color:slategray;">Slategray</option>
  <option value="Springgreen"
style="color:springgreen;">Springgreen</option>
  <option value="Steelblue"
style="color:steelblue;">Steelblue</option>
  <option value="Tan" style="color:tan;">Tan</option>
  <option value="Teal" style="color:teal;">Teal</option>
  <option value="Thistle"
style="color:thistle;">Thistle</option>
  <option value="Tomato"
style="color:tomato;">Tomato</option>
  <option value="Turquoise"
style="color:turquoise;">Turquoise</option>
  <option value="Violet"
style="color:violet;">Violet</option>
  <option value="Wheat" style="color:wheat;">Wheat</option>
  <option value="White" style="color:white;">White</option>
  <option value="Whitesmoke"
style="color:whitesmoke;">Whitesmoke</option>
  <option value="Yellow"
style="color:yellow;">Yellow</option>
  <option value="Yellowgreen"
style="color:yellowgreen;">Yellowgreen</option>
  <option value="Aliceblue"
style="color:aliceblue;">Aliceblue</option>
  <option value="Antiquewhite"
style="color:antiquewhite;">Antiquewhite</option>
  <option value="Aqua" style="color:aqua;">Aqua</option>
  <option value="Aquamarine"
style="color:aquamarine;">Aquamarine</option>
  <option value="Azure" style="color:azure;">Azure</option>
  <option value="Beige" style="color:beige;">Beige</option>
  <option value="Darkblue"
style="color:darkblue;">Darkblue</option>
  <option value="Darkcyan"
style="color:darkcyan;">Darkcyan</option>
  <option value="Darkgoldenrod"
style="color:darkgoldenrod;">Darkgoldenrod</option>
  <option value="Darkgray"
style="color:darkgray;">Darkgray</option>
  <option value="Darkgreen"
style="color:darkgreen;">Darkgreen</option>
  <option value="Darkkhaki"
style="color:darkkhaki;">Darkkhaki</option>
  <option value="Darkmagenta"
style="color:darkmagenta;">Darkmagenta</option>
  <option value="Darkolivegreen"
style="color:darkolivegreen;">Darkolivegreen</option>
  <option value="Darkorange"
style="color:darkorange;">Darkorange</option>
  <option value="Darkorchid"
style="color:darkorchid;">Darkorchid</option>
  <option value="Darkred"
style="color:darkred;">Darkred</option>
  <option value="Darksalmon"
style="color:darksalmon;">Darksalmon</option>
  <option value="Darkseagreen"
style="color:Darkseagreen;">Darkseagreen</option>
  <option value="Darkslateblue"
style="color:darkslateblue;">Darkslateblue</option>
  <option value="Darkslategray"
style="color:darkslategray;">Darkslategray</option>
  <option value="Darkturquoise"
style="color:darkturquoise;">Darkturquoise</option>
  <option value="Darkviolet"
style="color:darkviolet;">Darkviolet</option>
  <option value="Deeppink"
style="color:deeppink;">Deeppink</option>
  <option value="Bisque"
style="color:bisque;">Bisque</option>
  <option value="Black" style="color:black;">Black</option>
  <option value="Blanchealmond"
style="color:blanchealmond;">Blanchealmond</option>
  <option value="Blue" style="color:blue;">Blue</option>
  <option value="Blueviolet"
style="color:blueviolet;">Blueviolet</option>
  <option value="Brown" style="color:brown;">Brown</option>
  <option value="Burlywood"
style="color:burlywood;">Burlywood</option>
  <option value="Cadetblue"
style="color:cadetblue;">Cadetblue</option>
  <option value="Chartreuse"
style="color:chartreuse;">Chartreuse</option>
  <option value="Chocolate"
style="color:chocolate;">Chocolate</option>
  <option value="Coral" style="color:coral;">Coral</option>
  <option value="Cornflowerblue"
style="color:cornflowerblue;">Cornflowerblue</option>
  <option value="Cornsilk"
style="color:cornsilk;">Cornsilk</option>
  <option value="Crimson"
style="color:crimson;">Crimson</option>
  <option value="Cyan" style="color:cyan;">Cyan</option>
  <option value="Deepskyblue"
style="color:deepskyblue;">Deepskyblue</option>
  <option value="Dimgray"
style="color:dimgray;">Dimgray</option>
  <option value="Dodgerblue"
style="color:dodgerblue;">Dodgerblue</option>
  <option value="Firebrick"
style="color:firebrick;">Firebrick</option>
  <option value="Floralwhite"
style="color:floralwhite;">Floralwhite</option>
  <option value="Forestgreen"
style="color:forestgreen;">Forestgreen</option>
  <option value="Fuchia"
style="color:fuchia;">Fuchia</option>
  <option value="Gainsboro"
style="color:gainsboro;">Gainsboro</option>
  <option value="Ghostwhite"
style="color:ghostwhite;">Ghostwhite</option>
  <option value="Gold" style="color:gold;">Gold</option>
  <option value="Goldenrod"
style="color:goldenrod;">Goldenrod</option>
  <option value="Gray" style="color:gray;">Gray</option>
  <option value="Green" style="color:green;">Green</option>
  <option value="Greenyellow"
style="color:greenyellow;">Greenyellow</option>
  <option value="Honeydew"
style="color:honeydew;">Honeydew</option>
  <option value="Lightcyan"
style="color:lightcyan;">Lightcyan</option>
  <option value="Lightgoldenrodyellow"
style="color:lightgoldenrodyellow;">Lightgoldenrodyellow</option><
br />
  <option value="Lightgreen"
style="color:lightgreen;">Lightgreen</option>
  <option value="Lightgrey"
style="color:lightgrey;">Lightgrey</option>
  <option value="Lightpink"
style="color:lightpink;">Lightpink</option>
  <option value="Lightsalmon"
style="color:lightsalmon;">Lightsalmon</option>
  <option value="Lightseagreen"
style="color:lightseagreen;">Lightseagreen</option>
  <option value="Lightskyblue"
style="color:lightskyblue;">Lightskyblue</option>
  <option value="Lightslategray"
style="color:lightslategray;">Lightslategray</option>
  <option value="Hotpink"
style="color:hotpink;">Hotpink</option>
  <option value="Indianred"
style="color:indianred;">Indianred</option>
  <option value="Indigo"
style="color:indigo;">Indigo</option>
  <option value="Ivory" style="color:ivory;">Ivory</option>
  <option value="Khaki" style="color:khaki;">Khaki</option>
  <option value="Lavender"
style="color:lavender;">Lavender</option>
  <option value="Lavenderblush"
style="color:lavenderblush;">Lavenderblush</option>
  <option value="Lawngreen"
style="color:lawngreen;">Lawngreen</option>
  <option value="Lemonchiffon"
style="color:lemonchiffon;">Lemonchiffon</option>
  <option value="Lightblue"
style="color:lightblue;">Lightblue</option>
  <option value="Lightcoral"
style="color:lightcoral;">Lightcoral</option>
  <option value="Lightsteelblue"
style="color:lightsteelblue;">Lightsteelblue</option>
  <option value="Lightyellow"
style="color:lightyellow;">Lightyellow</option>
  <option value="Lime" style="color:lime;">Lime</option>
  <option value="Limegreen"
style="color:limegreen;">Limegreen</option>
  <option value="Linen" style="color:linen;">Linen</option>
  <option value="Magenta"
style="color:magenta;">Magenta</option>
  <option value="Maroon"
style="color:maroon;">Maroon</option>
  <option value="Mediumaquamarine"
style="color:mediumaquamarine;">Mediumaquamarine</option>
  <option value="Mediumblue"
style="color:mediumblue;">Mediumblue</option>
  <option value="Mediumorchid"
style="color:mediumorchid;">Mediumorchid</option>
  <option value="Mediumpurple"
style="color:mediumpurple;">Mediumpurple</option>
  <option value="Mediumseagreen"
style="color:mediumseagreen;">Mediumseagreen</option>
  <option value="Mediumslateblue"
style="color:mediumslateblue;">Mediumslateblue</option>
  <option value="Mediumspringgreen"
style="color:mediumspringgreen;">Mediumspringgreen</option>
  <option value="Mediumturquoise"
style="color:mediumturquoise;">Mediumturquoise</option>
  <option value="Mediumvioletred"
style="color:mediumvioletred;">Mediumvioletred</option>
  <option value="Midnightblue"
style="color:midnightblue;">Midnightblue</option>
  <option value="Mintcream"
style="color:mintcream;">Mintcream</option>
  <option value="Mistyrose"
style="color:mistyrose;">Mistyrose</option>
  <option value="Moccasin"
style="color:moccasin;">Moccasin</option>
  <option value="Navajowhite"
style="color:navajowhite;">Navajowhite</option>
  <option value="Navy" style="color:navy;">Navy</option>
  <option value="Oldlace"
style="color:oldlace;">Oldlace</option>
  <option value="Olive" style="color:olive;">Olive</option>
  <option value="Olivedrab"
style="color:olivedrab;">Olivedrab</option>
  <option value="Orange"
style="color:orange;">Orange</option>
  <option value="Orangered"
style="color:orangered;">Orangered</option>
  <option value="Orchid"
style="color:orchid;">Orchid</option>
  <option value="Palegoldenrod"
style="color:palegoldenrod;">Palegoldenrod</option>
  <option value="Palegreen"
style="color:palegreen;">Palegreen</option>
  <option value="Paleturquoise"
style="color:paleturquoise;">Paleturquoise</option>
  <option value="Palevioletred"
style="color:palevioletred;">Palevioletred</option>
  <option value="Papayawhip"
style="color:papayawhip;">Papayawhip</option>
  <option value="Peachpuff"
style="color:peachpuff;">Peachpuff</option>
  <option value="Peru" style="color:peru;">Peru</option>
  <option value="Pink" style="color:pink;">Pink</option>
  <option value="Plum" style="color:plum;">Plum</option>
  <option value="Powderblue"
style="color:powderblue;">Powderblue</option>
  <option value="Purple"
style="color:purple;">Purple</option>
  <option value="Red" style="color:red;">Red</option>
  <option value="Rosybrown"
style="color:rosybrown;">Rosybrown</option>
  <option value="Royalblue"
style="color:royalblue;">Royalblue</option>
  <option value="Saddlebrown"
style="color:saddlebrown;">Saddlebrown</option>
  <option value="Salmon"
style="color:salmon;">Salmon</option>
  <option value="Sandybrown"
style="color:sandybrown;">Sandybrown</option>
  <option value="Seagreen"
style="color:seagreen;">Seagreen</option>
  <option value="Seashell"
style="color:seashell;">Seashell</option>
  <option value="Sienna"
style="color:sienna;">Sienna</option>
  <option value="Silver"
style="color:silver;">Silver</option>
  <option value="Skyblue"
style="color:skyblue;">Skyblue</option>
</select>';

            
            Remember to make an backup of the file.
Titel: Re: Adding More colors to post reply...
Beitrag von: Anguz in Januar 05, 2005, 05:03:06 VORMITTAG
How about doing it like this?


<option value="" selected="selected">', $txt['change_color'], '</option>';

// Here go all the color options.
foreach ($txt['colors'] as $k => $v)
echo '
<option value="', $k, '" style="color: ', $k, ';">', $v, '</option>';

echo '
</select>';


In Modifications.english.php add


$txt['colors'] = array
(
'aliceblue' => 'Alice blue',
'antiquewhite' => 'Antique white',
'aqua' => 'Aqua',
'aquamarine' => 'Aquamarine',
'azure' => 'Azure',
'beige' => 'Beige',
'bisque' => 'Bisque',
'black' => 'Black',
'blanchealmond' => 'Blanche almond',
'blue' => 'Blue',
'blueviolet' => 'Blue violet',
'brown' => 'Brown',
'burlywood' => 'Burly wood',
'cadetblue' => 'Cadet blue',
'chartreuse' => 'Chart reuse',
'chocolate' => 'Chocolate',
'coral' => 'Coral',
'cornflowerblue' => 'Cornflower blue',
'cornsilk' => 'Corn silk',
'crimson' => 'Crimson',
'cyan' => 'Cyan',
'darkblue' => 'Dark blue',
'darkcyan' => 'Dark cyan',
'darkgoldenrod' => 'Dark golden rod',
'darkgray' => 'Dark gray',
'darkgreen' => 'Dark green',
'darkkhaki' => 'Dark khaki',
'darkmagenta' => 'Dark magenta',
'darkolivegreen' => 'Dark olive green',
'darkorange' => 'Dark orange',
'darkorchid' => 'Dark orchid',
'darkred' => 'Dark red',
'darksalmon' => 'Dark salmon',
'darkseagreen' => 'Dark sea green',
'darkslateblue' => 'Dark slate blue',
'darkslategray' => 'Dark slate gray',
'darkturquoise' => 'Dark turquoise',
'darkviolet' => 'Dark violet',
'deeppink' => 'Deep pink',
'deepskyblue' => 'Deep sky blue',
'dimgray' => 'Dim gray',
'dodgerblue' => 'Dodger blue',
'firebrick' => 'Fire brick',
'floralwhite' => 'Floral white',
'forestgreen' => 'Forest green',
'fuchia' => 'Fuchia',
'gainsboro' => 'Gainsboro',
'ghostwhite' => 'Ghost white',
'gold' => 'Gold',
'goldenrod' => 'Golden rod',
'gray' => 'Gray',
'green' => 'Green',
'greenyellow' => 'Green yellow',
'honeydew' => 'Honey dew',
'hotpink' => 'Hot pink',
'indianred' => 'Indian red',
'indigo' => 'Indigo',
'ivory' => 'Ivory',
'khaki' => 'Khaki',
'lavender' => 'Lavender',
'lavenderblush' => 'Lavender blush',
'lawngreen' => 'Lawn green',
'lemonchiffon' => 'Lemon chiffon',
'light blue' => 'Light blue',
'lightcoral' => 'Light coral',
'lightcyan' => 'Light cyan',
'lightgoldenrodyellow' => 'Light golden rod yellow',
'lightgreen' => 'Light green',
'lightgrey' => 'Light grey',
'lightpink' => 'Light pink',
'lightsalmon' => 'Light salmon',
'lightsea green' => 'Light sea green',
'lightsky blue' => 'Light sky blue',
'lightslate gray' => 'Light slate gray',
'lightsteel blue' => 'Light steel blue',
'lightyellow' => 'Light yellow',
'lime' => 'Lime',
'limegreen' => 'Lime green',
'linen' => 'Linen',
'magenta' => 'Magenta',
'maroon' => 'Maroon',
'mediumaquamarine' => 'Medium aquamarine',
'mediumblue' => 'Medium blue',
'mediumorchid' => 'Medium orchid',
'mediumpurple' => 'Medium purple',
'mediumseagreen' => 'Medium sea green',
'mediumslateblue' => 'Medium slate blue',
'mediumspringgreen' => 'Medium spring green',
'mediumturquoise' => 'Medium turquoise',
'mediumvioletred' => 'Medium violet red',
'midnightblue' => 'Midnight blue',
'mintcream' => 'Mint cream',
'mistyrose' => 'Misty rose',
'moccasin' => 'Moccasin',
'navajowhite' => 'Navajo white',
'navy' => 'Navy',
'oldlace' => 'Old lace',
'olive' => 'Olive',
'olivedrab' => 'Olive drab',
'orange' => 'Orange',
'orangered' => 'Orange red',
'orchid' => 'Orchid',
'palegoldenrod' => 'Pale golden rod',
'palegreen' => 'Pale green',
'paleturquoise' => 'Pale turquoise',
'palevioletred' => 'Pale violetred',
'papayawhip' => 'Papaya whip',
'peachpuff' => 'Peach puff',
'peru' => 'Peru',
'pink' => 'Pink',
'plum' => 'Plum',
'powder blue' => 'Powder blue',
'purple' => 'Purple',
'red' => 'Red',
'rosybrown' => 'Rosy brown',
'royalblue' => 'Royal blue',
'saddlebrown' => 'Saddle brown',
'salmon' => 'Salmon',
'sandybrown' => 'Sandy brown',
'seagreen' => 'Sea green',
'seashell' => 'Sea shell',
'sienna' => 'Sienna',
'silver' => 'Silver',
'skyblue' => 'Sky blue',
'slateblue' => 'Slate blue',
'slategray' => 'Slate gray',
'snow' => 'Snow',
'springgreen' => 'Spring green',
'steelblue' => 'Steel blue',
'tan' => 'Tan',
'teal' => 'Teal',
'thistle' => 'Thistle',
'tomato' => 'Tomato',
'turquoise' => 'Turquoise',
'violet' => 'Violet',
'wheat' => 'Wheat',
'white' => 'White',
'whitesmoke' => 'White smoke',
'yellow' => 'Yellow',
'yellowgreen' => 'Yellow green',
);


Haven't tested, but I think it should work like yours.
Titel: Re: Adding More colors to post reply...
Beitrag von: Webby in Januar 05, 2005, 08:13:24 VORMITTAG
How many colors is the limit.... :P 

Wow, this is really too much ;)
Titel: Re: Adding More colors to post reply...
Beitrag von: _complex in Januar 05, 2005, 10:57:09 VORMITTAG
thanks Anguz ill look into that.

Zitat von: Webby in Januar 05, 2005, 08:13:24 VORMITTAG
How many colors is the limit.... :P

Wow, this is really too much ;)

lol, i don't know it maybe over ¿100.. :D
Titel: Re: Adding More colors to post reply...
Beitrag von: Anguz in Januar 05, 2005, 12:42:47 NACHMITTAGS
Zitat von: nviceversa in Januar 05, 2005, 10:57:09 VORMITTAG
thanks Anguz ill look into that.

No problem.
Titel: Re: Adding More colors to post reply...
Beitrag von: Hellen in März 13, 2005, 01:48:21 VORMITTAG
what the meaning of "$txt['change_color'] " ???
Titel: Re: Adding More colors to post reply...
Beitrag von: Hellen in März 13, 2005, 02:09:27 VORMITTAG
Does all the code in the "Modifications.english.php " just like this?  ???

<?php
// Version: 1.0 RC1; Modifications

?>


And I just need add the codes after this ?

And why there is "<br />" just after "color:lightgoldenrodyellow" ??? ??? ??? on the first post?

style="color:lightgoldenrodyellow;">Lightgoldenrodyellow</option><
br />




Zitat von: Anguz in Januar 05, 2005, 05:03:06 VORMITTAG
How about doing it like this?


<option value="" selected="selected">', $txt['change_color'], '</option>';

// Here go all the color options.
foreach ($txt['colors'] as $k => $v)
echo '
<option value="', $k, '" style="color: ', $k, ';">', $v, '</option>';

echo '
</select>';


In Modifications.english.php add


$txt['colors'] = array
(
'aliceblue' => 'Alice blue',
'antiquewhite' => 'Antique white',
'aqua' => 'Aqua',
'aquamarine' => 'Aquamarine',
'azure' => 'Azure',
'beige' => 'Beige',
'bisque' => 'Bisque',
'black' => 'Black',
'blanchealmond' => 'Blanche almond',
'blue' => 'Blue',
'blueviolet' => 'Blue violet',
'brown' => 'Brown',
'burlywood' => 'Burly wood',
'cadetblue' => 'Cadet blue',
'chartreuse' => 'Chart reuse',
'chocolate' => 'Chocolate',
'coral' => 'Coral',
'cornflowerblue' => 'Cornflower blue',
'cornsilk' => 'Corn silk',
'crimson' => 'Crimson',
'cyan' => 'Cyan',
'darkblue' => 'Dark blue',
'darkcyan' => 'Dark cyan',
'darkgoldenrod' => 'Dark golden rod',
'darkgray' => 'Dark gray',
'darkgreen' => 'Dark green',
'darkkhaki' => 'Dark khaki',
'darkmagenta' => 'Dark magenta',
'darkolivegreen' => 'Dark olive green',
'darkorange' => 'Dark orange',
'darkorchid' => 'Dark orchid',
'darkred' => 'Dark red',
'darksalmon' => 'Dark salmon',
'darkseagreen' => 'Dark sea green',
'darkslateblue' => 'Dark slate blue',
'darkslategray' => 'Dark slate gray',
'darkturquoise' => 'Dark turquoise',
'darkviolet' => 'Dark violet',
'deeppink' => 'Deep pink',
'deepskyblue' => 'Deep sky blue',
'dimgray' => 'Dim gray',
'dodgerblue' => 'Dodger blue',
'firebrick' => 'Fire brick',
'floralwhite' => 'Floral white',
'forestgreen' => 'Forest green',
'fuchia' => 'Fuchia',
'gainsboro' => 'Gainsboro',
'ghostwhite' => 'Ghost white',
'gold' => 'Gold',
'goldenrod' => 'Golden rod',
'gray' => 'Gray',
'green' => 'Green',
'greenyellow' => 'Green yellow',
'honeydew' => 'Honey dew',
'hotpink' => 'Hot pink',
'indianred' => 'Indian red',
'indigo' => 'Indigo',
'ivory' => 'Ivory',
'khaki' => 'Khaki',
'lavender' => 'Lavender',
'lavenderblush' => 'Lavender blush',
'lawngreen' => 'Lawn green',
'lemonchiffon' => 'Lemon chiffon',
'light blue' => 'Light blue',
'lightcoral' => 'Light coral',
'lightcyan' => 'Light cyan',
'lightgoldenrodyellow' => 'Light golden rod yellow',
'lightgreen' => 'Light green',
'lightgrey' => 'Light grey',
'lightpink' => 'Light pink',
'lightsalmon' => 'Light salmon',
'lightsea green' => 'Light sea green',
'lightsky blue' => 'Light sky blue',
'lightslate gray' => 'Light slate gray',
'lightsteel blue' => 'Light steel blue',
'lightyellow' => 'Light yellow',
'lime' => 'Lime',
'limegreen' => 'Lime green',
'linen' => 'Linen',
'magenta' => 'Magenta',
'maroon' => 'Maroon',
'mediumaquamarine' => 'Medium aquamarine',
'mediumblue' => 'Medium blue',
'mediumorchid' => 'Medium orchid',
'mediumpurple' => 'Medium purple',
'mediumseagreen' => 'Medium sea green',
'mediumslateblue' => 'Medium slate blue',
'mediumspringgreen' => 'Medium spring green',
'mediumturquoise' => 'Medium turquoise',
'mediumvioletred' => 'Medium violet red',
'midnightblue' => 'Midnight blue',
'mintcream' => 'Mint cream',
'mistyrose' => 'Misty rose',
'moccasin' => 'Moccasin',
'navajowhite' => 'Navajo white',
'navy' => 'Navy',
'oldlace' => 'Old lace',
'olive' => 'Olive',
'olivedrab' => 'Olive drab',
'orange' => 'Orange',
'orangered' => 'Orange red',
'orchid' => 'Orchid',
'palegoldenrod' => 'Pale golden rod',
'palegreen' => 'Pale green',
'paleturquoise' => 'Pale turquoise',
'palevioletred' => 'Pale violetred',
'papayawhip' => 'Papaya whip',
'peachpuff' => 'Peach puff',
'peru' => 'Peru',
'pink' => 'Pink',
'plum' => 'Plum',
'powder blue' => 'Powder blue',
'purple' => 'Purple',
'red' => 'Red',
'rosybrown' => 'Rosy brown',
'royalblue' => 'Royal blue',
'saddlebrown' => 'Saddle brown',
'salmon' => 'Salmon',
'sandybrown' => 'Sandy brown',
'seagreen' => 'Sea green',
'seashell' => 'Sea shell',
'sienna' => 'Sienna',
'silver' => 'Silver',
'skyblue' => 'Sky blue',
'slateblue' => 'Slate blue',
'slategray' => 'Slate gray',
'snow' => 'Snow',
'springgreen' => 'Spring green',
'steelblue' => 'Steel blue',
'tan' => 'Tan',
'teal' => 'Teal',
'thistle' => 'Thistle',
'tomato' => 'Tomato',
'turquoise' => 'Turquoise',
'violet' => 'Violet',
'wheat' => 'Wheat',
'white' => 'White',
'whitesmoke' => 'White smoke',
'yellow' => 'Yellow',
'yellowgreen' => 'Yellow green',
);


Haven't tested, but I think it should work like yours.
Titel: Re: Adding More colors to post reply...
Beitrag von: [Unknown] in März 13, 2005, 03:27:42 VORMITTAG
Zitat von: ruyi_forever in März 13, 2005, 01:48:21 VORMITTAG
what the meaning of "$txt['change_color'] " ???

It's for internationalization.  It means "Change color".

-[Unknown]
Titel: Re: Adding More colors to post reply...
Beitrag von: Hellen in März 13, 2005, 07:17:33 VORMITTAG
It Seems some colors do not work !

And I have tried them, and the colors shown below work very well......

Navy
Blue
Royalblue
Mediumblue
Dodgerblue
Steelblue
Skyblue
Deepskyblue
Lightskyblue
Aquamarine
Lightblue
Slateblue
Turquoise
Aqua
Powderblue
Cadetblue
Midnightblue
Darkblue

Orchid
Plum
Violet
Thistle
Mediumorchid
Darkorchid
Darkviolet
Blueviolet

Hotpink
Deeppink
Fuchsia
Lightpink
Magenta
Pink
Salmon
Lightcoral

Mediumpurple
Darkmagenta
Indigo
Purple

Seagreen
Darkcyan
Forestgreen
Limegreen
Darkgreen
Springgreen
Green
Lightgreen
Palegreen
Teal
Lime
Yellowgreen
Olive
Olivedrab

Darkorange
Tomato
Coral
Crimson
Indianred
Orangered
Red

Chocolate
Saddlebrown
Sienna

Slategray
Darkgray
Black

Orange
Goldenrod
Gold


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ruyimiracle.net%2Fmisc%2Fnamedcolor.jpg&hash=bd7b9d79cf0c814756bbca1a595de35c223c0b1a)
Titel: Re: Adding More colors to post reply...
Beitrag von: clintre in März 14, 2005, 11:21:18 VORMITTAG
It would be nice if this was something that could be setup in the admin panel as opposed to editing scripts. It is easy either way, but people who have limited scripting skills should not be going into scripts and modifying them.
Titel: Re: Adding More colors to post reply...
Beitrag von: Amacythe in März 14, 2005, 11:11:39 NACHMITTAGS
There was a mod for YaBBSE to add colors... maybe someone will alter it
Titel: Re: Adding More colors to post reply...
Beitrag von: rojamaia in August 27, 2005, 11:46:59 VORMITTAG


hi!

this is a good trick, but kinda confusing for beginners like me.

can someone please repost the complete code, complete with the colors that actually work?  thanks a lot in advance!   :D
Titel: Re: Adding More colors to post reply...
Beitrag von: shark in Oktober 15, 2005, 04:31:12 VORMITTAG
Im using SMF 1.1 RC1, not with the Default Theme.
My custom theme doesnt have Post.template.php, which file should i edit?
Pls guide, thanx :)
Titel: Re: Adding More colors to post reply...
Beitrag von: Anguz in Oktober 15, 2005, 12:34:03 NACHMITTAGS
If the template file is not in the custom theme, then it's picked from the default one. So if you want this to show just in the custom one, make a copy of that file and put it there and modify it.
Titel: Re: Adding More colors to post reply...
Beitrag von: perplexed in Februar 08, 2006, 12:29:08 NACHMITTAGS
:( I cant get this to work ie the colours dont change to the ones above, they stay with the standard names.

I went to the post template, changed 'pink' to hotpink'  and so on, didnt work, I added some new colours as per above, didnt work.

The dropdown list remains as standard

Is there another template that needs to be changed apart from the post one?

thanks
Titel: Re: Adding More colors to post reply...
Beitrag von: Anguz in Februar 08, 2006, 01:21:22 NACHMITTAGS
To change the names, you go to the language file.
Titel: Re: Adding More colors to post reply...
Beitrag von: perplexed in Februar 08, 2006, 02:35:27 NACHMITTAGS
:D  excellent worked like a charm, thanks
Titel: Re: Adding More colors to post reply...
Beitrag von: Anguz in Februar 08, 2006, 04:07:59 NACHMITTAGS
;)
Titel: Re: Adding More colors to post reply...
Beitrag von: Skipdawg in Februar 08, 2006, 05:52:46 NACHMITTAGS
Zitat von: clintre in März 14, 2005, 11:21:18 VORMITTAG
It would be nice if this was something that could be setup in the admin panel as opposed to editing scripts. It is easy either way, but people who have limited scripting skills should not be going into scripts and modifying them.

This would be a good one to make a Mod for. To have a place in the Admin CP to pick and choose other color options to add to your forums colors list.  ;)
Titel: Re: Adding More colors to post reply...
Beitrag von: perplexed in Februar 09, 2006, 08:42:22 VORMITTAG
Zitat von: Skipdawg in Februar 08, 2006, 05:52:46 NACHMITTAGS
Zitat von: clintre in März 14, 2005, 11:21:18 VORMITTAG
It would be nice if this was something that could be setup in the admin panel as opposed to editing scripts. It is easy either way, but people who have limited scripting skills should not be going into scripts and modifying them.

This would be a good one to make a Mod for. To have a place in the Admin CP to pick and choose other color options to add to your forums colors list.  ;)

yeah that would be nice, and for extra fonts too
Titel: Re: Adding More colors to post reply...
Beitrag von: Nifelhein in Dezember 11, 2006, 07:58:05 NACHMITTAGS
I would like to thank those who madee this, i just used it on SMF 1.1 Final, anyway I want to know if there is any way i can change the backgroudn color for the drop down menu to black instead of white, my whole site uses a darker theme, is that possible?
Titel: Re: Adding More colors to post reply...
Beitrag von: tz8 in Mai 20, 2008, 04:23:10 VORMITTAG
by the way, i added World of Warcraft (WOW) class colors to SMF

                                                        <option value="#FF7D0A" style="color:#FF7D0A">Druid</option>
                                                        <option value="#ABD473" style="color:#ABD473">Hunter</option>
                                                        <option value="#69CCF0" style="color:#69CCF0">Mage</option>
                                                        <option value="#F58CBA" style="color:#F58CBA">Paladin</option>
                                                        <option value="#FFFFFF" style="color:#FFFFFF">Priest</option>
                                                        <option value="#FFF569" style="color:#FFF569">Rogue</option>
                                                        <option value="#2459FF" style="color:#2459FF">Shaman</option>
                                                        <option value="#9482CA" style="color:#9482CA">Warlock</option>
                                                        <option value="#C79C6E" style="color:#C79C6E">Warrior</option>

feel free to add to your forum
Titel: Re: Adding More colors to post reply...
Beitrag von: Sarge in Juli 05, 2008, 06:40:31 VORMITTAG
tz8, thanks for your contribution. :)
Titel: Re: Adding More colors to post reply...
Beitrag von: sasawawa in Juli 07, 2008, 04:59:03 NACHMITTAGS
Good idea, any demo ?

;D
Titel: Re: Adding More colors to post reply...
Beitrag von: wladymeer in Juni 23, 2009, 12:47:38 VORMITTAG
Any idea where is this color info located in 2.0 RC1-1 and how should I edit it?
Titel: Re: Adding More colors to post reply...
Beitrag von: mgk in Juni 25, 2009, 04:01:25 VORMITTAG
Thanks for posting. This will come in very handy for me. ;)
Titel: Re: Adding More colors to post reply...
Beitrag von: H in Juli 08, 2009, 05:17:04 NACHMITTAGS
Zitat von: wladymeer in Juni 23, 2009, 12:47:38 VORMITTAG
Any idea where is this color info located in 2.0 RC1-1 and how should I edit it?

I can't tell you from memory but I believe someone made a support request about this recently so a search request will probably bring something up.