S¡|€n7 โพสต์ 2010-7-28 10:18:22

Plug-ins UCH ASK (คล้าย ๆ Yahoo! Answer กับ Google Guru)

แก้ไขล่าสุดโดย S¡|€n7 เมื่อ 2010-7-28 11:53

Plug-ins UCH ASK (คล้าย ๆ Yahoo! Answer กับ Google Guru)

คู่มือการติดตั้ง

1. อัพโหลดไฟล์ทั้งหมดไปที่โฟลเดอร์ของ UCH
2. สร้างตารางในฐานข้อมูลของท่านCREATE TABLE IF NOT EXISTS `uchome_app_ask` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`typeid` smallint(4) NOT NULL default '0',
`uid` int(11) NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`content` text,
`tag` varchar(250) default NULL,
`dateline` int(11) NOT NULL default '0',
`score` smallint(4) NOT NULL default '0',
`view_count` int(11) NOT NULL default '0',
`reply_count` int(11) NOT NULL default '0',
`status` smallint(1) NOT NULL default '0',
`msg` text,
PRIMARY KEY(`id`),
KEY `typeid` (`typeid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `uchome_app_ask_reply` (
`id` int(11) NOT NULL auto_increment,
`ask_id` int(11) NOT NULL default '0',
`content` text NOT NULL,
`uid` int(11) NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`score` smallint(4) NOT NULL default '0',
`dateline` int(11) NOT NULL default '0',
PRIMARY KEY(`id`),
KEY `ask_id` (`ask_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;3. เปิดไฟล์ source/function_common.php และเพิ่มโค๊ดด้านล่างของไฟล์ ก่อนเครื่องหมาย "?>"function window_set($title, $url, $icon = '') {
}4. เปิดไฟล์ template/default/header.htm
ค้นหา :<li><img src="image/app/share.gif"><a href="space.php?do=share">แชร์</a></li>เพิ่มต่อด่วย:<li><img src="image/icon/app.gif"><a href="ask.php?do=ask">ทุกคำถาม มีคำตอบ</a><em><a href="ask.php?do=ask&ac=post">เพิ่ม</a></em></li>5. เปิดไฟล์ ask.php เพื่อแก้ไข หมวดหมู่ เครดิตสูงสุด และแอดมินไอดี
หมวดหมู่:$gEumsType = array(1 => 'หมวดหมู่ 1', 2 => 'หมวดหมู่ 2', 3 => 'หมวดหมู่ 3', 4 => 'หมวดหมู่ 4', 5 => 'หมวดหมู่ 5', 6 => 'หมวดหมู่ 6', 7 => 'หมวดหมู่ 7', 8 => 'หมวดหมู่ 8', 9 => 'หมวดหมู่ 9');เครดิตสูงสุด:$gMaxScore = 200;แอดมินไอดีdefine('ADMIN_ID', '1');6. อัพเดทแคช

ใจเย็นนะครับอยู่ระหว่างการทดสอบระยะสุดท้าย

ตัวอย่าง : http://indyclub.org/th/guru.php?do=guru

khonakha โพสต์ 2010-7-28 12:48:38

ตัวนี้ออกมาตั้งนานแล้วนี่ครับบ
ใช้กันเยอะแล้ว
หน้า: [1]
ดูในรูปแบบกติ: Plug-ins UCH ASK (คล้าย ๆ Yahoo! Answer กับ Google Guru)