เม.ย 29, 2024, 07:54 หลังเที่ยง

ข่าว:

SMF - เพิ่งติดตั้ง!


กระทู้ล่าสุด

หน้า 1 2 3 4 5 6 7
31
ท่องเที่ยว / ต่อ: Scien46 เที่ยวหัวหิน 9-11...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 11:17 หลังเที่ยง

SciEng46 เที่ยวหัวหิน 10 มค. 58

ตื่นแต่เช้า มาที่นี่เลย ร้านเจ๊กเปี๊ยะ



คนเยอะจริงๆ ต้องแบ่งๆกันนั่ง เอ้า..สั่งเลย





อิ่มท้องแล้วก็เที่ยวต่อ น้ำตกป่าละอู



ใบใหญ่กว่าหน้าอีกนะ



น้ำตกป่าละอู ขึ้นกับอุทยายแห่งชาติแก่งกระจาน



เดินสักพักก็มาถึงแล้ว น้ำตกป่าละอูชั้นที่ 1



เดินกันไปอีกนิด ก็ถึงแล้ว



น้ำตกป่าละอูชั้นที่ 2 เห็นป้ายไหม ...ชั้นที่ 3 อีก 50 เมตร เอง





มาเร็ว...มาชมวิว แล้วไปต่อ











ค่อยๆเดิน เดี๋ยวหล่น...



มาดู รูในหิน หรือ หินมีรู



ใจดีจัง เลี้ยงปลาด้วย ไป ไปต่อ ไม่ถึงชั้นที่ 3 เสียที่





พักสักหน่อยนะ วิวดี...



อ้าว...ไม่เห็นชั้นที่ 3 เลย มาถึงขั้นที่ 4 แล้ว





ขั้นที่ 4 นี่สวยที่สุดแล้ว ตกลงว่าจะไม่ไปต่อแล้ว นั่งชมวิวสักพัก



สวยนะ ชั้นที่ 4 นี่



ปลาก็มาก ขึ้นมากินข้างบนเลย





ชมวิวกันพอหายเหนื่อย กลับดีกว่า



ขากลับ แป๊บเดียวถึง



ไปเที่ยวต่อ ตลาดน้ำหัวหินสามพันนาม





มีเด็กเลี้ยงแกะด้วย



เดินเที่ยวกันตามอัธยาศัย







ขึ้เกียจเดิน ขึ้นรถไฟก็ได้





ออกจากตลาดน้ำก็มา เพลินวาน เที่ยวกันเพลินๆ













เย็นๆก็อาหารเย็น แสงไทยซีฟู้ด



อร่อยมากนะ สมพงษ์



แล้วก็ไปเดินเที่ยวตลาดกลางคืน มาจบที่ร้านน้ำเต้าหู้ เต้าฮวย กินจนน้ำเต้าหู้เค้าหมดเลย กลับไปนอนดีกว่า พรุ่งนี้พบกันใหม่



ใครอยากได้รูปขนาดใหญ่ ไม่มีการ Resize ไว้ขยายกันได้เต็มที่ก็ Download จากนี่ได้เลย
ชื่อไฟล์ Huahin 580110.rar ของวันที่ 10 มค. 58 ขนาดไฟล์ 270 MB. รวม 45 รูป
คำเตือน "แต่อย่ารอช้านะครับ เพราะมันกินเนื้อที่มาก ถ้า Server เต็มอาจต้องลบออก"
32
ท่องเที่ยว / Scien46 เที่ยวหัวหิน 9-11 มค. ...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 11:16 หลังเที่ยง

SciEng46 เที่ยวหัวหิน 9 มค. 58

พอมาถึง เดอะ เวเนเชีย จุดนัดพบ ก็เริ่มเที่ยวเลยครับ



ที่นี่ตกแต่งสไตล์อิตาลี นี่ก็ยกเวนิสมาไว้ที่นี่เลย





มาถึงเวนิสแล้วก็ต้องมานั่งเรือกอนโดล่าสักหน่อย









อ้าว...มาอีกลำแล้ว





มาท้าดวนถ่ายรูปสวนกันเลย





ไปทำอะไรอยู่ข้างบนหละ...





ขึ้นมาคุยกันดีกว่า ไม่ได้เจอกันนานแล้ว











คุยกันพอสังเขป ก่อนไปต่อชมวิวหน่อย จัตุรัสเซ็นต์มาร์ค และหอระฆัง ถือว่าเป็นสัญลักษณ์ของเมืองเวนิส เคยไปไหม ...ไม่เคยไป...



เอาของมาเก็บที่ที่พักก่อนที่ หาดหฤทัย บรรยากาศภายในห้องพัก สงบ เงียบ สบาย





วิวหลังห้อง มีหัวใจด้วย



ถึงเวลาไปหาอาหารกลางวันรับประทาน ที่นี่เลยครับ ครัวคุณแมว



เอ้า...เชิญดื่ม...



เพลิดเพลินกับอาหารอร่อยกันตามอัธยาศัย









อิ่มแล้ว ไปเที่ยวต่อ สถานีรถไฟหัวหิน









เขาติดป้ายไว้ว่า ห้ามตีระฆัง อีฉันขอแค่สั่นๆละกัน



จ่าเฉยดูตัวใหญ่จังนะ





นี่รูปใครกัน อ้อ..มีเพื่อนเรานี่นา...



ออกจากสถานีรถไฟก็มาที่จุดชมวิวหินเหล็กไฟ







รวมหมู่กันหน่อย ใครมากันบ้าง











ถ่ายรูปกันพอสมควรแก่เวลาก็มาต่อที่ ว้ดห้วยมงคล หลวงพ่อทวดองค์ใหญ่ที่สุดในโลก



แล้วก็ไปชม ไร่องุ่นหัวหินฮิลล์ ต้องมาชิมไวน์ให้ได้



ดูหน่อยซิ ใครมาบ้าง





ที่เค้ากว้างขวางจัง ไปหาไวน์ดื่มดีกว่า



แช่ไว้แล้ว เดี๋ยวเสร็จเรา



หามุมดีดีหน่อย



ที่นี่ดีกว่ามั้ง...



ตรงนี้ดีกว่านะ



มามา หาที่นั่ง





ได้ที่แล้ว ไวน์มาแล้ว ดื่ม ดื่ม ...











ที่นี่นะ วันหน้ามาใหม่



และแล้วก็ถึงเวลา Dinner และสนุกกันต่อกับ Karaoke ที่ บ้านทะเลดาว ไม่ได้เอากล้องไป ใช้กล้องมือถือถ่าย











ใครอยากได้รูปขนาดใหญ่ ไม่มีการ Resize ไว้ขยายกันได้เต็มที่ก็ Download จากนี่ได้เลย
ชื่อไฟล์ Huahin 580109.rar ของวันที่ 9 มค. 58 ขนาดไฟล์ 320 MB. รวม 59 รูป
คำเตือน "แต่อย่ารอช้านะครับ เพราะมันกินเนื้อที่มาก ถ้า Server เต็มอาจต้องลบออก"
33
ท่องเที่ยว / ต่อ: บ้านอีตู้ ลาวใต้ 7-9 ธค. ...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 12:18 หลังเที่ยง

บ้านอีตู้ ลาวใต้ 9 ธค. 57






























































































































34
ท่องเที่ยว / ต่อ: บ้านอีตู้ ลาวใต้ 7-9 ธค. ...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 12:16 หลังเที่ยง

บ้านอีตู้ ลาวใต้ 8 ธค. 57










































































































































35
ท่องเที่ยว / บ้านอีตู้ ลาวใต้ 7-9 ธค. 57
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 12:14 หลังเที่ยง

บ้านอีตู้ ลาวใต้ 7 ธค. 57
























































































































































36
ท่องเที่ยว / ต่อ: สวนนพรัตน์ รีสอร์ท 5-6 ธค...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 12:06 หลังเที่ยง

สวนนพรัตน์ รีสอร์ท 6 ธค. 57

สวนนพรัตน์ รีสอร์ท
http://www.nopparatgarden.com/
























































































































37
ท่องเที่ยว / สวนนพรัตน์ รีสอร์ท 5-6 ธค. 57
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 12:05 หลังเที่ยง

สวนนพรัตน์ รีสอร์ท 5 ธค. 57

สวนนพรัตน์ รีสอร์ท
http://www.nopparatgarden.com/










































































































































38
SMF / ต่อ: วิธีเพิ่มความยาวตัวอักษรข...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 09:17 ก่อนเที่ยง

สำหรับรุ่น SMF 2.1 RC2 แก้ที่ 2 ไฟล์เดิมดังนี้

แก้ไขไฟล์ Post.template.php ที่อยู่ใน Themes/default/Post.template.php

ลองใช้ Find
maxlength="80"
พบ 2 แห่ง แต่แก้ที่เดียว อันหลัง ตามนี้

/**
 * Prints the input fields in the form's header (subject, message icon, guest name & email, etc.)
 *
 * Mod authors can use the 'integrate_post_end' hook to modify or add to these (see Post.php).
 *
 * Theme authors can customize the output in a couple different ways:
 * 1. Change specific values in the $context['posting_fields'] array.
 * 2. Add an 'html' element to the 'label' and/or 'input' elements of the field they want to
 *    change. This should contain the literal HTML string to be printed.
 */
function template_post_header()
{
   global $context, $txt;

   // Sanity check: submitting the form won't work without at least a subject field
   if (empty($context['posting_fields']['subject']) || !is_array($context['posting_fields']['subject']))
   {
      $context['posting_fields']['subject'] = array(
         'label' => array('html' => '<label for="subject" id="caption_subject">' . $txt['subject'] . '</label>'),
         'input' => array('html' => '<input type="text" name="subject" value="' . $context['subject'] . '" size="80" [glow=red,2,300]maxlength="80"[/glow] required>')
      );
   }

   // THEME AUTHORS: Above this line is a great place to make customizations to the posting_fields array

แก้ maxlength จาก 80 เป็น 200 ครับ

/**
 * Prints the input fields in the form's header (subject, message icon, guest name & email, etc.)
 *
 * Mod authors can use the 'integrate_post_end' hook to modify or add to these (see Post.php).
 *
 * Theme authors can customize the output in a couple different ways:
 * 1. Change specific values in the $context['posting_fields'] array.
 * 2. Add an 'html' element to the 'label' and/or 'input' elements of the field they want to
 *    change. This should contain the literal HTML string to be printed.
 */
function template_post_header()
{
   global $context, $txt;

   // Sanity check: submitting the form won't work without at least a subject field
   if (empty($context['posting_fields']['subject']) || !is_array($context['posting_fields']['subject']))
   {
      $context['posting_fields']['subject'] = array(
         'label' => array('html' => '<label for="subject" id="caption_subject">' . $txt['subject'] . '</label>'),
         'input' => array('html' => '<input type="text" name="subject" value="' . $context['subject'] . '" size="80" [glow=red,2,300]maxlength="200"[/glow] required>')
      );
   }

   // THEME AUTHORS: Above this line is a great place to make customizations to the posting_fields array

แก้ไขไฟล์ Post.php ที่อยู่ใน Sources/Post.php อีก 2 ที่

ลองใช้ Find
Make sure the subject isn't too long
พบ 2 แห่งคือ

// In order to keep the approval status flowing through, we have to pass it through the form...
      $context['becomes_approved'] = empty($_REQUEST['not_approved']);
      $context['show_approval'] = isset($_REQUEST['approve']) ? ($_REQUEST['approve'] ? 2 : 1) : 0;
      $context['can_announce'] &= $context['becomes_approved'];

      // Set up the inputs for the form.
      $form_subject = strtr($smcFunc['htmlspecialchars']($_REQUEST['subject']), array("\r" => '', "\n" => '', "\t" => ''));
      $form_message = $smcFunc['htmlspecialchars']($_REQUEST['message'], ENT_QUOTES);

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

และ
// Add special html entities to the subject, name, and email.
   $_POST['subject'] = strtr($smcFunc['htmlspecialchars']($_POST['subject']), array("\r" => '', "\n" => '', "\t" => ''));
   $_POST['guestname'] = $smcFunc['htmlspecialchars']($_POST['guestname']);
   $_POST['email'] = $smcFunc['htmlspecialchars']($_POST['email']);
   $_POST['modify_reason'] = empty($_POST['modify_reason']) ? '' : strtr($smcFunc['htmlspecialchars']($_POST['modify_reason']), array("\r" => '', "\n" => '', "\t" => ''));

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


แก้จาก 100 เป็น 200 ครับ

// In order to keep the approval status flowing through, we have to pass it through the form...
      $context['becomes_approved'] = empty($_REQUEST['not_approved']);
      $context['show_approval'] = isset($_REQUEST['approve']) ? ($_REQUEST['approve'] ? 2 : 1) : 0;
      $context['can_announce'] &= $context['becomes_approved'];

      // Set up the inputs for the form.
      $form_subject = strtr($smcFunc['htmlspecialchars']($_REQUEST['subject']), array("\r" => '', "\n" => '', "\t" => ''));
      $form_message = $smcFunc['htmlspecialchars']($_REQUEST['message'], ENT_QUOTES);

      // Make sure the subject isn't too long - taking into account special characters.
      if ($smcFunc['strlen']($form_subject) > [glow=red,2,300]200[/glow])
         $form_subject = $smcFunc['substr']($form_subject, 0, [glow=red,2,300]200[/glow]);

และ
// Add special html entities to the subject, name, and email.
   $_POST['subject'] = strtr($smcFunc['htmlspecialchars']($_POST['subject']), array("\r" => '', "\n" => '', "\t" => ''));
   $_POST['guestname'] = $smcFunc['htmlspecialchars']($_POST['guestname']);
   $_POST['email'] = $smcFunc['htmlspecialchars']($_POST['email']);
   $_POST['modify_reason'] = empty($_POST['modify_reason']) ? '' : strtr($smcFunc['htmlspecialchars']($_POST['modify_reason']), array("\r" => '', "\n" => '', "\t" => ''));

   // At this point, we want to make sure the subject isn't too long.
   if ($smcFunc['strlen']($_POST['subject']) > [glow=red,2,300]200[/glow])
      $_POST['subject'] = $smcFunc['substr']($_POST['subject'], 0, [glow=red,2,300]200[/glow]);
39
SMF / วิธีเพิ่มความยาวตัวอักษรของหัว...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 09:15 ก่อนเที่ยง

วิธีเพิ่มความยาวตัวอักษรของหัวข้อกระทู้

โดยปรกติหัวข้อกระทู้จะตั้งได้ยาว 80 ตัวอักษรภาษาอังกฤษ แต่ถ้าเป็นภาษาไทยจะได้ไม่ถึง 80 ตัวอักษรจริงๆ
ทำให้อาจน้อยเกินไปจนไม่ค่อยสื่อความหมายสำหรับภาษาไทย เรามีวิธีเพิ่มความยาวตัวอักษรของหัวข้อกระทู้ดังนี้

แก้ไขไฟล์ Post.template.php ที่อยู่ใน Themes/default/Post.template.php

// Now show the subject box for this post.
   echo '
      <dt>
         <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
      </dt>
      <dd>
         <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" [glow=red,2,300]maxlength="80"[/glow] class="input_text" />
      </dd>
      <dt class="clear_left">
         ', $txt['message_icon'], ':
      </dt>
      <dd>

ลองแก้ maxlength จาก 80 เป็น 200 ดูนะครับ

// Now show the subject box for this post.
   echo '
      <dt>
         <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
      </dt>
      <dd>
         <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" [glow=red,2,300]maxlength="200"[/glow] class="input_text" />
      </dd>
      <dt class="clear_left">
         ', $txt['message_icon'], ':
      </dt>
      <dd>

บางคนทำแค่นี้ก็ใช้ได้ (อาจเป็น Version อื่น) แต่ของผมต้องแก้อีกไฟล์นึงครับที่ไฟล์ Post.php ที่อยู่ใน Sources/Post.php อีก 2 ที่คือ

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

และ

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


แก้จาก 100 เป็น 200 ครับ

// Make sure the subject isn't too long - taking into account special characters.
if ($smcFunc['strlen']($form_subject) > [glow=red,2,300]200[/glow])
   $form_subject = $smcFunc['substr']($form_subject, 0, [glow=red,2,300]200[/glow]);

และ

// At this point, we want to make sure the subject isn't too long.
if ($smcFunc['strlen']($_POST['subject']) > [glow=red,2,300]200[/glow])
   $_POST['subject'] = $smcFunc['substr']($_POST['subject'], 0, [glow=red,2,300]200[/glow]);


แก้ได้มากที่สุดคือ 255 นะครับ เท่านี้ก็เพิ่มความยาวตัวอักษรของหัวข้อกระทู้ได้ยาววววว......แล้วครับ

เครดิตจาก
How to increase the Subject length
http://www.simplemachines.org/community/index.php?topic=359405.0
40
SMF / การ Convert database และ data ...
กระทู้ล่าสุด โดย Annop - พ.ย 08, 2021, 09:13 ก่อนเที่ยง

การ Convert database และ data ให้เป็น UTF-8 character set

ถ้าตอน Install SMF ไม่ได้เลือกที่หัวข้อ UTF-8 Character Set เอาไว้ จะพบว่า
ในหมวด บำรุงรักษา จะมีหัวข้อ Convert the database and data to UTF-8 ตามรูป



ให้ทำการ Convert ให้เป็น UTF-8 character set ทันทีเพราะ UTF-8 เป็น International character set
โดยเฉพาะ Web Board ที่มีหลายภาษา เช่น ไทย, English โดยคลิกที่ Run task now จะได้ตามภาพ



มักจะมีการเตือนให้ Backup database ก่อนทำการ Convert มิฉะนั้นอาจทำให้ database เสียหายได้
แต่ผมไม่สนใจทำต่อเลย ที่ไม่สนใจเพราะ Board นี้เพิ่งเริ่ม ยังไม่มีอะไรมากนัก พังก็ทำใหม่ ไม่เสียหายมาก
แต่ถ้าใช้มานานแล้ว พังแล้วเสียหายมาก ก็ควร Backup database ก่อนทำการ Convert
เมื่อพร้อมแล้ว คลิกที่ Proceed รอสักพัก จะเห็นตอบกลับมาว่า บำรุงรักษาเสร็จแล้ว



เมื่อทำขั้นตอนนี้เสร็จแล้ว เข้าไปดูอีกที จะพบว่าหัวข้อ Convert the database and data to UTF-8 เปลี่ยนเป็น
Convert HTML-entities to UTF-8 characters ตามรูป



ทำการ Convert เลยครับโดยคลิกที่ Run task now



ของผมมีคำเตือนขึ้นมาว่า มันไม่ทำงาน แต่ไม่เป็นไร ก็คลิกที่ ดำเนินการต่อไป ก็จะเห็นว่า บำรุงรักษาเสร็จแล้ว



เป็นอันเสร็จแล้วครับขั้นตอนการ Convert database และ data ให้เป็น UTF-8 character set
หน้า 1 2 3 4 5 6 7