discuzmod โพสต์ 2013-10-17 09:23:01

แก้ไขเรื่อง 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

jaideejung007 โพสต์ 2013-10-17 11:01:12

Y

ทำไมผมเพิ่งเห็นเนียยยยยย

jaideejung007 โพสต์ 2013-10-17 11:44:17

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 โพสต์ 2013-10-17 11:58:28

ขอบคุณครับ
พอดีดึงไฟล์จาก Discuzmod ที่เคยใช้อยู่นานแล้ว
ไม่ได้อัพเดตเวอร์ชันล่าสุด

jaideejung007 โพสต์ 2013-10-17 12:56:02

บรรจุลง #26 เรียบร้อย ขอบคุณครับ

ratchaburi โพสต์ 2013-12-2 11:56:48

ทำไมผมไม่หานนะ -*-
หน้า: [1]
ดูในรูปแบบกติ: แก้ไขเรื่อง GeoIPLocation สำหรับ Discuz ทุกเวอร์ชัน