แก้ไขเรื่อง GeoIPLocation สำหรับ Discuz ทุกเวอร์ชัน
แก้ไขครั้งสุดท้ายโดย discuzmod เมื่อ 2013-10-17 12:00ที่อยู่ไฟล์: source/function/function_misc.php
1. ดาวน์โหลดไฟล์แนบอัพไปวางที่: data/ipdata
2. ค้นหา:
$tinyipfile = DISCUZ_ROOT.'./data/ipdata/tinyipdata.dat';
$fullipfile = DISCUZ_ROOT.'./data/ipdata/wry.dat';
if(@file_exists($tinyipfile)) {
$return = convertip_tiny($ip, $tinyipfile);
} elseif(@file_exists($fullipfile)) {
$return = convertip_full($ip, $fullipfile);
}
3. เปลี่ยนเป็น:
include_once("data/ipdata/geoiploc.php");
$return = getCountryFromIP($ip, " NamE ");
4. ค้นหาและลบข้อความ$ipconverted = substr($ipconverted, 1);5. ค้นหาreturn '- '.$ipconverted ;6. เปลี่ยนเป็นreturn !$ipconverted ? '': '- '.$ipconverted ;สามารถแก้ไขชื่อประเทศเป็นภาษาไทยได้ที่ไฟล์ data/ipdata/geoiploc.php
ตัวอย่าง
ดาวน์โหลดเวอร์ชันล่าสุด : http://chir.ag/projects/geoiploc/autogen/geoiploc.tar.gz
เครดิต: http://chir.ag/projects/geoiploc
Y
ทำไมผมเพิ่งเห็นเนียยยยยย http://chir.ag/projects/geoiploc/autogen/geoiploc.tar.gz
เขาอัพเดตใหม่แล้วนะครับ
GeoIPLoc code & data last updated: Tue Sep 10 14:31:01 PDT 2013.
ตัวที่ จขกท. แจก เป็น
GeoIPLoc code & data last updated: Tue May 7 9:41:33 PDT 2013. ขอบคุณครับ
พอดีดึงไฟล์จาก Discuzmod ที่เคยใช้อยู่นานแล้ว
ไม่ได้อัพเดตเวอร์ชันล่าสุด บรรจุลง #26 เรียบร้อย ขอบคุณครับ ทำไมผมไม่หานนะ -*-
หน้า:
[1]