Thaimisc.com : Today's tips
freepollHOMEFree Chat serverFree Guest BookFree Ecard ServerFree webboard
 
 
  Article
  Html It's Easy
ICQ Status
How2Use FTP
Protect Directory
More...
  Column
  Flash Learning
Perl Scripts
ToDay's Tip
It News
  Community
  Forum
Chatroom new
  etc.
  Guest Book
links
Contact Us
Advertising
FAQ
  MiscFree
  Free Guest Book new
Free Ecard Server new
Free webboard new
Free chat Server new
Free Perl Scripts
Perl Search
Webboard
Web Directory
Protect Directory
Multi Protect new



สมัครสมาชิก เพื่อรับข่าวสารทาง e-mail

 

Today's Tip

จะให้เวบบอร์ดแสดงกระทู้เท่าที่เรากำหนดไว้นั้น จะต้องทำอย่างไร ?
  1. เปิดไฟลล์ webboard.pl ขึ้นมา และเราจะกำหนดให้เวบบอร์ดของเรานั้น แสดงข้อความ แค่ 100 ข้อความ
  2. แล้วหาบรรทัด ประมาณ บรรทัดที่ 46 จะมีข้อความดังนี้

    for ($i=0; $i<$size; $i++) {
    print "$msgdata[$i]";
    $numtopic--;
    &checknum;
    }

  3. ให้สังเกตุว่า ตรง $size นั้น จะเน้นเข้มกว่าปกตินะครับ จากเดิมนั้น จะสั่งให้แสดงทั้งหมดของข้อความที่โพสเข้ามา หากเราแก้ไขว่าต้องการเปลี่ยนให้แสดง ข้อความในเวบบอร์ดเพียง 100 ข้อความจะต้องแก้อย่างนี้ครับ

    for ($i=0; $i<100; $i++) {
    print "$msgdata[$i]";
    $numtopic--;
    &checknum;
    }


  4. เอาล่ะครับ หวังว่าคงนำไปแก้ไขดัดแปลงใช้ได้ดีขึ้นนะครับ ;) แต้ข้อความเดิมก็ไม่ได้หายไปไหนนะครับ ยังอยู่เหมือนเดิมยังไม่ได้ลบไป

 

 

Copyright 1999 Thailand Miscellaneous. Allrights reserved. webmaster@thaimisc.com