การเพิ่มตัวเลือกสีในบอร์ด ]

ผู้เขียน หัวข้อ: การเพิ่มตัวเลือกสีในบอร์ด  (อ่าน 689 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

DEKTAI2U.COM

  • Administrator
  • เด็กมัธยม
  • *****
  • ออฟไลน์
    Level and Hp Level 17 : Exp 13%
    HP: 1.2%


    • ดูรายละเอียด
การเพิ่มตัวเลือกสีในบอร์ด
« เมื่อ: วันที่ 25 มีนาคม 2014 เวลา 11:27:33 น. »
โดยปกติ ตัวเลือกสีที่มากับบอร์ด จะเป็นอะไรๆ ที่ทื่อๆ ไม่สวยงาม



แต่เราสามารถเพิ่มตัวเลือกสี และใส่สีให้กับตัวเลือกได้เอง
เปิดไฟล์ Themes/default/Post.template.php
ค้นหาส่วนนี้
โค๊ด: [Select]
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' +
this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.',
$context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.',
$context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.',
$context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<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>';

แล้วเพิ่มตัวเลือกสีเข้าไปเอง ดังนี้

โค๊ด: [Select]
  <option value="Aqua" style="color:aqua;">Aqua</option>
  <option value="Black" style="color:black;">Black</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="Crimson" style="color:crimson;">Crimson</option>
  <option value="Cyan" style="color:cyan;">Cyan</option>
  <option value="Deepskyblue" style="color:deepskyblue;">Deepskyblue </option>
  <option value="Darkblue" style="color:darkblue;">DarkBlue</option>
  <option value="Darkcyan" style="color:darkcyan;">DarkCyan</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="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="Darkviolet" style="color:darkviolet;">DarkViolet</option>
  <option value="Deeppink" style="color:deeppink;">DeepPink</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="Forestgreen" style="color:forestgreen;">ForestGreen</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="Hotpink" style="color:hotpink;">HotPink</option>
  <option value="Indianred" style="color:indianred;">IndianRed</option>
  <option value="Indianred" style="color:indigo;">Indianred</option>
  <option value="Khaki" style="color:khaki;">Khaki</option>
  <option value="Lawngreen" style="color:lawngreen;">LawnGreen</option>
  <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="Lightskyblue" style="color:lightskyblue;">LightSkyBlue</option>
  <option value="Lightblue" style="color:lightblue;">LightBlue</option>
  <option value="Lightcoral" style="color:lightcoral;">LightCoral</option>
  <option value="Lime" style="color:lime;">Lime</option>
  <option value="Limegreen" style="color:limegreen;">LimeGreen</option>
  <option value="Magenta" style="color:magenta;">Magenta</option>
  <option value="Maroon" style="color:maroon;">Maroon</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="Midnightblue" style="color:midnightblue;">MidnightBlue</option>
  <option value="Navy" style="color:navy;">Navy</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="Palegreen" style="color:palegreen;">PaleGreen</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="Sienna" style="color:sienna;">Sienna</option>
  <option value="Silver" style="color:silver;">Silver</option>
  <option value="Skyblue" style="color:skyblue;">SkyBlue</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="Yellow" style="color:yellow;">Yellow</option>
  <option value="Yellowgreen" style="color:yellowgreen;">Yellowgreen</option>

ก็จะได้ผลดังนี้



Copy ไม่ได้ ให้กด Select แล้ว กด Ctrl+C ใน คียืบอร์ด


สวัสดีคุณ ผู้เยี่ยมชม เข้าเว็บไซต์ DEKTAI2U.COM
Programming System & IT ZONE

DEKTAI2U.COM

  • Administrator
  • เด็กมัธยม
  • *****
  • ออฟไลน์
    Level and Hp Level 17 : Exp 13%
    HP: 1.2%


    • ดูรายละเอียด
Re: การเพิ่มตัวเลือกสีในบอร์ด
« ตอบกลับ #1 เมื่อ: วันที่ 25 มีนาคม 2014 เวลา 11:31:44 น. »
แถมอีกแบบครับ



โค๊ด: [Select]
<option style="background-color: aqua; color:aqua;" value="aqua">Aqua</option>
 <option style="background-color: black; color: black;" value="black">Black</option>
  <option style="background-color: blue; color: blue;" value="blue">Blue</option>
   <option style="background-color:blueviolet; color:blueviolet;" value="blueviolet">Blueviolet</option>
  <option style="background-color:brown; color:brown;" value="brown">Brown</option>
  <option style="background-color:burlywood; color:burlywood;" value="burlywood">BurlyWood</option>
  <option style="background-color:cadetblue; color:cadetblue;" value="cadetblue">CadetBlue</option>
  <option style="background-color:chartreuse; color:chartreuse;" value="chartreuse">Chartreuse</option>
 <option style="background-color:chocolate; color:chocolate;" value="chocolate">Chocolate</option>
  <option style="background-color:coral; color:coral;" value="coral">Coral</option>
  <option style="background-color:crimson; color:crimson;" value="crimson">Crimson</option>
 <option style="background-color:cyan; color:cyan;" value="cyan">Cyan</option>
 <option style="background-color:deepskyblue; color:deepskyblue;" value="deepskyblue">Deepskyblue</option>
  <option style="background-color:darkblue; color:darkblue;" value="darkblue">DarkBlue</option>
  <option style="background-color:darkcyan; color:darkcyan;" value="darkcyan">DarkCyan</option>
 <option style="background-color:darkgray; color:darkgray;" value="darkgray">DarkGray</option>
  <option style="background-color:darkgreen; color:darkgreen;" value="darkgreen">DarkGreen</option>
  <option style="background-color:darkkhaki; color:darkkhaki;" value="darkkhaki">DarkKhaki</option>
   <option style="background-color:darkmagenta; color:darkmagenta;" value="darkmagenta">DarkMagenta</option>
 <option style="background-color:darkorange; color:darkorange;" value="darkorange">DarkOrange</option>
  <option style="background-color:darkorchid; color:darkorchid;" value="darkorchid">DarkOrchid</option>
  <option style="background-color:darkred; color:darkred;" value="darkred">DarkRed</option>
  <option style="background-color:darksalmon; color:darksalmon;" value="darksalmon">DarkSalmon</option>
 <option style="background-color:darkseagreen; color:darkseagreen;" value="darkseagreen">DarkSeaGreen</option>
 <option style="background-color:darkviolet; color:darkviolet;" value="DarkViolet">DarkViolet</option>
  <option style="background-color:deeppink; color:deeppink;" value="DeepPink">DeepPink</option>
  <option style="background-color:dimgray; color:dimgray;" value="DimGray">DimGray</option>
  <option style="background-color:dodgerblue; color:dodgerblue;" value="DodgerBlue">DodgerBlue</option>
 <option style="background-color:firebrick; color:firebrick;" value="Firebrick">Firebrick</option>
 <option style="background-color:forestgreen; color:forestgreen;" value="ForestGreen">ForestGreen</option>
 <option style="background-color:gold; color:gold;" value="Gold">Gold</option>
  <option style="background-color:goldenrod; color:goldenrod;" value="Goldenrod">Goldenrod</option>
  <option style="background-color:gray; color:gray;" value="Gray">Gray</option>
   <option style="background-color:green; color:green;" value="Green">Green</option>
 <option style="background-color:greenyellow; color:greenyellow;" value="GreenYellow">GreenYellow</option>
  <option style="background-color:hotpink; color:hotpink;" value="HotPink">HotPink</option>
   <option style="background-color:indianred; color:indianred;" value="IndianRed">IndianRed</option>
  <option style="background-color:indigo; color:indigo;" value="Indigo">Indigo</option>
   <option style="background-color:khaki; color:khaki;" value="Khaki">Khaki</option>
   <option style="background-color:lawngreen; color:lawngreen;" value="LawnGreen">LawnGreen</option>
   <option style="background-color:lightgreen; color:lightgreen;" value="LightGreen">LightGreen</option>
  <option style="background-color:lightgrey; color:lightgrey;" value="LightGrey">LightGrey</option>
  <option style="background-color:lightpink; color:lightpink;" value="LightPink">LightPink</option>
  <option style="background-color:lightsalmon; color:lightsalmon;" value="LightSalmon">LightSalmon</option>
  <option style="background-color:lightskyblue; color:lightskyblue;" value="LightSkyBlue">LightSkyBlue</option>
 <option style="background-color:lightblue; color:lightblue;" value="LightBlue">LightBlue</option>
  <option style="background-color:lightcoral; color:lightcoral;" value="LightCoral">LightCoral</option>
  <option style="background-color:lime; color:lime;" value="Lime">Lime</option>
  <option style="background-color:limegreen; color:limegreen;" value="LimeGreen">LimeGreen</option>
   <option style="background-color:magenta; color:magenta;" value="Magenta">Magenta</option>
   <option style="background-color:maroon; color:maroon;" value="Maroon">Maroon</option>
   <option style="background-color:mediumblue; color:mediumblue;" value="MediumBlue">MediumBlue</option>
   <option style="background-color:mediumorchid; color:mediumorchid;" value="MediumOrchid">MediumOrchid</option>
 <option style="background-color:mediumpurple; color:mediumpurple;" value="MediumPurple">MediumPurple</option>
  <option style="background-color:midnightblue; color:midnightblue;" value="MidnightBlue">MidnightBlue</option>
  <option style="background-color:navy; color:navy;" value="Navy">Navy</option>
  <option style="background-color:olive; color:olive;" value="Olive">Olive</option>
  <option style="background-color:olivedrab; color:olivedrab;" value="OliveDrab">OliveDrab</option>
  <option style="background-color:orange; color:orange;" value="Orange">Orange</option>
 <option style="background-color:orangered; color:orangered;" value="OrangeRed">OrangeRed</option>
 <option style="background-color:orchid; color:orchid;" value="Orchid">Orchid</option>
 <option style="background-color:palegreen; color:palegreen;" value="PaleGreen">PaleGreen</option>
<option style="background-color:peru; color:peru;" value="Peru">Peru</option>
 <option style="background-color:pink; color:pink;" value="Pink">Pink</option>
   <option style="background-color:plum; color:plum;" value="Plum">Plum</option>
  <option style="background-color:powderblue; color:powderblue;" value="PowderBlue">PowderBlue</option>
 <option style="background-color:purple; color:purple;" value="Purple">Purple</option>
  <option style="background-color:red; color:red;" value="Red">Red</option>
  <option style="background-color:rosybrown; color:rosybrown;" value="RosyBrown">RosyBrown</option>
  <option style="background-color:royalblue; color:royalblue;" value="RoyalBlue">RoyalBlue</option>
 <option style="background-color:saddlebrown; color:saddlebrown;" value="SaddleBrown">SaddleBrown</option>
 <option style="background-color:salmon; color:salmon;" value="Salmon">Salmon</option>
  <option style="background-color:sandybrown; color:sandybrown;" value="SandyBrown">SandyBrown</option>
  <option style="background-color:seagreen; color:seagreen;" value="SeaGreen">SeaGreen</option>
  <option style="background-color:sienna; color:sienna;" value="Sienna">Sienna</option>
  <option style="background-color:silver; color:silver;" value="Silver">Silver</option>
 <option style="background-color:skyblue; color:skyblue;" value="SkyBlue">SkyBlue</option>
 <option style="background-color:slateblue; color:slateblue;" value="Slateblue">Slateblue</option>
  <option style="background-color:slategray; color:slategray;" value="Slategray">Slategray</option>
  <option style="background-color:springgreen; color:springgreen;" value="Springgreen">Springgreen</option>
 <option style="background-color:steelblue; color:steelblue;" value="Steelblue">Steelblue</option>
  <option style="background-color:tan; color:tan;" value="Tan">Tan</option>
 <option style="background-color:teal; color:teal;" value="Teal">Teal</option>
 <option style="background-color:thistle; color:thistle;" value="Thistle">Thistle</option>
  <option style="background-color:tomato; color:tomato;" value="Tomato">Tomato</option>
  <option style="background-color:turquoise; color:turquoise;" value="Turquoise">Turquoise</option>
   <option style="background-color:violet; color:violet;" value="Violet">Violet</option>
  <option style="background-color:wheat; color:wheat;" value="Wheat">Wheat</option>
  <option style="background-color:white; color:white;" value="White">White</option>
   <option style="background-color:yellow; color:yellow;" value="Yellow">Yellow</option>
  <option style="background-color:yellowgreen; color:yellowgreen;" value="Yellowgreen">Yellowgreen</option>


สวัสดีคุณ ผู้เยี่ยมชม เข้าเว็บไซต์ DEKTAI2U.COM
Programming System & IT ZONE

DEKTAI2U.COM

  • Administrator
  • เด็กมัธยม
  • *****
  • ออฟไลน์
    Level and Hp Level 17 : Exp 13%
    HP: 1.2%


    • ดูรายละเอียด
Re: การเพิ่มตัวเลือกสีในบอร์ด
« ตอบกลับ #2 เมื่อ: วันที่ 25 มีนาคม 2014 เวลา 11:37:25 น. »
อันนี้ของ 2.0
./Themes/default/GenericControls.template.php
หา
โค๊ด: [Select]
<select name="%selectName%" id="%selectId%" style="margin-bottom: 1ex; font-size: x-small;">แทนที่
โค๊ด: [Select]
<select name="%selectName%" id="%selectId%" style="margin-bottom: 1ex; font-size: x-small; height: 20px;">
./Themes/default/scripts/editor.js
หา
โค๊ด: [Select]
for (var sSelectValue in oCurButton.oOptions)
// we've been through this before
if (sSelectValue != '')
sOptions += '<option value="' + sSelectValue.php_htmlspecialchars() + '">' + oCurButton.oOptions[sSelectValue].php_htmlspecialchars() + '</option>';

แทนที่ด้วย
โค๊ด: [Select]
for (var sSelectValue in oCurButton.oOptions)
{
                // we've been through this before
                if (sSelectValue != '')
                {
            var optionStyle = '';
   
    if (oCurButton.sName == 'sel_color')
        optionStyle = 'style="color: ' + sSelectValue.php_htmlspecialchars() + ';"';
    else if (oCurButton.sName == 'sel_size')
        optionStyle = 'style="font-size: ' + oCurButton.oOptions[sSelectValue].php_htmlspecialchars() + ';"';
    else if (oCurButton.sName == 'sel_face')
        optionStyle = 'style="font-family: ' + sSelectValue.php_htmlspecialchars() + ';"';   
   
    sOptions += '<option value="' + sSelectValue.php_htmlspecialchars() + '" ' + optionStyle + '>' + oCurButton.oOptions[sSelectValue].php_htmlspecialchars() + '</option>';
                }
           }

./Themes/default/GenericControls.template.php
หา
โค๊ด: [Select]
\'\': ', JavaScriptEscape($txt['change_color']), ',
\'black\': ', JavaScriptEscape($txt['black']), ',
\'red\': ', JavaScriptEscape($txt['red']), ',
\'yellow\': ', JavaScriptEscape($txt['yellow']), ',
\'pink\': ', JavaScriptEscape($txt['pink']), ',
\'green\': ', JavaScriptEscape($txt['green']), ',
\'orange\': ', JavaScriptEscape($txt['orange']), ',
\'purple\': ', JavaScriptEscape($txt['purple']), ',
\'blue\': ', JavaScriptEscape($txt['blue']), ',
\'beige\': ', JavaScriptEscape($txt['beige']), ',
\'brown\': ', JavaScriptEscape($txt['brown']), ',
\'teal\': ', JavaScriptEscape($txt['teal']), ',
\'navy\': ', JavaScriptEscape($txt['navy']), ',
\'maroon\': ', JavaScriptEscape($txt['maroon']), ',
\'limegreen\': ', JavaScriptEscape($txt['lime_green']), ',
\'white\': ', JavaScriptEscape($txt['white']), '

แทนที่ด้วย
โค๊ด: [Select]
\'\': ', JavaScriptEscape($txt['change_color']), ',
\'aqua\': ', JavaScriptEscape($txt['Aqua']), ',
\'black\': ', JavaScriptEscape($txt['Black']), ',
\'blue\': ', JavaScriptEscape($txt['Blue']), ',
\'blueviolet\': ', JavaScriptEscape($txt['Blueviolet']), ',
\'brown\': ', JavaScriptEscape($txt['Brown']), ',
\'burlywood\': ', JavaScriptEscape($txt['Burlywood']), ',
\'cadetblue\': ', JavaScriptEscape($txt['Cadetblue']), ',
\'chartreuse\': ', JavaScriptEscape($txt['Chartreuse']), ',
\'chocolate\': ', JavaScriptEscape($txt['Chocolate']), ',
\'coral\': ', JavaScriptEscape($txt['Coral']), ',
\'crimson\': ', JavaScriptEscape($txt['Crimson']), ',
\'cyan\': ', JavaScriptEscape($txt['Cyan']), ',
\'deepskyblue\': ', JavaScriptEscape($txt['Deepskyblue']), ',
\'darkblue\': ', JavaScriptEscape($txt['Darkblue']), ',
\'darkcyan\': ', JavaScriptEscape($txt['Darkcyan']), ',
\'darkgray\': ', JavaScriptEscape($txt['Darkgray']), ',
\'darkgreen\': ', JavaScriptEscape($txt['Darkgreen']), ',
\'darkkhaki\': ', JavaScriptEscape($txt['Darkkhaki']), ',
\'darkmagenta\': ', JavaScriptEscape($txt['Darkmagenta']), ',
\'darkorange\': ', JavaScriptEscape($txt['Darkorange']), ',
\'darkorchid\': ', JavaScriptEscape($txt['Darkorchid']), ',
\'darkred\': ', JavaScriptEscape($txt['Darkred']), ',
\'darksalmon\': ', JavaScriptEscape($txt['Darksalmon']), ',
\'Darkseagreen\': ', JavaScriptEscape($txt['Darkseagreen']), ',
\'darkviolet\': ', JavaScriptEscape($txt['Darkviolet']), ',
\'deeppink\': ', JavaScriptEscape($txt['Deeppink']), ',
\'dimgray\': ', JavaScriptEscape($txt['Dimgray']), ',
\'dodgerblue\': ', JavaScriptEscape($txt['Dodgerblue']), ',
\'firebrick\': ', JavaScriptEscape($txt['Firebrick']), ',
\'forestgreen\': ', JavaScriptEscape($txt['Forestgreen']), ',
\'gold\': ', JavaScriptEscape($txt['Gold']), ',
\'goldenrod\': ', JavaScriptEscape($txt['Goldenrod']), ',
\'gray\': ', JavaScriptEscape($txt['Gray']), ',
\'green\': ', JavaScriptEscape($txt['Green']), ',
\'greenyellow\': ', JavaScriptEscape($txt['Greenyellow']), ',
\'hotpink\': ', JavaScriptEscape($txt['Hotpink']), ',
\'indianred\': ', JavaScriptEscape($txt['Indianred']), ',
\'indigo\': ', JavaScriptEscape($txt['Indianred']), ',
\'khaki\': ', JavaScriptEscape($txt['Khaki']), ',
\'lawngreen\': ', JavaScriptEscape($txt['Lawngreen']), ',
\'lightgreen\': ', JavaScriptEscape($txt['Lightgreen']), ',
\'lightgrey\': ', JavaScriptEscape($txt['Lightgrey']), ',
\'lightpink\': ', JavaScriptEscape($txt['Lightpink']), ',
\'lightsalmon\': ', JavaScriptEscape($txt['Lightsalmon']), ',
\'lightskyblue\': ', JavaScriptEscape($txt['Lightskyblue']), ',
\'lightblue\': ', JavaScriptEscape($txt['Lightblue']), ',
\'lightcoral\': ', JavaScriptEscape($txt['Lightcoral']), ',
\'lime\': ', JavaScriptEscape($txt['Lime']), ',
\'limegreen\': ', JavaScriptEscape($txt['Limegreen']), ',
\'magenta\': ', JavaScriptEscape($txt['Magenta']), ',
\'maroon\': ', JavaScriptEscape($txt['Maroon']), ',
\'mediumblue\': ', JavaScriptEscape($txt['Mediumblue']), ',
\'mediumorchid\': ', JavaScriptEscape($txt['Mediumorchid']), ',
\'mediumpurple\': ', JavaScriptEscape($txt['Mediumpurple']), ',
\'midnightblue\': ', JavaScriptEscape($txt['Midnightblue']), ',
\'navy\': ', JavaScriptEscape($txt['Navy']), ',
\'olive\': ', JavaScriptEscape($txt['Olive']), ',
\'olivedrab\': ', JavaScriptEscape($txt['Olivedrab']), ',
\'orange\': ', JavaScriptEscape($txt['Orange']), ',
\'orangered\': ', JavaScriptEscape($txt['Orangered']), ',
\'orchid\': ', JavaScriptEscape($txt['Orchid']), ',
\'palegreen\': ', JavaScriptEscape($txt['Palegreen']), ',
\'peru\': ', JavaScriptEscape($txt['Peru']), ',
\'pink\': ', JavaScriptEscape($txt['Pink']), ',
\'plum\': ', JavaScriptEscape($txt['Plum']), ',
\'powderblue\': ', JavaScriptEscape($txt['Powderblue']), ',
\'purple\': ', JavaScriptEscape($txt['Purple']), ',
\'red\': ', JavaScriptEscape($txt['Red']), ',
\'rosybrown\': ', JavaScriptEscape($txt['Rosybrown']), ',
\'royalblue\': ', JavaScriptEscape($txt['Royalblue']), ',
\'saddlebrown\': ', JavaScriptEscape($txt['Saddlebrown']), ',
\'salmon\': ', JavaScriptEscape($txt['Salmon']), ',
\'sandybrown\': ', JavaScriptEscape($txt['Sandybrown']), ',
\'seagreen\': ', JavaScriptEscape($txt['Seagreen']), ',
\'sienna\': ', JavaScriptEscape($txt['Sienna']), ',
\'silver\': ', JavaScriptEscape($txt['Silver']), ',
\'skyblue\': ', JavaScriptEscape($txt['Skyblue']), ',
\'slateblue\': ', JavaScriptEscape($txt['Slateblue']), ',
\'slategray\': ', JavaScriptEscape($txt['Slategray']), ',
\'springgreen\': ', JavaScriptEscape($txt['Springgreen']), ',
\'steelblue\': ', JavaScriptEscape($txt['Steelblue']), ',
\'tan\': ', JavaScriptEscape($txt['Tan']), ',
\'teal\': ', JavaScriptEscape($txt['Teal']), ',
\'thistle\': ', JavaScriptEscape($txt['Thistle']), ',
\'tomato\': ', JavaScriptEscape($txt['Tomato']), ',
\'turquoise\': ', JavaScriptEscape($txt['Turquoise']), ',
\'violet\': ', JavaScriptEscape($txt['Violet']), ',
\'wheat\': ', JavaScriptEscape($txt['Wheat']), ',
\'white\': ', JavaScriptEscape($txt['White']), ',
\'yellow\': ', JavaScriptEscape($txt['Yellow']), ',
\'yellowgreen\': ', JavaScriptEscape($txt['Yellowgreen']), ',

ทีนี้มาเพิ่มชื่อสีครับ
./Themes/default/languages/Post.thai-utf8.php  (ถ้ามี 2 ภาษาอย่าลืมไปเพิ่มตรงไฟล์นี้ด้วยนะคับ Post.english-utf8.php)
หา
โค๊ด: [Select]
$txt['change_color'] = 'เปลี่ยนสี';
ใส่บรรทัดต่อไป
โค๊ด: [Select]
$txt['Aqua']='Aqua';
$txt['Black']='Black';
$txt['Blue']='Blue';
$txt['Blueviolet']='Blueviolet';
$txt['Brown']='Brown';
$txt['Burlywood']='Burlywood';
$txt['Cadetblue']='Cadetblue';
$txt['Chartreuse']='Chartreuse';
$txt['Chocolate']='Chocolate';
$txt['Coral']='Coral';
$txt['Crimson']='Crimson';
$txt['Cyan']='Cyan';
$txt['Deepskyblue']='Deepskyblue';
$txt['Darkblue']='Darkblue';
$txt['Darkcyan']='Darkcyan';
$txt['Darkgray']='Darkgray';
$txt['Darkgreen']='Darkgreen';
$txt['Darkkhaki']='Darkkhaki';
$txt['Darkmagenta']='Darkmagenta';
$txt['Darkorange']='Darkorange';
$txt['Darkorchid']='Darkorchid';
$txt['Darkred']='Darkred';
$txt['Darksalmon']='Darksalmon';
$txt['Darkseagreen']='Darkseagreen';
$txt['Darkviolet']='Darkviolet';
$txt['Deeppink']='Deeppink';
$txt['Dimgray']='Dimgray';
$txt['Dodgerblue']='Dodgerblue';
$txt['Firebrick']='Firebrick';
$txt['Forestgreen']='Forestgreen';
$txt['Gold']='Gold';
$txt['Goldenrod']='Goldenrod';
$txt['Gray']='Gray';
$txt['Green']='Green';
$txt['Greenyellow']='Greenyellow';
$txt['Hotpink']='Hotpink';
$txt['Indianred']='Indianred';
$txt['Indianred']='Indianred';
$txt['Khaki']='Khaki';
$txt['Lawngreen']='Lawngreen';
$txt['Lightgreen']='Lightgreen';
$txt['Lightgrey']='Lightgrey';
$txt['Lightpink']='Lightpink';
$txt['Lightsalmon']='Lightsalmon';
$txt['Lightskyblue']='Lightskyblue';
$txt['Lightblue']='Lightblue';
$txt['Lightcoral']='Lightcoral';
$txt['Lime']='Lime';
$txt['Limegreen']='Limegreen';
$txt['Magenta']='Magenta';
$txt['Maroon']='Maroon';
$txt['Mediumblue']='Mediumblue';
$txt['Mediumorchid']='Mediumorchid';
$txt['Mediumpurple']='Mediumpurple';
$txt['Midnightblue']='Midnightblue';
$txt['Navy']='Navy';
$txt['Olive']='Olive';
$txt['Olivedrab']='Olivedrab';
$txt['Orange']='Orange';
$txt['Orangered']='Orangered';
$txt['Orchid']='Orchid';
$txt['Palegreen']='Palegreen';
$txt['Peru']='Peru';
$txt['Pink']='Pink';
$txt['Plum']='Plum';
$txt['Powderblue']='Powderblue';
$txt['Purple']='Purple';
$txt['Red']='Red';
$txt['Rosybrown']='Rosybrown';
$txt['Royalblue']='Royalblue';
$txt['Saddlebrown']='Saddlebrown';
$txt['Salmon']='Salmon';
$txt['Sandybrown']='Sandybrown';
$txt['Seagreen']='Seagreen';
$txt['Sienna']='Sienna';
$txt['Silver']='Silver';
$txt['Skyblue']='Skyblue';
$txt['Slateblue']='Slateblue';
$txt['Slategray']='Slategray';
$txt['Springgreen']='Springgreen';
$txt['Steelblue']='Steelblue';
$txt['Tan']='Tan';
$txt['Teal']='Teal';
$txt['Thistle']='Thistle';
$txt['Tomato']='Tomato';
$txt['Turquoise']='Turquoise';
$txt['Violet']='Violet';
$txt['Wheat']='Wheat';
$txt['White']='White';
$txt['Yellow']='Yellow';
$txt['Yellowgreen']='Yellowgreen';


สวัสดีคุณ ผู้เยี่ยมชม เข้าเว็บไซต์ DEKTAI2U.COM
Programming System & IT ZONE