ติดต่อลงโฆษณา racingweb@gmail.com

แสดงกระทู้

ส่วนนี้จะช่วยให้คุณสามารถดูกระทู้ทั้งหมดสมาชิกนี้ โปรดทราบว่าคุณสามารถเห็นเฉพาะกระทู้ในพื้นที่ที่คุณเข้าถึงในขณะนี้


ข้อความ - YoTa

หน้า: 1 ... 5 6 [7] 8
181
ผมว่าไปเอาภาษาไทนมาติดตั้งก่อนนะครับ  http://www.simplemachines.org/download/?languages;lang=thai


ส่วนปักหมุดปุ่มก็อยู่ในหน้าโพสนี่เลยครับ

182
เพิ่มเติมครับพอดีว่ากำลังทำพอดี

ส่วนนี้เป็็นตัวหนังสือใน body

โค้ด: [เลือก]
/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
font-size: small;
font-family: verdana, sans-serif;
}


เปลี่ยนจาก  font-size: small;  มาเป็น  font-size: 12px;

พยายามเปลี่ยนทุกตัวที่มี  font-size  แต่จะขนาดเท่ากันหรือไม่  ก็แล้วแต่คุณครับ

183
ได้ครับ  แต่ค่อนข้างซับซ้อน  เดี๋ยวหาตำราให้

184
เอาแบบสคริปเป็นปัจจุบันเลย 1.1.7

ก่อนอื่นเข้าไปปิดการใช้งานบอร์ก่อน โดยใช้คำสั่ง  ค่าต่างๆของระบบ > เข้าโหมดบำรุงรักษา?

จากนั้นนำสคริป SMF. 1.1.7 เตรียมพร้อมไว้โดยไม่ต้องนำไฟล์ดังนี้มา Settings.php , Settings_bak.php

โยนสคริปตัวใหม่ใส่ลงไปในไดเร็กบอร์ดจนเสร็จเรียบร้อย  จากนั้นก็ CH mod 777 ตามเดิม

เท่านี้ก็เสร็จเรียบร้อย  ได้เวอร์ชั่นใหม่ล่าสุดด้วย  แล้วฐานข้อมูลเดิมก็ยังอยู่  ข้อมูลก็ไม่หาย

185
บอร์ดคุณใช้ SMF 1.1.4  ก็ต้องอัพเป็น SMF 1.1.5

187
อยากได้ทีมสวยๆ สีฟ้าอ่อนๆ ประมาณเนี้ยะ  จะสามารถดาวน์โหลดได้จากที่ไหน  และขอ support ภาษาไทยด้วย

ธีมที่โหลดมาใน style.css  จะรองรับภาษาอังกฤษ เฉพาะขนาดตัวอักษรนะครับ  มันอาจจะเล็กไป  เราต้องมาปรับปรุงเอาเองครับ

ปกติแล้วก็จะกำหนดขนาดอักษรที่ font-site = 12px

188
ก็อัปตัวอีโมที่ต้องลงไปโดยที่ชื่อไม่ซ้ำกัน ขอแนะนำให้ตั้งชื่อง่ายๆและเรียงตามลำดับ เช่น

emo1 , emo2  เป็นต้น

จากนั้นเลือกตัวอีโมที่อัปไป  ใส่ชื่อมันซะ  แล้วก็ save  เท่านั้นเองครับ  ลองทำดู

189
ผมก็ไม่เคยลองนะแต่ก็ไม่เสียหายอะไร  ถ้าจะลอง  เพราะหากติดตั้งไม่ได้  ระบบมันจะถามเพื่อนำมา ธีมมาตรฐาน

ลองดูครับไม่เสียหายครับ

190
แก้ไขใน style.css ครับ

ให้สังเกตุว่าตัวอักษร  font-size  ให้เปลี่ยนเป็น 12px

ลองดูครับ

193
ปัญหาแบบนี้ยังไม่เคบพบ

พอจะมีภาพประกอบไหมครับ  จะได้ช่วย

194
ปัญหานี้ไม่เคยเจอครับ

พอจะมีภาพประกอบไหมครับ

195
จะเอาออกหรือยังไงครับ

196
ลองแก้ไขภาษาที่ phpmyadmin  ดูนะครับ

197

วิธีที่ 1 โดย thaipic    ที่มา  www.thaiseoboard.com

อ้างถึง
ของผมใช้วิธีกำหนดคุณสมบัติของฟิวล์ subject เป็นแบบ text
และที่แก้ได้ชัวร์ๆคือ กำหนด Encoding จาก utf-8 เป็น tis-620 ไปเลยอ่ะครับ


วิธีที่ 2 โดย Thenetwork ที่มา www.thaiseoboard.com

อ้างถึง
เป็นเพราะ field "subject" ใน table "smf_messages" มันเป็น TINYTEXT ครับ

เอาสคริปต์ sql ดังนี้ไปรัน เพื่อเปลี่ยนฟิลด์นี้ให้เป็น MEDIUMTEXT

ALTER TABLE `micnet_smf`.`smf_messages` MODIFY COLUMN `subject` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;


หรือ
เปิดไฟล์  /Sources/Post.php แล้วหาบรรทัดคำสั่ง

   
อ้างถึง
// Make sure the subject isn't too long - taking into account special characters.
   if ($func['strlen']($form_subject) > 100)
      $form_subject = $func['substr']($form_subject, 0, 100);

   // At this point, we want to make sure the subject isn't too long.
   if ($func['strlen']($_POST['subject']) > 100)
      $_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));

   // Maximum number of characters.
   if ($func['strlen']($_POST['subject']) > 100)
      $_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));
ลองเปลี่ยนตัวเลขจาก 100 ให้เพิ่มขึ้นเป็นซัก 300 - 500 แทน

บอร์ดผมก็เคยเป็นครับ..CreDit Rcw



ข้อความส่วนตัว (ออฟไลน์)
   
   
แก้ไขหัวข้อ ยาวแล้วตัด ༯a>
« เมื่อ: 17 กรกฎาคม, 2008, 02:28:24 pm »
   ตอบโดยอ้างถึงข้อความอ้างถึง
แก้ไขหัวข้อ  ยาวแล้วตัด ༯a>
สาเหตุ
- เกิดจากฐานภาษาของโฮสต์กับบอร์ดที่ลงไม่ตรงกัน
ปัญหา
- บางหัวข้อก้ยังเข้าไปได้ (แต่มันรำคาญสายตา)
- บางหัวข้อขาวจั๊ว

วิธีแก้

วิธีที่ 1 โดย thaipic    ที่มา  www.thaiseoboard.com
อ้างถึง
ของผมใช้วิธีกำหนดคุณสมบัติของฟิวล์ subject เป็นแบบ text
และที่แก้ได้ชัวร์ๆคือ กำหนด Encoding จาก utf-8 เป็น tis-620 ไปเลยอ่ะครับ


วิธีที่ 2 โดย Thenetwork ที่มา www.thaiseoboard.com
อ้างถึง
เป็นเพราะ field "subject" ใน table "smf_messages" มันเป็น TINYTEXT ครับ

เอาสคริปต์ sql ดังนี้ไปรัน เพื่อเปลี่ยนฟิลด์นี้ให้เป็น MEDIUMTEXT

ALTER TABLE `micnet_smf`.`smf_messages` MODIFY COLUMN `subject` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;


หรือ
เปิดไฟล์  /Sources/Post.php แล้วหาบรรทัดคำสั่ง

   // Make sure the subject isn't too long - taking into account special characters.
   if ($func['strlen']($form_subject) > 100)
      $form_subject = $func['substr']($form_subject, 0, 100);

   // At this point, we want to make sure the subject isn't too long.
   if ($func['strlen']($_POST['subject']) > 100)
      $_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));

   // Maximum number of characters.
   if ($func['strlen']($_POST['subject']) > 100)
      $_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));
ลองเปลี่ยนตัวเลขจาก 100 ให้เพิ่มขึ้นเป็นซัก 300 - 500 แทน

บอร์ดผมก็เคยเป็นครับ..CreDit Rcw



วิธีที่ 3  โดย au8ust  ที่มา  www.zone-it.com
อ้างถึง
แก้ได้ด้วยการเข้าไปที่ phpMyAdmin แล้วรัน

โค้ด: [เลือก]
ALTER TABLE smf_messages
CHANGE COLUMN subject subject text;

จากนั้นเปิดไฟล์ Sources/Post.php แล้วหา

     
โค้ด: [เลือก]
// Make sure the subject isn't too long.
      if (strlen($form_subject) > 100)
         $form_subject = substr($form_subject, 0, 100);กับ
โค๊ด:
   // At this point, we want to make sure the subject isn't too long.  Stripslashes first to avoid a trailing slash.
   if (isset($_POST['subject']) && strlen(stripslashes($_POST['subject'])) > 100)
      $_POST['subject'] = addslashes(substr(stripslashes($_POST['subject']), 0, 100));
หาเจอแล้วก็ลบออกทั้งสองที่ หรือจะ comment ไว้ก็ได้


เสร็จแล้วไปไฟล์ Post.template.php ของธีมที่ใช้ แล้วหา
โค๊ด:
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' size="80" maxlength="80" tabindex="1" />
หาเจอแล้วก็ลบส่วนที่ระบุว่า maxlength="50" ออก

198
Fixed or Bogus Bugs / Re: จะแก้พิมพ์ไทยค่ะ
« เมื่อ: 15/11/08, 12:40:49 »
โหลดมาแล้วแตกไฟล์ออก  เอาไฟล์ที่แตกมาทั้งสองไฟล์  ไปไว้ใน  smf\Themes\default\languages

โหลดที่นี่ครับ

199
อัพไว้ใน ไดเร็กคุณเลย ที่โฟลเดอร์ smile  แล้วเข้ามายังบอร์ดที่  ชุดสัญลักษณ์แสดงอารมณ์ > เพิ่มสัญลักษณ์แสดงอารมณ์      



http://club.yotathongthin.net

200
http://custom.simplemachines.org/themes/

กดเลยครับมากมายก่ายกอง  :P

201
จับไฟล์  styles.css  มาตกแต่งใหม่ครับ

202
อัพไปใหม่ครับ ภาพนะ

203
file BoardIndex.template.php

ค้นหา -->>
โค้ด: [เลือก]
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

แทนที่ด้วย -->>
โค้ด: [เลือก]
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>';

//enhance the icon infront the board by DexMore
echo '
        <td class="windowbg" width="50" align="center" valign="middle">
<img src="', $settings['images_url'], '/boardicon/board' . $board['id'] . '.gif" alt="" title="', $board['name'], '" />
</td>';

echo'
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

สร้างโฟลเดอร์ boardicon ใน Themes/.............../images
ตั้งชื่อไฟล์ตาม ID บอร์ด
ตัวอย่าง: board1
สำเร็จเป็น $board/Themes/.............../images/boardicon/board1.gif

แก้ไขความกว้างของตาราง ตามความกว้างของ icon ที่ width="50"




เครดิต http://club.yotathongthin.net

204
Graphics and Templates / Re: เพิ่มเมนูยังไง
« เมื่อ: 9/11/08, 21:30:35 »
จับไฟล์  index.template.php

หา
อ้างถึง
// Show the start of the tab section.



โค๊ดเมนู
โค้ด: [เลือก]
// Show the start of the tab section.
echo '
<center><table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

<===ใส่โค๊ดเมนูส่วนนี้===>

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table></center>';



โค๊ดเมนู
อ้างถึง
// Show the Menu
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '">' , $txt[2000] , '[/url]
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


ไฟล์  index.thai.php , index.thai-utf8.php

เพิ่ม  $txt[2000] = 'ชื่อเมนูใส่เอาเอง';     ก่อน ?>

205
Showcase / จับธีมมาตรฐานมา Modifi
« เมื่อ: 8/11/08, 20:53:08 »
อีกหนึ่งบอร์ดที่ได้ลอง Modifi theme มาตรฐาน  เพื่อคนหูเหล็กครับ 

http://www.yotathongthin.com/rock


206
ว่าจะบอกนะ  แต่เห็นยกนิ้วใส่เลยหมดรมณ์เลย  คิคิ

207
ผู้ดูแล > ปรับแต่งธีมและการวางรูปแบบ


208
ผู้ดูแล > ตั้งค่าธีมปัจจุบัน > จำนวนกระทู้ล่าสุดที่แสดงผลบนหน้ารวมบอร์ด


209
ว่าจะช่วยแต่มองภาพไม่เห็นครับ

210
ไฟล์ Themes/default/index.template.php

หา
โค้ด: [เลือก]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';

ต่อท้ายก่อน }
โค้ด: [เลือก]
// Show logo
echo '
<td class="windowbg2" height="32" align="right">
<img src="http://img134.imageshack.us/img134/4250/logoyl8.gif" border="0" >';


ผลลัพธ์




เพิ่มเติมที่นี่ http://club.yotathongthin.net/

หน้า: 1 ... 5 6 [7] 8