| ดูกระทู้ก่อนนี้ :: ดูกระทู้ถัดไป |
| ผู้ส่ง |
ข้อความ |
kijakarn Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002 ตอบ: 1584
Level: 33
|
ตอบ: จ. มค. 20, 2003 4:06 pm ชื่อกระทู้: การแก้ปัญหาตัวหนังสือภาษาไทยเล็ก ใน phpBB และ NUKE |
|
|
ตัวอักษรที่ set มาโดย default ถ้าใช้ภาษาไทย มักมีปัญหาเสมอ คือ arial,courrier และ verdana ตัวจะเล็ก มองไม่เห็นการแก้ปัญหาคือ
เข้าตรง administration------>Forum admin(ตรงกลาง)--------->style management---------->เปลี่ยน font ทั้งหมด ให้เป็น MS Sans Serif (ยกเว้นตัวอักษรตัวใหญ่พิเศษ ให้คงไว้อย่างเดิม)ก็จะแก้ปัญหาได้ส่วนหนึ่ง
ถ้ามีการ install theme อื่น ๆ เช่น subblack,spacepilot,deepblue ก็เช่นเดียวกัน
_________________ เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- . |
|
| กลับไปข้างบน |
|
 |
kijakarn Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002 ตอบ: 1584
Level: 33
|
ตอบ: จ. มค. 20, 2003 4:11 pm ชื่อกระทู้: |
|
|
การแก้ปัญหาใน NUKE theme ก็เช่นเดียวกัน ให้หาใน themes/yourthemename/style/style.css จะเห็นว่ามีการกำหนด font มาตรฐาน ซึ่งส่วนใหญ่จะอยู่ใน group verdana,sans serif,arial ถ้าเป็นภาษาอังกฤษจะไม่มีปัญหาเลยครับ สวยละเอียด แต่ถ้าเป็นภาษาไทยละก็ บางทีอ่านไม่รู้เรื่อง
วิธีแก้คือ ให้เปลี่ยนให้เหลือแค่ MS Sans Serif ก็จะได้ตัวหนังสืออ่านง่าย ๆ เหมือนที่ site นี้แหละครับ ถ้าอยากแปลก ๆ มีตัวอ้วน ๆ บ้างที่ side block ก้ให้ที่ boxcontent,boxarticle เป็น arial อย่างเดิม ก็จะได้แปลก ๆ สมใจ
_________________ เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- . |
|
| กลับไปข้างบน |
|
 |
nu_sut EntryStar


เข้าร่วมเมื่อ: Jan 14, 2003 ตอบ: 2 ที่อยู่: USA
Level: 1
|
ตอบ: จ. กพ. 03, 2003 11:28 am ชื่อกระทู้: |
|
|
มือใหม่หัดเล่น phpnuke
_________________ Just do it |
|
| กลับไปข้างบน |
|
 |
prommate EntryStar


เข้าร่วมเมื่อ: Jan 28, 2003 ตอบ: 11
Level: 2
|
ตอบ: อ. มีค. 04, 2003 9:29 am ชื่อกระทู้: |
|
|
ผมลองเปลี่ยนแล้วครับ แต่แก้ไม่หา ที่ themes ของ nuke ไม่มีปัญหา มีก็ที่ตรงเวบบอร์ดอย่างเดียว ในช่องข้อความทำไมมันเล็กแบบสุด ๆ ใน ไฟล์ subSilver.cs ผมก็ใช้เหมือนกับที่นี่อะครับ
| คำพูด: | /*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
*/
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #E5E5E5;
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
}
/* General font families for common tags */
font,th,td,p { font-family: MS Sans Serif, Helvetica, sans-serif }
a:link,a:visited { color : #993366; }
a:active { color : #215DC6; }
a:hover { text-decoration: underline; color : #000000; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: #FFFFFF; border: 2px #006699 solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: #EFEFEF; }
td.row2 { background-color: #DEE3E7; }
td.row3 { background-color: #D1D7DC; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #FFFFFF;
background-image: url(../../../../../../../WINDOWS/Temporary%20Internet%20Files/Content.IE5/FLM0IXUW/images/cellpic2.jpg);
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: #FFA34F; font-size: 11px; font-weight : bold;
background-color: #006699; height: 25px;
background-image: url(../../../../../../../WINDOWS/Temporary%20Internet%20Files/Content.IE5/FLM0IXUW/images/cellpic3.gif);
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(../../../../../../../WINDOWS/Temporary%20Internet%20Files/Content.IE5/FLM0IXUW/images/cellpic1.gif);
background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; }
td.row3Right,td.spaceRow {
background-color: #D1D7DC; border: #FFFFFF; border-style: solid; }
th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}
/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : 11px; color : #000000 }
a.mainmenu { text-decoration: none; color : #006699; }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
a.cattitle { text-decoration: none; color : #006699; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: 11px; color : #000000;}
a.nav { text-decoration: none; color : #006699; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link { text-decoration: none; color : #006699; }
a.topictitle:visited { text-decoration: none; color : #5493B4; }
a.topictitle:hover { text-decoration: underline; color : #DD6900; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : 11px; color : #000000;}
/* Location, number of posts, post date etc */
.postdetails { font-size : 10px; color : #000000; }
/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}
/* Quote & Code blocks */
.code {
font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
/* Copyright and bottom info */
.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #000000;
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #FFFFFF;
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : #EFEFEF;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}
/* The main submit button option */
input.mainoption {
background-color : #FAFAFA;
font-weight : bold;
}
/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know
*/
.helpline { background-color: #DEE3E7; border-style: none; }
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css"); |
มันก็ยังเล็กแบบน่าเกลียด แล้วทีนี้ผมจะแก้ตรงไหนดีอ่ะ เอารูปมาให้ดูด้วย
|
|
| กลับไปข้างบน |
|
 |
kijakarn Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002 ตอบ: 1584
Level: 33
|
ตอบ: อ. มีค. 04, 2003 10:42 am ชื่อกระทู้: |
|
|
แก้ใน themes/subSilver/overalheader.tpl ในส่วน general font ครับ เขามาหมกเม็ดไว้ที่นี่อีกแห่ง จริง ๆ ไม่ใช่หมก แต่เป็นการ ใส่ css ไว้ใน header ซึ่งสามารถตัดทิ้งได้ แต่ที่ไม่ตัดก็เพราะเพื่อให้เวลาเรา install ใหม่ ๆ จะได้ใช้ css ที่ติดมากับ header ได้ บังเอิญผมมันประเภทขุดคุ้ยน่ะครับ และเป็นเฉพาะ subSilver theme อันเดียวซะด้วย
สรุปตอนนี้ก็คือต้องแก้ที่
1.forum admin /styleadmin
2.subSilver.css
3.overallheader.tpl
ข้อ 2 นี่บางทีไม่ต้องแก้เลยครับ
จริง ๆ มี trick มากกว่านั้นอีก และเกี่ยวกับความเร็วด้วย เลยยกไปไว้ที่ www.doctornuke.com หาตามอ่านนะครับ
ลองดูนะ และอย่าลืมบอก site ไว้ให้ผม link ด้วยนะครับ
_________________ เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- . |
|
| กลับไปข้างบน |
|
 |
บุคคลทั่วไป

Level: 83
|
ตอบ: ศ. มค. 16, 2004 4:12 am ชื่อกระทู้: |
|
|
| มีตัว ท อยู่ด้านหน้าจะแก้อย่างไรครับ
|
|
| กลับไปข้างบน |
|
 |
|
|
คุณ ไม่สามารถ ตั้งกระทู้ใหม่ในกระดานนี้ คุณ ไม่สามารถ ตอบกระทู้ในกระดานนี้ คุณ ไม่สามารถ แก้ไขการตอบกระทู้ของคุณในกระดานนี้ คุณ ไม่สามารถ ลบการตอบกระทู้ของคุณในกระดานนี้ คุณ ไม่สามารถ ลงคะแนนในแบบสำรวจในกระดานนี้ คุณ ไม่สามารถแนบไฟล์หรือภาพประกอบในกระดานนี้ คุณสามารถ ดาวน์โหลดไฟล์จากกระดานนี้
|
|