ติดต่อลงโฆษณา [email protected]

ผู้เขียน หัวข้อ: เพิ่งติดตั้งบอร์ดใหม่ SMF ไปเยี่ยมหน่อยครับ (กรณีศึกษาการทำบอร์ด SMF 1.1.6)  (อ่าน 4088 ครั้ง)

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

ออฟไลน์ teXtreme

  • New Member
  • *
  • กระทู้: 2
    • ดูรายละเอียด
ที่
http://www.cyberwakeup.co.cc
 ;D

วิธีการเขียน เอา 10 กระทู้ มาไว้ด้านหน้า หลัก (Home) แรก (index.php) ของเว็บไซต์
ไปค้นเจอวิธีการง่ายๆ จากบอร์ด JustUser.net ครับ
http://www.justusers.net/forum/index.php?topic=14.0

ตัวควบคุมการแสดงผล ของ 10 กระทู้ มาจากไฟล์ที่เราสร้างขึ้น
เช่นคุณตั้งชื่อว่า showthread.php หรือ viewtopics.php หรือ viewthread.php หรือ showtopics.php เป็นต้น
ตัวที่ทำให้แสดงผลข้อความกระทู้ชี้มายัง index.php หน้า home page คือ iframe ครับ กรณีปรับแต่งแนะนำให้ใช้ Dreamweaver ช่วยแก้ไขด้วยเพราะบางอย่างหลายท่านอาจจะมองไม่เห็นหรือทำไม่เป็น มันจะมีตัวปรับแต่งแก้ไขวาง Table ได้ง่ายขึ้น


ตัวอย่าง code จากไฟล์ showtopic.php

<?php require("/home/ใส่แค่ชื่อ domainname ที่ท่านจดชื่อไว้พอครับไม่ต้องใส่ .com .นู้นนี่ เช่น smfthai /public_html/forum/SSI.php"); ?>  ตรงนี้แนะนำว่าให้ไปเปิดดูไฟล์ SSI.php ด้วยครับ เปิดศึกษานะครับ หรือดูผ่านๆ ก็ได้

<html>

<head>
<meta http-equiv="Content-Language" content="th">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Show New Topics</title>
<base target="_blank">
<link href="bodycss.css" rel="stylesheet" type="text/css">
<link href="csstext.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-family: Tahoma}
-->
</style>
</head>

<body>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
 
  <tr>
    <td width="650" height="100" align="left" valign="top"><span class="body">
      <?php ssi_recentTopics(30); ?>
<<<---- บรรทัดนี้ ให้ไปเปิดไฟล์ ssi_examples.php โดยให้ดูตั้งแต่ tag ของ body ครับ กรณีอยากเอาส่วนใดของบอร์ด (เดี๋ยวดูกันว่ามันมีอะไรบ้าง)
    </span></td>
  </tr>
</table>
<p class="body">&nbsp; </p>
</body>


</html>

   <body>
         <h1>SMF SSI.php Functions</h1>
         Current Version: 1.1

         

         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. Examples are separated by horizontal rules.


      

         

         To use SSI.php in your page add at the very top of your page before the &lt;html&gt; tag on line 1:

         <div style="font-family: monospace;">
            &lt;?php require(&quot;<?php echo addslashes($user_info['is_admin'] ? realpath($boarddir . '/SSI.php') : 'SSI.php'); ?>&quot;); ?&gt;
         </div>
         


      

         <h3>Recent Topics Function: &lt;?php ssi_recentTopics(); ?&gt;</h3> <<<-- ดึงการตอบหัวข้อล่าสุดมาแสดงผล
         <font face="Tahoma" size="3"><?php ssi_recentTopics(); flush(); ?></font>

      

         <h3>Recent Posts Function: &lt;?php ssi_recentPosts(); ?&gt;</h3> <<<-- ดึงการตอบโพสในกระทู้ล่าสุดที่ตอบไปแล้วมาแสดงผล
         <?php ssi_recentPosts(); flush(); ?>

      

         <h3>Recent Poll Function: &lt;?php ssi_recentPoll(); ?&gt;</h3> <<<-- ดึงการโพสโพลล่าสุด แสดงผล
         <?php ssi_recentPoll(); flush(); ?>

      

         <h3>Top Boards Function: &lt;?php ssi_topBoards(); ?&gt;</h3> <<<-- ดึงการตอบกระทู้มากสุดมาแสดงผล
         <?php ssi_topBoards(); flush(); ?>

      

         <h3>Top Topics by View Function: &lt;?php ssi_topTopicsViews(); ?&gt;</h3> <<<-- ดึงหัวข้อกระทู้ที่มีคนเข้าชมมากสุดมาแสดงผล
         <?php ssi_topTopicsViews(); flush(); ?>

      

         <h3>Top Topics by Replies Function: &lt;?php ssi_topTopicsReplies(); ?&gt;</h3> <<<-- ดึงหัวข้อที่มีการตอบกลับมากที่สุดมาแสดงผล
         <?php ssi_topTopicsReplies(); flush(); ?>

      

         <h3>Top Poll Function: &lt;?php ssi_topPoll(); ?&gt;</h3> <<-- ดึงการโหวตในโพลของกระทู้มากที่สุดมาแสดงผล
         <?php ssi_topPoll(); flush(); ?>

      

         <h3>Top Poster Function: &lt;?php ssi_topPoster(); ?&gt;</h3> <<-- ดึงผู้ใช้หรือสมาชิกที่มีการตอบมากสุดมาแสดงผล
         <?php ssi_topPoster(); flush(); ?>

      

         <h3>Topic's Poll Function: &lt;?php ssi_showPoll($topic); ?&gt;</h3> <<-- ดึงผลการโหวตมาแสดงผล
         <?php ssi_showPoll(); flush(); ?>

      

         <h3>Latest Member Function: &lt;?php ssi_latestMember(); ?&gt;</h3> <<<-- ดึงสมาชิกล่าสุดที่โพสถามหรือตอบมาแสดงผล (สมาชิกใหม่มั้งครับ)
         <?php ssi_latestMember(); flush(); ?>

      

         <h3>Board Stats: &lt;?php ssi_boardStats(); ?&gt;</h3> <<<-- ดึงสถิติของบอร์ดมาแสดงผล
         <?php ssi_boardStats(); flush(); ?>

      

         <h3>Who's Online Function: &lt;?php ssi_whosOnline(); ?&gt;</h3> <<-- ดึงข้อมูลว่าผู้ใช้ใดบ้างที่กำลังออนไลน์ในบอร์ด
         <?php ssi_whosOnline(); flush(); ?>

      

         <h3>Log Online Presence + Who's Online Function: &lt;?php ssi_logOnline();  ?&gt;</h3> <<-- ดึงข้อมูลการออนไลน์ของผู้ใช้ในขณะนั้น
         <?php ssi_logOnline(); flush(); ?>

      

         <h3>Welcome Function: &lt;?php ssi_welcome(); ?&gt;</h3> <<<-- ดึงข้อมูลแสดงผลคำต้อนรับ "ยินดีต้อนรับ"
         <?php ssi_welcome(); flush(); ?>

      

         <h3>News Function: &lt;?php ssi_news(); ?&gt;</h3> <<<-- ดึงข้อมูลข่าวที่ Admin โพสไว้มาแสดงผล
         <?php ssi_news(); flush(); ?>

      

         <h3>Board News Function: &lt;?php ssi_boardNews(); ?&gt;</h3> <<<-- ดึงข้อมูลข่าวภายในบอร์ดที่โพสโดย Admin หรือ Mod
         <?php ssi_boardNews(); flush(); ?>

      

         <h3>Menubar Function: &lt;?php ssi_menubar(); ?&gt;</h3> <<<-- อันนี้ผมไม่แน่ใจแต่คิดว่าเป็นส่วนที่ดึงการทำงานของ Menu ของบอร์ด มาไว้หน้าแรก ผมยังไม่ได้ลองครับ
         <?php ssi_menubar(); flush(); ?>

      

         <h3>Quick Search Function: &lt;?php ssi_quickSearch(); ?&gt;</h3> <<-- ดึงความสามารถของช่องค้นหากระทู้มาไว้หน้าแรกของ home page (หน้าบ้าน / หน้าหลัก ของเว็บ)
         <?php ssi_quickSearch(); flush(); ?>

      

         <h3>Login Function: &lt;?php ssi_login(); ?&gt;</h3> <<-- ดึงความสามารถกระทำช่อง Login เข้าสู่ระบบมาไว้หน้าแรกของเว็บ
         <?php ssi_login(); flush(); ?>

      

         <h3>Log Out Function: &lt;?php ssi_logout(); ?&gt;</h3> <<<-- ดึงความสามารถกระทำช่อง Logout ออกจากระบบมาไว้หน้าแรกได้ (บ้างอย่างไม่แน่ใจ ใครอยากลองก็ช่วยทดสอบด้วยนะครับเป็นวิทยาทานความรู้ ไม่มีกั๊กนะ อิอิ ของฟรีเขาไม่ให้กั๊ก หึหึ
         <?php ssi_logout(); flush(); ?>

      

         <h3>Today's Birthdays Function: &lt;?php ssi_todaysBirthdays(); ?&gt;</h3> <<<-- ดึงความสามารถในการแสดงผล วันเกิดของสมาชิกในบอร์ด มาไว้หน้าแรก HDB today is :: วันนี้วันเกิดของ... มาไว้หน้าแรก
         <?php ssi_todaysBirthdays(); flush(); ?>

      

         <h3>Today's Holidays Function: &lt;?php ssi_todaysHolidays(); ?&gt;</h3> <<<-- วันนี้ เป็นวันหยุด แสดงผลวันหยุดพิเศษ เช่น สงกรานต์ ปีใหม่ ตรุษจีน วันปล่อยผี Haloween มาไว้หน้าแรกของเว็บ
         <?php ssi_todaysHolidays(); flush(); ?>

      

         <h3>Today's Events Function: &lt;?php ssi_todaysEvents(); ?&gt;</h3> <<<-- ดึงความสามารถแสดงผลวันที่มีกิจกรรมต่างๆ
         <?php ssi_todaysEvents(); flush(); ?>

      

         <h3>Today's Calendar Function: &lt;?php ssi_todaysCalendar(); ?&gt;</h3> <<<-- ดึงความสามารถการแสดงผลของปฎิทิน ตรงส่วนนี้ใน Control Panel รู้สึกว่าต้องไปเปิดการทำงานก่อนครับ เพราะค่าปกติ (Default) จะไม่เปิดไว้ จะใช้หรือไม่ก็แล้วแต่ใครอยากได้ :P
         <?php ssi_todaysCalendar(); flush(); ?>

      

         <h3>Recent Calendar Events Function: &lt;?php ssi_recentEvents(); ?&gt;</h3> <<--- ดึงแสดงผลของกิจกรรมที่มีไปแล้ว
         <?php ssi_recentEvents(); flush(); ?>

      



ตัวอย่าง code ใน ไฟล์ index.php ที่ผมเขียนทำไว้


<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="th" xml:lang="th">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CyberWakeUp.: Untimated Hyper Generations</title>
<link href="csstext.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="650" height="420" align="center" valign="middle" bgcolor="#FFCCFF"><iframe src="http://www.cyberwakeup.net23.net/showtopics.php" name="if0" width="625" height="400" align="left" scrolling="No" frameborder="0" class="viewtopic" id="001" title="csstext" allowtransparency="100" border="0" target="_blank"> Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></td>
  </tr>
</table>
</body>
</html>


การเข้ารหัสภาษา ให้สามารถแสดงผลภาษาไทยได้นั้นจำเป็นต้องใช้ UTF-8 เป็นตัวกำหนดดังนั้นควรจะ
ใช้ Package จากเว็บ simplyboardmachines.org โดยสามารถ Download ได้จาก

http://mirror.pdx.simplemachines.org/downloads/smf_1-1-6_thai-utf8.zip

เมื่อโหลดไฟล์เสร็จ ตอนติดตั้งให้เข้าไปที่ Control Panel ของบอร์ด smf แล้วไปเลือก Packages และเมื่อติดตั้ง Package เสร็จแล้ว ก็มีส่วนสำคัญคือการ Convert การเข้ารหัสอีกครั้งหนึ่ง






ลองทำดูครับ ผมคิดว่าทุกคนทำได้ ไม่ยากอย่างที่คิด
ผมลองตัวอื่นๆมา phpbb2 การทำให้สามารถแสดงผลกระทู้ 10 ลำดับในหน้าเพจแรกของเว็บได้
smf ทำง่ายที่สุดแล้วครับโดยใช้ไม่เพียงกี่คำสั่ง

สำหรับ Theme และ Mod Module คลิกไปที่
http://custom.simplemachines.org/mods/index.php?action=search;type=3
« แก้ไขครั้งสุดท้าย: 29/10/08, 10:24:48 โดย teXtreme »

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 2,079
  • เพศ: ชาย
    • ดูรายละเอียด
    • Updated Product Tips
Top Product Site
« ตอบ #1 เมื่อ: 12/01/24, 14:52:20 »
Please try Google before asking about Top Rated Product Site 71c6d8e

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 2,079
  • เพศ: ชาย
    • ดูรายละเอียด
    • Updated Product Tips
Top Rated Casino Bonuses UK Info
« ตอบ #2 เมื่อ: 30/01/24, 20:48:59 »
For the lady talking about most legit online casino, top no deposit casino, free deposit casino games, casino online england, best casino welcome offers uk, bonus no deposit casino uk, best real casino games, free spins no deposit no sign up,  I highly recommend this full report on casino bonus tips or new casino online real money, american online casino, casino games best, best uk casino free spins, best and safest online casino, top online casino greece, bonus no deposit online casino, online slots deposit bonus, on top of this killer deal for casino bonuses advice and don't forget casino the best, bonus with no deposit, minimum 1 deposit casino uk, casino ranking, the online casino uk, bonus games casino, free spins bonus, online british casino, alongside all this cool casino bonuses site which is also great. Also, have a look at this high rated casino bonus details alongside all casinos with no deposit sign up bonus, best minimum deposit casino, online casino new customer offers, no deposit free spins new, best casino bonuses uk, online casino big bonus, best online casino no deposit sign up bonus, kings casino bonus, on top of this this post about casino tips with uk casino free bonus no deposit, new no deposit casino uk 2022, best first deposit bonus slots, top legit online casinos, casino casino no deposit bonus code, uk casino bet, online casino promotions uk, free bonus play,  for good measure. Check more @ Recommended Casino Bonuses UK Info 6fa7323

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 2,079
  • เพศ: ชาย
    • ดูรายละเอียด
    • Updated Product Tips
Recommended Disney Vacation Blog
« ตอบ #3 เมื่อ: 9/02/24, 08:48:44 »
In reply to the man inquiring about daily scooter rental, cheap motorbike rental, electric scooters in orlando, glide scooter sharing, disney world scooter rental price, cost to rent a scooter at disney world, electric wheelchair rental orlando fl, rent mobility scooter at disney world,  I highly suggest this more info on mobility aid blog or disney ecv rental, wheelchair at universal studios, tanner scooter rentals orlando, public scooter rental, universal orlando scooter rental price, universal studios orlando wheelchair rental, hollywood studios scooter rental, best rideshare scooter, on top of this useful disney magic forum and don't forget lime scooter orlando, mobility scooter rental orlando, universal studios orlando scooter rental prices, mobility scooter universal orlando, electric scooters to rent, universal orlando ecv rental price, scooter rental now, mobility scooter hire, on top of this here for disney vacation details which is also great. Also, have a look at this top rated elderly friendly advice not to mention lime e moped, disney world scooters for handicapped, handicap cart rental, ecv hire orlando, motorbike on rent, seaworld orlando scooter rental cost, scooter rental prices, mobility scooter rental walt disney world, as well as this high rated disney bound advice with rent a electric scooter, mobility scooter orlando florida, ecv universal orlando, scooter on hire, lime electric scooter rental, standing scooter rental, busch gardens wheelchair rental, kick scooter sharing,  for good measure. Check more @ Top Rated Czech Gold Coin Guide 6fa7323