SMF Thailand.

SMF Development => SMF Coding Discussion => ข้อความที่เริ่มโดย: tun_metha ที่ 18/04/08, 15:04:20

หัวข้อ: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: tun_metha ที่ 18/04/08, 15:04:20
อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ อยากรู้ว่าต้องทำยังไงครับ

คือผมต้องการให้มันแสดงหน้า Index ของเว็บน่ะครับ ไม่ได้แสดงใน forum
หัวข้อ: Re: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: montree ที่ 5/06/08, 13:13:36
รันไฟล์นี้แล้วเลือกเอาเลยครับจะเอาอะไรไปแสดงหน้าแรก

http://www.ชื่อเวบของท่าน.com/ชื่อบอร์ด(forum/iss_examples.php

มันจะโชว์โค้ดในการนำไปติดไว้หน้าเวบครับ..........
 ;)
หัวข้อ: Re: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: montree ที่ 5/06/08, 13:14:43
รันไฟล์นี้แล้วเลือกเอาเลยครับจะเอาอะไรไปแสดงหน้าแรก

http://www.ชื่อเวบของท่าน.com/ชื่อบอร์ด(forum)/iss_examples.php

มันจะโชว์โค้ดในการนำไปติดไว้หน้าเวบครับ..........
 ;)
หัวข้อ: Re: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: slashx784 ที่ 7/06/08, 17:21:21
ทำไมไม่เห็นมีอ่ะ ผมทำตามแล้วนะ
หัวข้อ: Re: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: Meen2007 ที่ 14/06/08, 06:08:28
วิธีทำกระทู้ล่าสุดโชว์ที่หน้าเว็บไซต์


จากไฟล์ ssi_examples.php Copy ส่วนนี้  <?php ssi_recentPosts(); ?>
ใส่ที่ต้องการให้กระทู้ขึ้นโชว์        ดูรายงานของ ssi_examples จากที่นี่        http://smf.rcweb.net/ssi_examples.php

วิธีทำ

สร้างไฟล์ showtopics.php ขึ้นมา 1 ไฟล์ ใช้ notpad ก็ได้แล้ว Save เป็นดอท .php

โค้ด: [เลือก]
<?php require("/home/welove/domains/welovethailand.com/public_html/forum/SSI.php"); ?> ใส่ พาทจากโดเมนของท่านเองเข้าFTPไล่ดูว่าSSI.phpอยู่ที่ใหนถ้า ERRORหรือ Not foundแสดงว่าใส่ผิด

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>showtopics</title>
</head>

<body>
<?php ssi_recentPosts(+10); ?>   ตรงนี้คือส่วนที่ copyมา บวก 10 หมายถึงให้โชว์ 10กระทู้  + -
</body>
</html>

เอาไฟล์ showtopics.php นี้ไปไว้ใน ไดเรคทรอรีเดียวกับบอร์ดของท่าน

ไปที่ไฟล์ index.php ที่เว็บไซต์ของท่าน

ต้องการให้โชว์กระทู้ล่าสุดไว้ที่ใหน..เอา iframe ไปใส่ตรงนั้น

โครงสร้าง iframe

โค้ด: [เลือก]
<iframe marginwidth="0" marginheight="0" src="../showtopics.php" name="board" frameborder="0" width="100%" height="270" scrolling="0" ></iframe>
จุดที่จะต้องแก้ไขของแต่ละเว็บ

src="../showtopics.php"   ที่อยู่ของไฟล์ showtopics.php ใน ไดเรคทรอรีของเว็บท่าน

height="270" และความสูงของเฟรมตามที่ท่านต้องการ

ในส่วนของ login logout Function และอื่นๆจากในไฟล์  ssi_examples.php ก็ Copy มาทำในทำนองเดียวกันนี้
หัวข้อ: Useful Product Guide
เริ่มหัวข้อโดย: FrankJScott ที่ 12/01/24, 18:03:26
Please try Google (https://www.google.com/) before asking about Awesome Product Info (http://gorchesterutd.com/forum/viewtopic.php?p=11406#p11406) 0aba9dd
หัวข้อ: Re: อยากได้โค้ด แสดงกระทู้เมื่อเร็วๆนี้ครับ
เริ่มหัวข้อโดย: Udaipurescort006 ที่ 17/01/24, 14:34:46
  Udaipur Escort Service (https://russianmodels1.in)
  Udaipur Escort Service (https://russianmodels1.in/about-me)
  Ajmer Escort Service (https://russianmodels1.in/ajmer-escort-service)
  Beawar Escort Service (https://russianmodels1.in/beawar-escort-service)
  Nasirabad Escort Service (https://russianmodels1.in/nasirabad-escort-service)
  Kishangarh Escort Service (https://russianmodels1.in/kishangarh-escort-service)
  Pushkar Escort Service (https://russianmodels1.in/pushkar-escort-service)
  Jaipur Escort Service (https://russianmodels1.in/jaipur-escort-service)
  Alwar Escort Service (https://russianmodels1.in/alwar-escort-service)
  Banswara Escort Service (https://russianmodels1.in/banswara-escort-service)
  Baran Escort Service (https://russianmodels1.in/baran-escort-service)
  Barmer Escort Service (https://russianmodels1.in/barmer-escort-service)
  Bharatpur Escort Service (https://russianmodels1.in/bharatpur-escort-service)
  Bhilwara Escort Service (https://russianmodels1.in/bhilwara-escort-service)
  Bikaner Escort Service (https://russianmodels1.in/bikaner-escort-service)
  Bundi Escort Service (https://russianmodels1.in/bundi-escort-service)
  Chittorgarh Escort Service (https://russianmodels1.in/chittorgarh-escort-service)
  Churu Escort Service (https://russianmodels1.in/churu-escort-service)
  Dausa Escort Service (https://russianmodels1.in/dausa-escort-service)
  Dholpur Escort Service (https://russianmodels1.in/dholpur-escort-service)
  Dungarpur Escort Service (https://russianmodels1.in/dungarpur-escort-service)
  Ganganagar Escort Service (https://russianmodels1.in/ganganagar-escort-service)
  Hanumangarh Escort Service (https://russianmodels1.in/hanumangarh-escort-service)
  Jaisalmer Escort Service (https://russianmodels1.in/jaisalmer-escort-service)
  Jalore Escort Service (https://russianmodels1.in/jalore-escort-service)
  Jhalawar Escort Service (https://russianmodels1.in/jhalawar-escort-service)
  Jhunjhunu Escort Service (https://russianmodels1.in/jhunjhunu-escort-service)
  Jodhpur Escort Service (https://russianmodels1.in/jodhpur-escort-service)
  Karauli Escort Service (https://russianmodels1.in/karauli-escort-service)
  Kota Escort Service (https://russianmodels1.in/kota-escort-service)
  Nagaur Escort Service (https://russianmodels1.in/nagaur-escort-service)
  Pali Escort Service (https://russianmodels1.in/pali-escort-service)
  Pratapgarh Escort Service (https://russianmodels1.in/pratapgarh-escort-service)
  Rajsamand Escort Service (https://russianmodels1.in/rajsamand-escort-service)
  Sawai Madhopur Escort Service (https://russianmodels1.in/sawai-madhopur-escort-service)
  Sikar Escort Service (https://russianmodels1.in/sikar-escort-service)
  Sirohi Escort Service (https://russianmodels1.in/sirohi-escort-service)
  Tonk Escort Service (https://russianmodels1.in/tonk-escort-service)
  Haryana Escort Service (https://russianmodels1.in/haryana-escort-service)
  Bihar Escort Service (https://russianmodels1.in/bihar-escort-service)
  Chhattishgarh Escort Service (https://russianmodels1.in/chhattishgarh-escort-service)
  Jammu And Kashmir Escort Service (https://russianmodels1.in/jammu-and-kashmir-escort-service)
  Maharashtra Escort Service (https://russianmodels1.in/maharashtra-escort-service)
  Madhya Pradesh Escort Service (https://russianmodels1.in/madhya-pradesh-escort-service)
  Punjab Escort Service (https://russianmodels1.in/punjab-escort-service)
  Uttar Pradesh Escort Service (https://russianmodels1.in/uttar-pradesh-escort-service)
  Union Territories Escort Service (https://russianmodels1.in/union-territories-escort-service)
  Gujrat Escort Service (https://russianmodels1.in/gujrat-escort-service)
  Hill Stations Escort Service (https://russianmodels1.in/hill-stations-escort-service)
  Andhra Pradesh Escort Service (https://russianmodels1.in/andhra-pradesh-escort-service)
  Arunachal Pradesh Escort Service (https://russianmodels1.in/arunachal-pradesh-escort-service)
  Assam Escort Service (https://russianmodels1.in/assam-escort-service)
  Goa Escort Service (https://russianmodels1.in/goa-escort-service)
  Himachal Pradesh Escort Service (https://russianmodels1.in/himachal-pradesh-escort-service)
  Jharkhand Escort Service (https://russianmodels1.in/jharkhand-escort-service)
  Karnataka Escort Service (https://russianmodels1.in/karnataka-escort-service)
  Kerala Escort Service (https://russianmodels1.in/kerala-escort-service)
  Manipur Escort Service (https://russianmodels1.in/manipur-escort-service)
  Meghalaya Escort Service (https://russianmodels1.in/meghalaya-escort-service)
  Mizoram Escort Service (https://russianmodels1.in/mizoram-escort-service)
  Nagaland Escort Service (https://russianmodels1.in/nagaland-escort-service)
  Odisha Escort Service (https://russianmodels1.in/odisha-escort-service)
  Sikkim Escort Service (https://russianmodels1.in/sikkim-escort-service)
  Tamilnadu Escort Service (https://russianmodels1.in/tamilnadu-escort-service)
  Telangana Escort Service (https://russianmodels1.in/telangana-escort-service)
  Tripura Escort Service (https://russianmodels1.in/tripura-escort-service)
  Uttarakhand Escort Service (https://russianmodels1.in/uttarakhand-escort-service)
  Russian Escort Service (https://russianmodels1.in/russian-escort-service)
  Airhostess Escort Service (https://russianmodels1.in/airhostess-escort-service)
  Housewife Escort Service (https://russianmodels1.in/housewife-escort-service)
  Vip Model Escort Service (https://russianmodels1.in/vip-model-escort-service)
  Celebrity Escort Service (https://russianmodels1.in/celebrity-escort-service)
  College Girls Escort Service (https://russianmodels1.in/college-girls-escort-service)
  Arairia Escort Service (https://russianmodels1.in/arairia-escort-service)
  Arwal Escort Service (https://russianmodels1.in/arwal-escort-service)
  Aurangabad Escort Service (https://russianmodels1.in/aurangabad-escort-service)
  Banka Escort Service (https://russianmodels1.in/banka-escort-service)
  Begusarai Escort Service (https://russianmodels1.in/begusarai-escort-service)
  Bhagalpur Escort Service (https://russianmodels1.in/bhagalpur-escort-service)
  Bhojpur Escort Service (https://russianmodels1.in/bhojpur-escort-service)
  Buxar Escort Service (https://russianmodels1.in/buxar-escort-service)
  Darbhanga Escort Service (https://russianmodels1.in/darbhanga-escort-service)
  Gaya Escort Service (https://russianmodels1.in/gaya-escort-service)
  Gopalganj Escort Service (https://russianmodels1.in/gopalganj-escort-service)
  Jamui Escort Service (https://russianmodels1.in/jamui-escort-service)
  Jehanabad Escort Service (https://russianmodels1.in/jehanabad-escort-service)
  Kaimur Escort Service (https://russianmodels1.in/kaimur-escort-service)
  Khagaria Escort Service (https://russianmodels1.in/khagaria-escort-service)
  Kishanganj Escort Service (https://russianmodels1.in/kishanganj-escort-service)
  Lakhisarai Escort Service (https://russianmodels1.in/lakhisarai-escort-service)
  Madhepura Escort Service (https://russianmodels1.in/madhepura-escort-service)
  Madhubani Escort Service (https://russianmodels1.in/madhubani-escort-service)
  Munger Escort Service (https://russianmodels1.in/munger-escort-service)
  Muzaffarpur Escort Service (https://russianmodels1.in/muzaffarpur-escort-service)
  Nalanda Escort Service (https://russianmodels1.in/nalanda-escort-service)
  Nawada Escort Service (https://russianmodels1.in/nawada-escort-service)
  Pashchim Champaran Escort Service (https://russianmodels1.in/pashchim-champaran-escort-service)
  Patna Escort Service (https://russianmodels1.in/patna-escort-service)
  Purnia Escort Service (https://russianmodels1.in/purnia-escort-service)
  Rohtas Escort Service (https://russianmodels1.in/rohtas-escort-service)
  Saharsa Escort Service (https://russianmodels1.in/saharsa-escort-service)
  Sheikhpura Escort Service (https://russianmodels1.in/sheikhpura-escort-service)
  Sheohar Escort Service (https://russianmodels1.in/sheohar-escort-service)
  Sitamarhi Escort Service (https://russianmodels1.in/sitamarhi-escort-service)
  Siwan Escort Service (https://russianmodels1.in/siwan-escort-service)
  Supaul Escort Service (https://russianmodels1.in/supaul-escort-service)
  Vaishali Escort Service (https://russianmodels1.in/vaishali-escort-service)
  Bastar Escort Service (https://russianmodels1.in/bastar-escort-service)
  Bijapur Escort Service (https://russianmodels1.in/bijapur-escort-service)
  Bilaspur Escort Service (https://russianmodels1.in/bilaspur-escort-service)
  Dhamtari Escort Service (https://russianmodels1.in/dhamtari-escort-service)
  Durg Escort Service (https://russianmodels1.in/durg-escort-service)
  Janjgir Champa Escort Service (https://russianmodels1.in/janjgir-champa-escort-service)
  Jashpur Escort Service (https://russianmodels1.in/jashpur-escort-service)
  Kabirdham Escort Service (https://russianmodels1.in/kabirdham-escort-service)
  Korba Escort Service (https://russianmodels1.in/korba-escort-service)
  Koriya Escort Service (https://russianmodels1.in/koriya-escort-service)
  Mahasamund Escort Service (https://russianmodels1.in/mahasamund-escort-service)
  Narayanpur Escort Service (https://russianmodels1.in/narayanpur-escort-service)
  Raigarh Escort Service (https://russianmodels1.in/raigarh-escort-service)
  Raipur Escort Service (https://russianmodels1.in/raipur-escort-service)
  Rajnandgaon Escort Service (https://russianmodels1.in/rajnandgaon-escort-service)
  Surguja Escort Service (https://russianmodels1.in/surguja-escort-service)
  Anantnag Escort Service (https://russianmodels1.in/anantnag-escort-service)
  Bandipore Escort Service (https://russianmodels1.in/bandipore-escort-service)
  Baramulla Escort Service (https://russianmodels1.in/baramulla-escort-service)
  Budgam Escort Service (https://russianmodels1.in/budgam-escort-service)
  Doda Escort Service (https://russianmodels1.in/doda-escort-service)
  Ganderbal Escort Service (https://russianmodels1.in/ganderbal-escort-service)
  Jammu Escort Service (https://russianmodels1.in/jammu-escort-service)
  Kargil Escort Service (https://russianmodels1.in/kargil-escort-service)
  Kathua Escort Service (https://russianmodels1.in/kathua-escort-service)
  Kishtwar Escort Service (https://russianmodels1.in/kishtwar-escort-service)
  Kulgam Escort Service (https://russianmodels1.in/kulgam-escort-service)
  Kupwara Escort Service (https://russianmodels1.in/kupwara-escort-service)
  Leh Escort Service (https://russianmodels1.in/leh-escort-service)
  Poonch Escort Service (https://russianmodels1.in/poonch-escort-service)
  Pulwama Escort Service (https://russianmodels1.in/pulwama-escort-service)
  Rajouri Escort Service (https://russianmodels1.in/rajouri-escort-service)
  Ramban Escort Service (https://russianmodels1.in/ramban-escort-service)
  Reasi Escort Service (https://russianmodels1.in/reasi-escort-service)
  Samba Escort Service (https://russianmodels1.in/samba-escort-service)
  Shopian Escort Service (https://russianmodels1.in/shopian-escort-service)
  Srinagar Escort Service (https://russianmodels1.in/srinagar-escort-service)
  Udhampur Escort Service (https://russianmodels1.in/udhampur-escort-service)
  Achalpur Escort Service (https://russianmodels1.in/achalpur-escort-service)
  Ahmednagar Escort Service (https://russianmodels1.in/ahmednagar-escort-service)
  Akola Escort Service (https://russianmodels1.in/akola-escort-service)
  Barshi Escort Service (https://russianmodels1.in/barshi-escort-service)
  Beed Escort Service (https://russianmodels1.in/beed-escort-service)
  Bhiwandi Escort Service (https://russianmodels1.in/bhiwandi-escort-service)
  Bhusawal Escort Service (https://russianmodels1.in/bhusawal-escort-service)
  Chandrapur Escort Service (https://russianmodels1.in/chandrapur-escort-service)
  Dhule Escort Service (https://russianmodels1.in/dhule-escort-service)

   Haryana Escort Service (https://russianmodels1.in/haryana-escort-service)
   Bihar Escort Service (https://russianmodels1.in/bihar-escort-service)
   Chhattishgarh Escort Service (https://russianmodels1.in/chhattishgarh-escort-service)
   Jammu And Kashmir Escort Service (https://russianmodels1.in/jammu-and-kashmir-escort-service)
   Maharashtra Escort Service (https://russianmodels1.in/maharashtra-escort-service)
   Madhya Pradesh Escort Service (https://russianmodels1.in/madhya-pradesh-escort-service)
   Punjab Escort Service (https://russianmodels1.in/punjab-escort-service)
   Uttar Pradesh Escort Service (https://russianmodels1.in/uttar-pradesh-escort-service)
   Union Territories Escort Service (https://russianmodels1.in/union-territories-escort-service)
   Gujarat Escort Service (https://russianmodels1.in/gujrat-escort-service)
   Hill Stations Escort Service (https://russianmodels1.in/hill-stations-escort-service)
   Andhra Pradesh Escort Service (https://russianmodels1.in/andhra-pradesh-escort-service)
   Arunachal Pradesh Escort Service (https://russianmodels1.in/arunachal-pradesh-escort-service)
   Assam Escort Service (https://russianmodels1.in/assam-escort-service)
   Goa Escort Service (https://russianmodels1.in/goa-escort-service)
   Himachal Pradesh Escort Service (https://russianmodels1.in/himachal-pradesh-escort-service)
   Jharkhand Escort Service (https://russianmodels1.in/jharkhand-escort-service)
   Karnataka Escort Service (https://russianmodels1.in/karnataka-escort-service)
   Kerala Escort Service (https://russianmodels1.in/kerala-escort-service)
   Manipur Escort Service (https://russianmodels1.in/manipur-escort-service)
   Meghalaya Escort Service (https://russianmodels1.in/meghalaya-escort-service)
   Mizoram Escort Service (https://russianmodels1.in/mizoram-escort-service)
   Nagaland  Escort Service (https://russianmodels1.in/nagaland-escort-service)
   Odisha Escort Service (https://russianmodels1.in/odisha-escort-service)
   Sikkim Escort Service (https://russianmodels1.in/sikkim-escort-service)
   Tamilnadu Escort Service (https://russianmodels1.in/tamilnadu-escort-service)
   Telangana Escort Service (https://russianmodels1.in/telangana-escort-service)
   Tripura Escort Service (https://russianmodels1.in/tripura-escort-service)
   Uttarakhand Escort Service (https://russianmodels1.in/uttarakhand-escort-service)
   West Bengal Escort Service (https://russianmodels1.in/west-bengal-escort-service)