SMF SSI.php Functions

Current Version: 2.1.6

This file is used to demonstrate the capabilities of SSI.php using PHP include functions. The examples show the include tag, then the results of it.

Include Code

To use SSI.php in your page add at the very top of your page before the <html> tag on line 1 of your php file:

Code: [Select]
<?php require("SSI.php"); ?>

Some notes on usage

All the functions have an output method parameter. This can either be "echo" (the default) or "array"

If it is "echo", the function will act normally - otherwise, it will return an array containing information about the requested task. For example, it might return a list of topics for ssi_recentTopics.

This functionality can be used to allow you to present the information in any way you wish.

Additional Guides & FAQ

Need more information on using SSI.php? Check out Using SSI.php article.

Recent Topics Function

Code (simple mode)

Code: [Select]
<?php ssi_recentTopics(); ?>

Code (advanced mode)

Code: [Select]
<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?>

Result

[Forex Funds Indexes Commodites Gold Silver Oil Crypto (เทรดทอง ค่าเงิน MT4 MT5)] exness เปิดบัญชี raw spread กับ zero ตัวใดดีกว่ากัน เทรด gbpusd by junjao Today at 12:55:02 PM
[การเขียน EA ใน MT4 และ MT5] EA MT4/MT5 ตัวใหม่ Grid เปิด Buy/Sell พร้อมกัน มีตัวคูณ 1.3 เท่า by junjao Today at 01:15:04 AM
[การเขียน EA ใน MT4 และ MT5] แปลง mql4 .ex4 เป็น .ex5 ได้หรือไม่ by junjao April 16, 2026, 04:30:26 PM
[Comment แสดงความคิดเห็น (Register)] รับประทานอาหารแบบคีโต คืออะไร by junjao April 16, 2026, 01:27:36 PM
[Comment แสดงความคิดเห็น (Register)] โลก มีขนาดกว้าง * ยาว * สูง เท่าไร และมีน้ำหนักเท่าไร by junjao April 15, 2026, 03:22:07 PM
[Comment แสดงความคิดเห็น (Register)] ความสัมพันธ์ในช่วงอายุ แบ่งออกเป็นช่วงใดบ้าง by junjao April 14, 2026, 01:51:39 PM
[Comment แสดงความคิดเห็น (Register)] เรียนแบบ Block Course คืออะไร by junjao April 12, 2026, 12:49:22 PM
[Comment แสดงความคิดเห็น (Register)] หินปูนในฟัน เกิดขึ้นได้อย่างไร และลดการเกิดหินปูน ทำอย่างไร by junjao April 12, 2026, 12:16:55 PM

Recent Posts Function

Code

Code: [Select]
<?php ssi_recentPosts(); ?>

Result

[Forex Funds Indexes Commodites Gold Silver Oil Crypto (เทรดทอง ค่าเงิน MT4 MT5)] exness เปิดบัญชี raw spread กับ zero ตัวใดดีกว่ากัน เทรด gbpusd by junjao Today at 12:55:02 PM
[การเขียน EA ใน MT4 และ MT5] EA MT4/MT5 ตัวใหม่ Grid เปิด Buy/Sell พร้อมกัน มีตัวคูณ 1.3 เท่า by junjao Today at 01:15:04 AM
[การเขียน EA ใน MT4 และ MT5] แปลง mql4 .ex4 เป็น .ex5 ได้หรือไม่ by junjao April 16, 2026, 04:30:26 PM
[Comment แสดงความคิดเห็น (Register)] รับประทานอาหารแบบคีโต คืออะไร by junjao April 16, 2026, 01:27:36 PM
[Comment แสดงความคิดเห็น (Register)] โลก มีขนาดกว้าง * ยาว * สูง เท่าไร และมีน้ำหนักเท่าไร by junjao April 15, 2026, 03:22:07 PM
[Comment แสดงความคิดเห็น (Register)] ความสัมพันธ์ในช่วงอายุ แบ่งออกเป็นช่วงใดบ้าง by junjao April 14, 2026, 01:51:39 PM
[Comment แสดงความคิดเห็น (Register)] เรียนแบบ Block Course คืออะไร by junjao April 12, 2026, 12:49:22 PM
[Comment แสดงความคิดเห็น (Register)] หินปูนในฟัน เกิดขึ้นได้อย่างไร และลดการเกิดหินปูน ทำอย่างไร by junjao April 12, 2026, 12:16:55 PM

Recent Poll Function

Code

Code: [Select]
<?php ssi_recentPoll(); ?>

Result

Top Topics

Shows top topics by the number of replies or views.

Code (show by number of views)

Code: [Select]
<?php ssi_topTopicsViews(); ?>

Result

Code (show by number of replies)

Code: [Select]
<?php ssi_topTopicsReplies(); ?>

Result

Top Poll Function

Shows the most-voted-in poll.

Code

Code: [Select]
<?php ssi_topPoll(); ?>

Result

Top Poster Function

Shows the top poster's name and profile link.

Code

Code: [Select]
<?php ssi_topPoster(); ?>

Result

Latest Member Function

Shows the latest member's name and profile link.

Code

Code: [Select]
<?php ssi_latestMember(); ?>

Result

Please welcome junjao, our newest member.

Member of the Day

Shows one random member of the day. This changes once a day.

Code

Code: [Select]
<?php ssi_randomMember('day'); ?>

Result

junjao
สอบถาม ได้ที่ jun_jao2000@hotmail.com

Who's Online Function

This function shows who are online inside the forum.

Code

Code: [Select]
<?php ssi_whosOnline(); ?>

Result

2,488 Guests, 1 User
junjao

Log Online Presence

This function logs the SSI page's visitor, then shows the Who's Online list. In other words, this function shows who are online inside and outside the forum.

Code

Code: [Select]
<?php ssi_logOnline(); ?>

Result

2,488 Guests, 1 User
junjao

Login Function

Shows a login box only when user is not logged in.

Code

Code: [Select]
<?php ssi_login(); ?>

Result

 
 

Logout Function

Shows a logout link only when user is logged in.

Code

Code: [Select]
<?php ssi_logout(); ?>

Result

Welcome Function

Greets users or guests, also shows user's messages if logged in.

Code

Code: [Select]
<?php ssi_welcome(); ?>

Result

Welcome to My Community. Please log in or sign up.

Today's Calendar Function

Code

Code: [Select]
<?php ssi_todaysCalendar(); ?>

Result

Today's Birthdays Function

Code

Code: [Select]
<?php ssi_todaysBirthdays(); ?>

Result

Today's Holidays Function

Code

Code: [Select]
<?php ssi_todaysHolidays(); ?>

Result

Today's Events Function

Code

Code: [Select]
<?php ssi_todaysEvents(); ?>

Result

Recent Calendar Events Function

Code

Code: [Select]
<?php ssi_recentEvents(); ?>

Result

Forum Stats

Shows some basic forum stats: total members, posts, topics, boards, etc.

Code

Code: [Select]
<?php ssi_boardStats(); ?>

Result

Total Members: 1
Total Posts: 2,022
Total Topics: 1,997
Total Categories: 5
Total Boards: 23

News Function

Shows random forum news.

Code

Code: [Select]
<?php ssi_news(); ?>

Result

Exness ลงทะเบียนระบบใหม่ ใส่รหัสพาร์ทเนอร์ 73208
https://www.exness.com/boarding/sign-up/a/73208?lng=th
1. เลือกประเทศ ไทย
2. อีเมล์จริงของคุณ
3. รหัสผ่าน
* รหัสผ่านต้องมีความยาว 8-15 ตัว
* ใช้ทั้งอักษรตัวพิมพ์ใหญ่และตัวพิมพ์เล็ก
* ใช้ทั้งตัวเลขและตัวอักษรภาษาอังกฤษ
* ห้ามใช้อักขระพิเศษ (!@#$%^&*., และอื่นๆ)
4. ใส่รหัสพาร์ทเนอร์ 73208
---------------------------------------------------------

Board News Function

Shows the latest posts from read only boards, or a specific board.

Code

Code: [Select]
<?php ssi_boardNews(); ?>

Result

xx NPU Neural Processing Unit คืออะไร

April 11, 2026, 03:43:04 PM by junjao
**NPU (Neural Processing Unit)** คือชิปประมวลผลที่ออกแบบมาเฉพาะสำหรับงานด้าน **AI (ปัญญาประดิษฐ์)** โดยเน้นการคำนวณแบบโครงข่ายประสาทเทียม (Neural Networks) ให้เร็วและประหยัดพลังงานกว่าชิปทั่วไป

---

## 🔧 เปรียบเทียบง่าย ๆ

* **CPU (Central Processing Unit)** → คิดงานทั่วไป (สมองหลัก)
* **GPU (Graphics Processing Unit)** → ประมวลผลภาพ / งานที่ต้องคำนวณพร้อมกันเยอะ
* **NPU (Neural Processing Unit)** → คิดงาน AI โดยเฉพาะ

---

## 🧠 NPU ทำอะไรได้บ้าง

NPU ถูกใช้ในงานที่เกี่ยวกับ AI เช่น:

* 📸 ถ่ายรูปแล้ว "หน้าสวยอัตโนมัติ" (AI Camera)
* 🗣� แปลงเสียงเป็นข้อความ (Speech Recognition)
* 🌐 แปลภาษาแบบเรียลไทม์
* 🤖 รันโมเดล AI บนอุปกรณ์ (ไม่ต้องใช้อินเทอร์เน็ต)
* 📊 วิเคราะห์ข้อมูล / พฤติกรรมผู้ใช้

---

## 📱 ตัวอย่างอุปกรณ์ที่มี NPU

* สมาร์ตโฟน (เช่น iPhone 15, Samsung Galaxy S24)
* ชิปมือถือ เช่น Apple A17 Pro, Qualcomm Snapdragon 8 Gen 3
* โน้ตบุ๊ก AI รุ่นใหม่ (AI PC)

---

## ⚡ จุดเด่นของ NPU

* เร็วมากสำหรับงาน AI
* ใช้พลังงานน้อยกว่า CPU/GPU
* ทำงานแบบ "On-device AI" (ไม่ต้องส่งข้อมูลขึ้น Cloud → ปลอดภัยกว่า)

---

## 🧩 สรุปสั้น ๆ

> **NPU = ชิปสมอง AI** ที่ช่วยให้อุปกรณ์ "คิด วิเคราะห์ และเรียนรู้" ได้เร็วขึ้น โดยไม่ต้องพึ่งอินเทอร์เน็ตตลอดเวลา

-------------------------
0 comments | Write Comment

xx ประชุมทาง line ทำอย่างไร

March 04, 2026, 12:03:12 PM by junjao
การ **ประชุมทาง LINE (วิดีโอคอล/เสียงคอลแบบกลุ่ม)** ทำได้ง่าย ๆ ทั้งในมือถือและคอมพิวเตอร์ 👇

---

## 📱 ประชุมผ่าน LINE บนมือถือ (iPhone / Android)

### วิธีที่ 1: เริ่มจากแชทกลุ่ม

1. เข้าแอป **LINE**
2. เข้าไปที่ **กลุ่มแชท** ที่ต้องการประชุม
3. กดไอคอน 📞 หรือ 🎥 มุมขวาบน
4. เลือก **โทรแบบวิดีโอ** หรือ **โทรด้วยเสียง**
5. สมาชิกในกลุ่มจะได้รับการแจ้งเตือนให้เข้าร่วม

---

### วิธีที่ 2: สร้างห้องประชุมใหม่ (ไม่ต้องมีกลุ่มก่อน)

1. ไปที่หน้า **หน้าแรก (Home)**
2. กด **บริการ (Services)**
3. เลือก **LINE Meeting**
4. กด **สร้างห้องประชุม**
5. ส่งลิงก์เชิญให้คนอื่นเข้าร่วม

---

## 💻 ประชุมผ่าน LINE บนคอม (Windows / Mac)

1. เปิดโปรแกรม **LINE PC**
2. เข้าแชทกลุ่ม
3. กดไอคอน 📞 หรือ 🎥 ด้านบน
4. เลือก Video Call หรือ Voice Call

> ถ้าเครื่องค้างบ่อย (เหมือนที่คุณเคยเจอใน Windows 11)
> แนะนำอัปเดต LINE เวอร์ชันล่าสุด หรือกด Ctrl+Alt+Delete ปิดโปรแกรมแล้วเปิดใหม่ จะช่วยให้เสถียรขึ้นครับ

---

## 👥 รองรับผู้เข้าร่วมได้กี่คน?

* LINE Meeting รองรับได้สูงสุดประมาณ **500 คน**
* วิดีโอพร้อมกันแสดงผลได้หลายคน (ขึ้นกับอุปกรณ์และอินเทอร์เน็ต)

---

## 🎯 ฟีเจอร์สำคัญ

* แชร์หน้าจอ (PC ทำได้สะดวก)
* เปิด/ปิดไมค์
* เปิด/ปิดกล้อง
* เปลี่ยนพื้นหลัง
* ส่งลิงก์เชิญคนเข้าร่วมได้ทันที

-------------------------------------------
0 comments | Write Comment

xx line pc windows11 ทำไมค้างเปิดนาน แก้ไขอย่างไร

March 04, 2026, 11:58:07 AM by junjao
ปัญหา **LINE บน PC (Windows 11) เปิดช้า / ค้างนาน** เกิดได้จากหลายสาเหตุ เช่น ไฟล์แคชเสีย, โปรแกรมโหลดตอนเปิดเครื่องเยอะ, เวอร์ชันเก่า หรือเครื่องทำงานหนัก

ลองแก้ตามลำดับนี้ครับ 👇

---

## ✅ 1. รีสตาร์ทเครื่องก่อน (วิธีง่ายสุด)

บางครั้ง Windows มี process ค้างอยู่
→ กด Restart แล้วลองเปิด LINE ใหม่

---

## ✅ 2. อัปเดต LINE เป็นเวอร์ชันล่าสุด

1. เปิด LINE
2. ไปที่ ⚙ Settings
3. ดูเมนู About → Check for updates

หรือดาวน์โหลดใหม่จากเว็บทางการ LINE

---

## ✅ 3. ล้าง Cache ของ LINE (ได้ผลบ่อยมาก)

### วิธีลบไฟล์แคช

1. กด `Windows + R`
2. พิมพ์:

```
%localappdata%
```

3. กด Enter
4. หาโฟลเดอร์ **LINE**
5. ลบโฟลเดอร์ทั้งหมดในนั้น (ไม่ต้องลบบัญชี)

แล้วเปิด LINE ใหม่

> ⚠️ ไม่ทำให้แชทหาย เพราะข้อมูลอยู่บนเซิร์ฟเวอร์

---

## ✅ 4. ปิด Startup ที่ไม่จำเป็น

ถ้าเปิดเครื่องแล้ว LINE ค้าง อาจเพราะโปรแกรมอื่นกินทรัพยากร

1. กด `Ctrl + Shift + Esc`
2. ไปแท็บ **Startup**
3. Disable โปรแกรมที่ไม่จำเป็น

---

## ✅ 5. ซ่อมแซม (Repair) แอป

1. ไปที่ Settings
2. Apps → Installed apps
3. หา LINE
4. กด Advanced options
5. เลือก **Repair**
   ถ้าไม่หาย → กด **Reset**

---

## ✅ 6. ถอนแล้วติดตั้งใหม่ (วิธีจบ 90%)

1. Uninstall LINE
2. Restart เครื่อง
3. ดาวน์โหลดและติดตั้งใหม่

---

## 🔎 ถ้ายังค้างอยู่ อาจเกิดจาก:

* Windows 11 ยังไม่อัปเดต
* Antivirus บล็อก
* SSD/HDD ใกล้เต็ม
* RAM น้อยกว่า 8GB

---

### 💡 สำหรับเครื่องทำงานหนัก (อย่างคุณที่ใช้งาน MT4/MT5 บ่อย)

บางครั้ง EA Backtest หรือ MT5 Tester ใช้ RAM เยอะ ทำให้ LINE เปิดช้า
แนะนำ:

* ปิด MT5/MT4 ก่อนเปิด LINE
* เพิ่ม RAM ถ้าใช้น้อยกว่า 8GB

------------------------------------------------
0 comments | Write Comment

xx การแก้ไขลง windows11 ไม่เห็น SSD M.2 ต้องโหลด Intel VMD Driver ใส่ USB

February 04, 2026, 06:02:59 PM by junjao
Notebook ที่ลง Asus Vivobook 14 ไม่เห็น Harddisk SSD M.2 ตอนลง

เลยไปซื้อ M.2 ตัวใหม่ก็ไม่เห็น

ทางร้าน Advice สาขาฟอจูน จึงแนะนำให้ดาวโหลด Driver (ลองแล้วไม่เห็นจึงไม่ได้ซื้อ ขอบคุณครับ)

ขั้นตอน โหลด Intel VMD Driver ใส่ USB

ใช้กับ windows10 กับ 11

ปัญหาที่พบบ่อย

❌ ไม่เห็น SSD ตอนลง

ต้องเข้า BIOS → SATA Mode = AHCI

บางรุ่นต้องโหลด Intel VMD Driver ใส่ USB

❌ เปิด Secure Boot แล้วลงไม่ได้

ปิดก่อน แล้วค่อยเปิดหลังลงเสร็จ


0 comments | Write Comment

xx ทำบูต windows 11 แบ่งเป็น 2 บูตอย่างไร

December 27, 2025, 08:52:59 PM by junjao
การทำ **Windows 11 แบบ 2 บูต (Dual Boot)** คือการติดตั้ง Windows 11 สองระบบแยกกันในเครื่องเดียว เลือกบูตตอนเปิดเครื่องได้
ผมอธิบายแบบ **ทำจริงได้ ปลอดภัย และไม่ลบข้อมูลเดิม** 👇

---

## 🧩 รูปแบบที่นิยม

1. **Windows 11 + Windows 11** (เช่น งาน / ส่วนตัว)
2. **Windows 11 + Windows 10**
3. **Windows 11 + Linux** (ข้ามไปได้ ถ้าต้องการ)

คำตอบนี้เน้น **Windows 11 + Windows 11**

---

## ✅ สิ่งที่ต้องเตรียม

* แฟลชไดรฟ์ ≥ **8GB**
* ไฟล์ **Windows 11 ISO**
* โปรแกรม **Rufus**
* พื้นที่ว่างใน Disk อย่างน้อย **50–100GB**
* แนะนำให้ **สำรองข้อมูลก่อน**

---

## 🛠� ขั้นตอนที่ 1: แบ่งพาร์ทิชัน (ไม่ลบข้อมูล)

1. กด **Win + X → Disk Management**
2. คลิกขวาไดรฟ์ `C:` → **Shrink Volume**
3. ใส่ขนาดที่ต้องการ (เช่น 100000 MB = 100GB)
4. จะได้พื้นที่ **Unallocated (ว่าง)** ← *อย่าสร้างฟอร์แมต*

📌 พื้นที่นี้ไว้ลง Windows ตัวที่ 2

---

## 🔥 ขั้นตอนที่ 2: สร้าง USB Boot Windows 11

1. เปิด **Rufus**
2. เลือก

   * Device → USB
   * Boot selection → Windows 11 ISO
   * Partition scheme → **GPT**
   * Target system → **UEFI**
3. กด **Start**
4. (ถ้าเครื่องเก่า เลือก bypass TPM / Secure Boot ได้)

---

## 🚀 ขั้นตอนที่ 3: ติดตั้ง Windows 11 ตัวที่ 2

1. รีสตาร์ทเครื่อง → กด **F12 / F11 / Esc** (เลือก Boot Menu)
2. เลือกบูตจาก **USB**
3. เลือก **Custom: Install Windows only**
4. เลือกพื้นที่ **Unallocated**
5. กด **Next** → รอติดตั้ง

⚠️ ห้ามเลือก Drive C: เดิมเด็ดขาด

---

## 🔁 ขั้นตอนที่ 4: เลือก OS ตอนเปิดเครื่อง

หลังติดตั้งเสร็จ ทุกครั้งที่เปิดเครื่องจะขึ้นเมนู:

```
Choose an operating system
• Windows 11
• Windows 11
```

---

## ✏️ เปลี่ยนชื่อ / ตั้งค่า OS (แนะนำ)

1. เข้า Windows
2. กด **Win + R → msconfig**
3. แท็บ **Boot**
4. เปลี่ยนชื่อ เช่น

   * Windows 11 – Work
   * Windows 11 – Personal
5. ตั้ง Default OS และ Timeout

---

## 🧠 คำแนะนำจากประสบการณ์

* ใช้ **SSD ลูกเดียวก็ได้** (แต่ 2 ลูกจะเสถียรกว่า)
* แยกไว้:

  * OS 1 → เทรด / EA / งาน
  * OS 2 → ใช้ทั่วไป / ทดลองโปรแกรม
* ถ้าใช้ EA / MT4 / MT5 → dual boot ช่วยลดปัญหา crash

-------------------------------------------------------------
0 comments | Write Comment

Menubar Function

Displays a menu bar, like one displayed at the top of the forum.

Code

Code: [Select]
<?php ssi_menubar(); ?>

Result

Quick Search Function

Code

Code: [Select]
<?php ssi_quickSearch(); ?>

Result

Recent Attachments Function

Code

Code: [Select]
<?php ssi_recentAttachments(); ?>

Result

Show Single Poll

Shows a poll in the specified topic.

Code

Code: [Select]
<?php ssi_showPoll($topicID); ?>

Result

Not shown because it needs specific topic ID that contains a poll.

Show Single Post

Fetches a post with a particular IDs. By default will only show if you have permission to the see the board in question. This can be overridden by passing the 2nd parameter as true.

Code

Code: [Select]
<?php ssi_fetchPosts($postIDs, $isOverride); ?>

Result

Not shown because it needs a specific post ID.

Show Single Member

Shows the specified member's name and profile link.

Code

Code: [Select]
<?php ssi_fetchMember($memberIDs); ?>

Result

Not shown because it needs a specific member ID.

Show Group Members

Shows all members in a specified group.

Code

Code: [Select]
<?php ssi_fetchGroupMembers($groupIDs); ?>

Result

Not shown because it needs specific membergroup IDs.

Home Page Sample

This sample uses the following features: ssi_recentTopics(), ssi_logOnline(), ssi_welcome(), and ssi_boardNews(). ssi_recentTopics() is fetched using the array method, to allow further customizations on the output.

Code

Code: Select
<?php require("SSI.php"); ?> <!DOCTYPE html> <html> <head> <title>SSI.php example for home page</title> <style> body { font-family: Arial, Tahoma, sans-serif; font-size: 80%; background: #DFDFDF; color: #FFFFFF; margin: 0 } ul,ol { padding-left: 19px; margin: 0; } li { font-size: 11px; } h1,h2,h3 { margin: 0; padding: 0; } h3 { font-size: 15px; } a:link,a:visited { color: #FF9000; text-decoration: none; } a:hover { text-decoration: underline; } #container { background: #52514E; width: 100%; border: 1px solid midnightblue; line-height: 150%; margin: 0; } #header,#footer { color: lightgray; background-color: #2A2825; clear: both; padding: .5em; } #leftbar { background: #DF7E00; float: left; width: 160px; margin: 0; padding: 1em; } #leftbar a { color: #000000; text-decoration: underline; } #content { margin-left: 190px; padding: 1em; } #navigation { float: right; } #navigation a:link,#navigation a:visited { color: #FF9000; } </style> </head> <body> <div id="container"> <div id="header"> <div id="navigation"> <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> </div> <h1 class="header">YourWebsite.com</h1> </div> <div id="leftbar"> <h3>Recent Forum Topics</h3> <ul> <?php // Using array method to show shorter display style. $topics = ssi_recentTopics(8, null, null, 'array'); foreach ($topics as $topic) { // Uncomment the following code to get a listing of array elements that SMF provides for this function. // echo '<pre>', print_r($topic), '</pre>'; echo ' <li><a href=\"', $topic['href'], '\">', $topic['subject'], '</a> ', $txt['by'], ' ', $topics[$i]['poster']['link'], '</li>'; } unset($topics); ?> </ul><br> <h3>Online Users</h3> <?php ssi_logOnline(); ?> </div> <div id="content"> <?php ssi_welcome(); ?><br><br> <h2>News</h2> <?php ssi_boardNews(); ?> </div> <div id="footer"> <a target="_blank" rel="noopener" rel="license" href="https://creativecommons.org/licenses/publicdomain/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/publicdomain/88x31.png"></a> This sample website layout is dedicated to the <a target="_blank" rel="noopener" rel="license" href="https://creativecommons.org/licenses/publicdomain/">Public Domain</a>. </div> </div> </body> </html>

Result