[WordPress] 外掛分享: IP Loc8

首頁外掛目錄 › IP Loc8
WordPress 外掛 IP Loc8 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
3381 天前
最後更新
問題解決
WordPress 4.0.0+ v1.1 上架:2015-10-12

內容簡介

此外掛會透過 IP 地址資料庫辨識使用者所在的位置 (國家和城市,但請注意城市資訊只能有 60% 的準確率),並將資訊儲存於 Cookie 及全域變數中,以供其他外掛和佈景主題使用。此過程在背景中靜默進行,不會顯示任何訊息於使用者端。

此外,對於在網站上使用 qTranslate X 進行多語言配置的使用者,此外掛能夠設置網站的語言版本,方法是依據您在外掛選項中設置的基於國家的規則設置語言版本,讓使用者在第一次訪問時自動設置語言。通常 qTranslate X 會依據使用者瀏覽器的語言進行自動設置,但許多國家的瀏覽器可能無法提供準確的地區訊息,會造成語言設定不正確,此時設置基於國家的語言設定方法會較為可靠。

此外掛本身沒有太多自主功能 (除了與 qTranslate X 整合之外),它提供寶貴的資料可供網站其他程式碼使用,旨在提供快速、簡單且可靠的工具,可針對特定需求進行使用。除此之外,此外掛不會載入任何腳本或樣式表,並使用類別自動載入技術,在有需求時才載入程式碼,以降低網站載入時程式碼的負擔。

此外掛也會自動擷取網路爬蟲及內容擷取器的訪問,僅針對正常的網站訪問者執行。

未來版本還將提供精確的地理定位工具,使用者可依據其 GPS 和 WiFi 資料準確地進行地理定位 (html5 定位)。

功能

自動透過 IP 地址取得國家和城市信息,並將其儲存於 Cookie 和全域變數中
可能的 qTranslate X 語言設置基於國家,即使用者首次訪問時
通過獲得使用者權限並使用其 GPS 和 WiFi 資料,獲得精確的地理定位信息的能力

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「IP Loc8」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin would figure out a user location (country and city, but have in mind that the city information is only 60% reliable) by matching his IP address to an IP addresses database. The information would then be stored in a cookie and in a global variable, to be used by other plugins or themes. This happens quietly in the background without the user seeing anything.
Furthermore, for sites using qTranslate X for multilanguage, it can set the language of the site upon the user’s first visit, using country-based rules that you set up in the plugin options. Normally qTranslate X offers automatic setting of language based on the browser language, but in many countries browser localisation is not as popular and a lot of people use english language browsers, so this method is not reliable and some people would prefer to set the language based on the user’s country.
This plugin does not do much on its own (except for the integration with qTranslate) – it provides valuable data to be integrated with other code on your website. The idea behind it is to have a fast, simple and reliable tool for getting location, which could be used on a per-need basis. The plugin loads no scripts and no stylesheets and uses class autoloading to load its code only when it’s actually needed.
It also does its best to recognize robots, crawlers and content fetchers and only run for regular site visitors.
Future verions will also provide a tool for precise geolocation, using the user’s GPS and WiFi data (html5 geolocation).
Features

Automatically gets country and city by IP address and saves it in a cookie and a global variable
Possible qTranslate X language setting based on country, upon first visit
Ability to get precise geolocation information by asking for user permissions and using his GPS and WiFi data

延伸相關外掛

文章
Filter
Mastodon